Home
last modified time | relevance | path

Searched refs:bs (Results 1 – 3 of 3) sorted by relevance

/net-tools-2.7.6/mbedtls-2.4.0/library/
Dasn1parse.c190 mbedtls_asn1_bitstring *bs) in mbedtls_asn1_get_bitstring() argument
195 if( ( ret = mbedtls_asn1_get_tag( p, end, &bs->len, MBEDTLS_ASN1_BIT_STRING ) ) != 0 ) in mbedtls_asn1_get_bitstring()
199 if( bs->len < 1 ) in mbedtls_asn1_get_bitstring()
201 bs->len -= 1; in mbedtls_asn1_get_bitstring()
204 bs->unused_bits = **p; in mbedtls_asn1_get_bitstring()
205 if( bs->unused_bits > 7 ) in mbedtls_asn1_get_bitstring()
210 bs->p = *p; in mbedtls_asn1_get_bitstring()
211 *p += bs->len; in mbedtls_asn1_get_bitstring()
Dx509_crt.c356 mbedtls_x509_bitstring bs = { 0, 0, NULL }; in x509_get_ns_cert_type() local
358 if( ( ret = mbedtls_asn1_get_bitstring( p, end, &bs ) ) != 0 ) in x509_get_ns_cert_type()
361 if( bs.len != 1 ) in x509_get_ns_cert_type()
366 *ns_cert_type = *bs.p; in x509_get_ns_cert_type()
376 mbedtls_x509_bitstring bs = { 0, 0, NULL }; in x509_get_key_usage() local
378 if( ( ret = mbedtls_asn1_get_bitstring( p, end, &bs ) ) != 0 ) in x509_get_key_usage()
381 if( bs.len < 1 ) in x509_get_key_usage()
387 for( i = 0; i < bs.len && i < sizeof( unsigned int ); i++ ) in x509_get_key_usage()
389 *key_usage |= (unsigned int) bs.p[i] << (8*i); in x509_get_key_usage()
/net-tools-2.7.6/mbedtls-2.4.0/include/mbedtls/
Dasn1.h230 mbedtls_asn1_bitstring *bs);