Lines Matching refs:usage
386 #define ku_reject(x, usage) \ argument
387 (((x)->ex_flags & EXFLAG_KUSAGE) != 0 && ((x)->ex_kusage & (usage)) == 0)
388 #define xku_reject(x, usage) \ argument
389 (((x)->ex_flags & EXFLAG_XKUSAGE) != 0 && ((x)->ex_xkusage & (usage)) == 0)
390 #define ns_reject(x, usage) \ argument
391 (((x)->ex_flags & EXFLAG_NSCERT) != 0 && ((x)->ex_nscert & (usage)) == 0)
404 ASN1_BIT_STRING *usage; in ossl_x509v3_cache_extensions() local
474 if ((usage = X509_get_ext_d2i(x, NID_key_usage, &i, NULL)) != NULL) { in ossl_x509v3_cache_extensions()
476 if (usage->length > 0) { in ossl_x509v3_cache_extensions()
477 x->ex_kusage = usage->data[0]; in ossl_x509v3_cache_extensions()
478 if (usage->length > 1) in ossl_x509v3_cache_extensions()
479 x->ex_kusage |= usage->data[1] << 8; in ossl_x509v3_cache_extensions()
482 ASN1_BIT_STRING_free(usage); in ossl_x509v3_cache_extensions()