Function bearssl::br_x509_minimal_init
[−]
[src]
pub unsafe extern "C" fn br_x509_minimal_init(
ctx: *mut br_x509_minimal_context,
dn_hash_impl: *const br_hash_class,
trust_anchors: *const br_x509_trust_anchor,
trust_anchors_num: usize
)
\brief Initialise a "minimal" X.509 engine.
The dn_hash_impl
parameter shall be a hash function internally used
to match X.500 names (subject/issuer DN, and anchor names). Any standard
hash function may be used, but a collision-resistant hash function is
advised.
After initialization, some implementations for signature verification (hash functions and signature algorithms) MUST be added.
\param ctx context to initialise. \param dn_hash_impl hash function for DN comparisons. \param trust_anchors trust anchors. \param trust_anchors_num number of trust anchors.