Lines Matching refs:x509

94                    EVP_PKEY *pkey, X509 *x509,
106 const char *passin, EVP_PKEY *pkey, X509 *x509,
117 X509 *x509, const char *dgst,
125 static int do_body(X509 **xret, EVP_PKEY *pkey, X509 *x509,
135 static int do_revoke(X509 *x509, CA_DB *db, REVINFO_TYPE rev_type,
306 X509 *x509 = NULL, *x509p = NULL, *x = NULL; in ca_main() local
607 x509 = load_cert_pass(certfile, certformat, 1, passin, "CA certificate"); in ca_main()
608 if (x509 == NULL) in ca_main()
611 if (!X509_check_private_key(x509, pkey)) { in ca_main()
618 x509p = x509; in ca_main()
932 j = certify_spkac(&x, spkac_file, pkey, x509, dgst, sigopts, in ca_main()
953 x509, dgst, sigopts, vfyopts, attribs, in ca_main()
1169 if (!X509_CRL_set_issuer_name(crl, X509_get_subject_name(x509))) in ca_main()
1222 X509V3_set_ctx(&crlctx, x509, NULL, NULL, crl, 0); in ca_main()
1318 X509_free(x509); in ca_main()
1335 EVP_PKEY *pkey, X509 *x509, in certify() argument
1381 ok = do_body(xret, pkey, x509, dgst, sigopts, policy, db, serial, subj, in certify()
1393 const char *passin, EVP_PKEY *pkey, X509 *x509, in certify_cert() argument
1438 ok = do_body(xret, pkey, x509, dgst, sigopts, policy, db, serial, subj, in certify_cert()
1449 static int do_body(X509 **xret, EVP_PKEY *pkey, X509 *x509, in do_body() argument
1546 CAname = X509_NAME_dup(X509_get_subject_name(x509)); in do_body()
1666 if (!X509_set_issuer_name(ret, X509_get_subject_name(x509))) in do_body()
1690 X509V3_set_ctx(&ext_ctx, selfsign ? ret : x509, in do_body()
1960 X509 *x509, const char *dgst, in certify_spkac() argument
2077 ok = do_body(xret, pkey, x509, dgst, sigopts, policy, db, serial, subj, in certify_spkac()
2095 static int do_revoke(X509 *x509, CA_DB *db, REVINFO_TYPE rev_type, in do_revoke() argument
2106 row[DB_name] = X509_NAME_oneline(X509_get_subject_name(x509), NULL, 0); in do_revoke()
2107 bn = ASN1_INTEGER_to_BN(X509_get0_serialNumber(x509), NULL); in do_revoke()
2136 tm = X509_get0_notAfter(x509); in do_revoke()
2168 ok = do_revoke(x509, db, rev_type, value); in do_revoke()