Struct bearssl::br_ssl_server_policy_ec_context
[−]
[src]
#[repr(C)]pub struct br_ssl_server_policy_ec_context { pub vtable: *const br_ssl_server_policy_class, pub chain: *const br_x509_certificate, pub chain_len: usize, pub sk: *const br_ec_private_key, pub allowed_usages: c_uint, pub cert_issuer_key_type: c_uint, pub mhash: *const br_multihash_context, pub iec: *const br_ec_impl, pub iecdsa: br_ecdsa_sign, }
\brief A single-chain EC policy handler.
This policy context uses a single certificate chain, and an EC private key. The context can be restricted to only signatures or only key exchange.
Due to how TLS is defined, this context must be made aware whether the server certificate was itself signed with RSA or ECDSA. The code does not try to decode the certificate to obtain that information.
Apart from the first field (vtable pointer), its contents are opaque and shall not be accessed directly.
Fields
vtable: *const br_ssl_server_policy_class
\brief Pointer to vtable.
chain: *const br_x509_certificate
chain_len: usize
sk: *const br_ec_private_key
allowed_usages: c_uint
cert_issuer_key_type: c_uint
mhash: *const br_multihash_context
iec: *const br_ec_impl
iecdsa: br_ecdsa_sign
Trait Implementations
impl Debug for br_ssl_server_policy_ec_context
[src]
impl Copy for br_ssl_server_policy_ec_context
[src]
impl Clone for br_ssl_server_policy_ec_context
[src]
fn clone(&self) -> br_ssl_server_policy_ec_context
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more