Lines Matching defs:usage
384 #define ku_reject(x, usage) \
385 (((x)->ex_flags & EXFLAG_KUSAGE) && !((x)->ex_kusage & (usage)))
386 #define xku_reject(x, usage) \
387 (((x)->ex_flags & EXFLAG_XKUSAGE) && !((x)->ex_xkusage & (usage)))
388 #define ns_reject(x, usage) \
389 (((x)->ex_flags & EXFLAG_NSCERT) && !((x)->ex_nscert & (usage)))
395 ASN1_BIT_STRING *usage;
439 /* Handle key usage */
440 if ((usage = X509_get_ext_d2i(x, NID_key_usage, NULL, NULL))) {
441 if (usage->length > 0) {
442 x->ex_kusage = usage->data[0];
443 if (usage->length > 1)
444 x->ex_kusage |= usage->data[1] << 8;
448 ASN1_BIT_STRING_free(usage);
566 * If key usage present it must have certSign so tolerate it
620 * Key usage needed for TLS/SSL server: digital signature, encipherment or
750 * Check the optional key usage field:
760 /* Only time stamp key usage is permitted and it's required. */