Lines Matching refs:cert
61 check_ca(X509 *cert)
63 if ((cert->ex_flags & EXFLAG_KUSAGE) != 0 &&
64 (cert->ex_kusage & KU_KEY_CERT_SIGN) != KU_KEY_CERT_SIGN)
66 if ((cert->ex_flags & EXFLAG_BCONS) != 0)
67 return (cert->ex_flags & EXFLAG_CA) == EXFLAG_CA;
68 if ((cert->ex_flags & (EXFLAG_V1|EXFLAG_SS)) == (EXFLAG_V1|EXFLAG_SS))
70 if ((cert->ex_flags & EXFLAG_KUSAGE) != 0)
72 if ((cert->ex_flags & EXFLAG_NSCERT) != 0 &&
73 (cert->ex_nscert & NS_ANY_CA) != 0)
92 X509 *cert;
94 cert = PEM_read_X509(f, NULL, NULL, NULL);
95 if (cert == NULL) {
107 sk_X509_insert(certs, cert, sk_X509_num(certs));