mbedtls_x509_crt_parse_der() is only used within mbedTLS.
 
Symbols
loading...
Files
loading...

mbedtls_x509_crt_parse_der() function

Parse a single DER formatted certificate and add it to the chained list.

Syntax

int mbedtls_x509_crt_parse_der( mbedtls_x509_crt *chain,     const unsigned char *buf,     size_t buflen );
Implemented in x509_crt.c:1088

Arguments

chain

points to the start of the chain

buf

buffer holding the certificate DER data

buflen

size of the buffer

Return value

0 if successful, or a specific X509 or PEM error code

References

LocationReferrerText
x509_crt.c:1088
int mbedtls_x509_crt_parse_der( mbedtls_x509_crt *chain, const unsigned char *buf,
x509_crt.h:231
int mbedtls_x509_crt_parse_der( mbedtls_x509_crt *chain, const unsigned char *buf,
ssl_tls.c:291ssl_session_copy()
if( ( ret = mbedtls_x509_crt_parse_der( dst->peer_cert, src->peer_cert->raw.p,
ssl_tls.c:5578ssl_parse_certificate_chain()
ret = mbedtls_x509_crt_parse_der( ssl->session_negotiate->peer_cert,
x509_crt.c:1164mbedtls_x509_crt_parse()
return mbedtls_x509_crt_parse_der( chain, buf, buflen );
x509_crt.c:1218mbedtls_x509_crt_parse()
ret = mbedtls_x509_crt_parse_der( chain, pem.buf, pem.buflen );

Call Tree

Functions calling mbedtls_x509_crt_parse_der()
Functions called by mbedtls_x509_crt_parse_der()
mbedtls_x509_crt_parse_der()
calloc()
free()
all items filtered out
Data read by mbedtls_x509_crt_parse_der()
Data written by mbedtls_x509_crt_parse_der()
mbedtls_x509_crt_parse_der()::ret
mbedtls_x509_crt_parse_der()::crt
mbedtls_x509_crt_parse_der()::prev
all items filtered out
mbedtls_x509_crt_parse_der()
mbedtls_x509_crt_parse_der()::ret
mbedtls_x509_crt_parse_der()::crt
mbedtls_x509_crt_parse_der()::prev
all items filtered out
Type of mbedtls_x509_crt_parse_der()
mbedtls_x509_crt_parse_der()
all items filtered out
Types freed by mbedtls_x509_crt_parse_der()
Types allocated by mbedtls_x509_crt_parse_der()
all items filtered out
mbedtls_x509_crt_parse_der()
all items filtered out