Lines Matching refs:ca

67 static int check_purpose_ssl_client(const X509_PURPOSE *xp, const X509 *x, int ca);
68 static int check_purpose_ssl_server(const X509_PURPOSE *xp, const X509 *x, int ca);
69 static int check_purpose_ns_ssl_server(const X509_PURPOSE *xp, const X509 *x, int ca);
70 static int purpose_smime(const X509 *x, int ca);
71 static int check_purpose_smime_sign(const X509_PURPOSE *xp, const X509 *x, int ca);
72 static int check_purpose_smime_encrypt(const X509_PURPOSE *xp, const X509 *x, int ca);
73 static int check_purpose_crl_sign(const X509_PURPOSE *xp, const X509 *x, int ca);
74 static int check_purpose_timestamp_sign(const X509_PURPOSE *xp, const X509 *x, int ca);
75 static int no_check(const X509_PURPOSE *xp, const X509 *x, int ca);
76 static int ocsp_helper(const X509_PURPOSE *xp, const X509 *x, int ca);
109 int X509_check_purpose(X509 *x, int id, int ca)
122 return pt->check_purpose(pt, x, ca);
378 if(bs->ca) x->ex_flags |= EXFLAG_CA;
381 || !bs->ca) {
552 static int check_purpose_ssl_client(const X509_PURPOSE *xp, const X509 *x, int ca)
555 if(ca) return check_ssl_ca(x);
563 static int check_purpose_ssl_server(const X509_PURPOSE *xp, const X509 *x, int ca)
566 if(ca) return check_ssl_ca(x);
576 static int check_purpose_ns_ssl_server(const X509_PURPOSE *xp, const X509 *x, int ca)
579 ret = check_purpose_ssl_server(xp, x, ca);
580 if(!ret || ca) return ret;
587 static int purpose_smime(const X509 *x, int ca)
590 if(ca) {
607 static int check_purpose_smime_sign(const X509_PURPOSE *xp, const X509 *x, int ca)
610 ret = purpose_smime(x, ca);
611 if(!ret || ca) return ret;
616 static int check_purpose_smime_encrypt(const X509_PURPOSE *xp, const X509 *x, int ca)
619 ret = purpose_smime(x, ca);
620 if(!ret || ca) return ret;
625 static int check_purpose_crl_sign(const X509_PURPOSE *xp, const X509 *x, int ca)
627 if(ca) {
640 static int ocsp_helper(const X509_PURPOSE *xp, const X509 *x, int ca)
644 if(ca) return check_ca(x);
650 int ca)
654 /* If ca is true we must return if this is a valid CA certificate. */
655 if (ca) return check_ca(x);
684 static int no_check(const X509_PURPOSE *xp, const X509 *x, int ca)