Lines Matching refs:ex_flags
387 (((x)->ex_flags & EXFLAG_KUSAGE) != 0 && ((x)->ex_kusage & (usage)) == 0)
389 (((x)->ex_flags & EXFLAG_XKUSAGE) != 0 && ((x)->ex_xkusage & (usage)) == 0)
391 (((x)->ex_flags & EXFLAG_NSCERT) != 0 && ((x)->ex_nscert & (usage)) == 0)
413 return (x->ex_flags & EXFLAG_INVALID) == 0; in ossl_x509v3_cache_extensions()
418 if ((x->ex_flags & EXFLAG_SET) != 0) { /* Cert has already been processed */ in ossl_x509v3_cache_extensions()
420 return (x->ex_flags & EXFLAG_INVALID) == 0; in ossl_x509v3_cache_extensions()
427 x->ex_flags |= EXFLAG_NO_FINGERPRINT; in ossl_x509v3_cache_extensions()
431 x->ex_flags |= EXFLAG_V1; in ossl_x509v3_cache_extensions()
437 x->ex_flags |= EXFLAG_CA; in ossl_x509v3_cache_extensions()
445 x->ex_flags |= EXFLAG_INVALID; in ossl_x509v3_cache_extensions()
451 x->ex_flags |= EXFLAG_BCONS; in ossl_x509v3_cache_extensions()
453 x->ex_flags |= EXFLAG_INVALID; in ossl_x509v3_cache_extensions()
458 if ((x->ex_flags & EXFLAG_CA) != 0 in ossl_x509v3_cache_extensions()
461 x->ex_flags |= EXFLAG_INVALID; in ossl_x509v3_cache_extensions()
468 x->ex_flags |= EXFLAG_PROXY; in ossl_x509v3_cache_extensions()
470 x->ex_flags |= EXFLAG_INVALID; in ossl_x509v3_cache_extensions()
481 x->ex_flags |= EXFLAG_KUSAGE; in ossl_x509v3_cache_extensions()
486 x->ex_flags |= EXFLAG_INVALID; in ossl_x509v3_cache_extensions()
489 x->ex_flags |= EXFLAG_INVALID; in ossl_x509v3_cache_extensions()
495 x->ex_flags |= EXFLAG_XKUSAGE; in ossl_x509v3_cache_extensions()
533 x->ex_flags |= EXFLAG_INVALID; in ossl_x509v3_cache_extensions()
542 x->ex_flags |= EXFLAG_NSCERT; in ossl_x509v3_cache_extensions()
545 x->ex_flags |= EXFLAG_INVALID; in ossl_x509v3_cache_extensions()
551 x->ex_flags |= EXFLAG_INVALID; in ossl_x509v3_cache_extensions()
555 x->ex_flags |= EXFLAG_INVALID; in ossl_x509v3_cache_extensions()
559 x->ex_flags |= EXFLAG_SI; /* Cert is self-issued */ in ossl_x509v3_cache_extensions()
563 x->ex_flags |= EXFLAG_SS; /* indicate self-signed */ in ossl_x509v3_cache_extensions()
570 x->ex_flags |= EXFLAG_INVALID; in ossl_x509v3_cache_extensions()
573 x->ex_flags |= EXFLAG_INVALID; in ossl_x509v3_cache_extensions()
578 x->ex_flags |= EXFLAG_INVALID; in ossl_x509v3_cache_extensions()
583 x->ex_flags |= EXFLAG_INVALID; in ossl_x509v3_cache_extensions()
586 x->ex_flags |= EXFLAG_INVALID; in ossl_x509v3_cache_extensions()
593 x->ex_flags |= EXFLAG_FRESHEST; in ossl_x509v3_cache_extensions()
597 x->ex_flags |= EXFLAG_CRITICAL; in ossl_x509v3_cache_extensions()
602 x->ex_flags |= EXFLAG_BCONS_CRITICAL; in ossl_x509v3_cache_extensions()
605 x->ex_flags |= EXFLAG_AKID_CRITICAL; in ossl_x509v3_cache_extensions()
608 x->ex_flags |= EXFLAG_SKID_CRITICAL; in ossl_x509v3_cache_extensions()
611 x->ex_flags |= EXFLAG_SAN_CRITICAL; in ossl_x509v3_cache_extensions()
621 x->ex_flags |= EXFLAG_SET; /* Indicate that cert has been processed */ in ossl_x509v3_cache_extensions()
632 if ((x->ex_flags & EXFLAG_INVALID) == 0) { in ossl_x509v3_cache_extensions()
658 if ((x->ex_flags & EXFLAG_BCONS) != 0) { in check_ca()
660 return (x->ex_flags & EXFLAG_CA) != 0; in check_ca()
663 if ((x->ex_flags & V1_ROOT) == V1_ROOT) in check_ca()
668 else if ((x->ex_flags & EXFLAG_KUSAGE) != 0) in check_ca()
671 else if ((x->ex_flags & EXFLAG_NSCERT) != 0 in check_ca()
682 x->ex_flags |= EXFLAG_PROXY; in X509_set_proxy_flag()
780 if ((x->ex_flags & EXFLAG_NSCERT) != 0) { in purpose_smime()
863 if ((x->ex_flags & EXFLAG_KUSAGE) != 0 in check_purpose_timestamp_sign()
869 if ((x->ex_flags & EXFLAG_XKUSAGE) == 0 || x->ex_xkusage != XKU_TIMESTAMP) in check_purpose_timestamp_sign()
905 if ((x->ex_flags & EXFLAG_KUSAGE) == 0) in check_purpose_code_sign()
923 if ((x->ex_flags & EXFLAG_XKUSAGE) == 0) in check_purpose_code_sign()
993 if ((subject->ex_flags & EXFLAG_PROXY) != 0) { in ossl_x509_signing_allowed()
1044 return x->ex_flags; in X509_get_extension_flags()
1052 return (x->ex_flags & EXFLAG_KUSAGE) != 0 ? x->ex_kusage : UINT32_MAX; in X509_get_key_usage()
1060 return (x->ex_flags & EXFLAG_XKUSAGE) != 0 ? x->ex_xkusage : UINT32_MAX; in X509_get_extended_key_usage()
1099 || (x->ex_flags & EXFLAG_BCONS) == 0) in X509_get_pathlen()
1108 || (x->ex_flags & EXFLAG_PROXY) == 0) in X509_get_proxy_pathlen()