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

mbedtls_asn1_get_bitstring() function

Retrieve a bitstring ASN.1 tag and its value. Updates the pointer to immediately behind the full tag.

Syntax

int mbedtls_asn1_get_bitstring( unsigned char **p,     const unsigned char *end,     mbedtls_asn1_bitstring *bs);
Implemented in asn1parse.c:185

Arguments

p

The position in the ASN.1 data

end

End of data

bs

The variable that will receive the value

Return value

0 if successful or a specific ASN.1 error code.

References

LocationReferrerText
asn1parse.c:185
int mbedtls_asn1_get_bitstring( unsigned char **p, const unsigned char *end,
asn1.h:245
int mbedtls_asn1_get_bitstring( unsigned char **p, const unsigned char *end,
x509_crt.c:529x509_get_ns_cert_type()
if( ( ret = mbedtls_asn1_get_bitstring( p, end, &bs ) ) != 0 )
x509_crt.c:549x509_get_key_usage()
if( ( ret = mbedtls_asn1_get_bitstring( p, end, &bs ) ) != 0 )

Call Tree

Functions calling mbedtls_asn1_get_bitstring()
Functions called by mbedtls_asn1_get_bitstring()
mbedtls_asn1_get_bitstring()
all items filtered out
Data read by mbedtls_asn1_get_bitstring()
Data written by mbedtls_asn1_get_bitstring()
mbedtls_asn1_get_bitstring()