tls_parse_cert() function
tls_parse_cert - Parse DER encoded X.509 certificate and get public key @buf: ASN.1 DER encoded certificate @len: Length of the buffer @pk: Buffer for returning the allocated public key Returns: 0 on success, -1 on failure This functions parses an ASN.1 DER encoded X.509 certificate and retrieves the public key from it. The caller is responsible for freeing the public key by calling crypto_public_key_free().
![]()
if (tls_parse_cert(pos, cert_len,
tls_parse_cert() is called by 1 function and calls 4 functions:
![]()
tls_parse_cert()
tls_parse_cert() reads 2 variables:
![]()
tls_parse_cert()