Function s2n_tls_sys::s2n_cert_get_x509_extension_value
source · pub unsafe extern "C" fn s2n_cert_get_x509_extension_value(
cert: *mut s2n_cert,
oid: *const u8,
ext_value: *mut u8,
ext_value_len: *mut u32,
critical: *mut bool
) -> c_int
Expand description
Returns the DER encoding of an ASN.1 X.509 certificate extension value, it’s length and a boolean critical.
@param cert A pointer to the s2n_cert object being read.
@param oid A null-terminated cstring that contains the OID of the X.509 certificate extension to be read.
@param ext_value A pointer to the output buffer which will hold the DER encoding of an ASN.1 X.509 certificate extension value returned.
@param ext_value_len This value is both an input and output parameter and represents the length of the output buffer ext_value
.
When used as an input parameter, the caller must use this parameter to convey the maximum length of ext_value
.
When used as an output parameter, ext_value_len
holds the actual length of the DER encoding of the ASN.1 X.509 certificate extension value returned.
@param critical This return value contains the boolean value for critical
.