/openssl/test/helpers/ |
H A D | cmp_testlib.c | 35 int STACK_OF_X509_cmp(const STACK_OF(X509) *sk1, const STACK_OF(X509) *sk2) in STACK_OF_X509_cmp() 38 X509 *a, *b; in STACK_OF_X509_cmp() 63 int STACK_OF_X509_push1(STACK_OF(X509) *sk, X509 *cert) in STACK_OF_X509_push1()
|
/openssl/apps/include/ |
H A D | cmp_mock_srv.h | 23 int ossl_cmp_mock_srv_set1_refCert(OSSL_CMP_SRV_CTX *srv_ctx, X509 *cert); 24 int ossl_cmp_mock_srv_set1_certOut(OSSL_CMP_SRV_CTX *srv_ctx, X509 *cert); 26 STACK_OF(X509) *chain); 28 STACK_OF(X509) *caPubs);
|
/openssl/doc/man3/ |
H A D | OCSP_response_status.pod | 20 int OCSP_RESPID_set_by_name(OCSP_RESPID *respid, X509 *cert); 21 int OCSP_RESPID_set_by_key_ex(OCSP_RESPID *respid, X509 *cert, 23 int OCSP_RESPID_set_by_key(OCSP_RESPID *respid, X509 *cert); 24 int OCSP_RESPID_match_ex(OCSP_RESPID *respid, X509 *cert, OSSL_LIB_CTX *libctx, 26 int OCSP_RESPID_match(OCSP_RESPID *respid, X509 *cert); 28 int OCSP_basic_sign(OCSP_BASICRESP *brsp, X509 *signer, EVP_PKEY *key, 29 const EVP_MD *dgst, STACK_OF(X509) *certs, 31 int OCSP_basic_sign_ctx(OCSP_BASICRESP *brsp, X509 *signer, EVP_MD_CTX *ctx, 32 STACK_OF(X509) *certs, unsigned long flags); 51 subject name in the supplied X509 certificate I<cert> for the OCSP responder. [all …]
|
H A D | TS_VERIFY_CTX_set_certs.pod | 12 STACK_OF(X509) *TS_VERIFY_CTX_set_certs(TS_VERIFY_CTX *ctx, 13 STACK_OF(X509) *certs); 14 STACK_OF(X509) *TS_VERIFY_CTS_set_certs(TS_VERIFY_CTX *ctx, 15 STACK_OF(X509) *certs); 32 B<certs> is a stack of B<X509> certificates. 39 TS_VERIFY_CTX_set_certs() returns the stack of B<X509> certificates the user
|
/openssl/crypto/ts/ |
H A D | ts_rsp_verify.c | 19 static int ts_verify_cert(X509_STORE *store, STACK_OF(X509) *untrusted, 20 X509 *signer, STACK_OF(X509) **chain); 22 const STACK_OF(X509) *chain); 88 int TS_RESP_verify_signature(PKCS7 *token, STACK_OF(X509) *certs, in TS_RESP_verify_signature() 93 STACK_OF(X509) *untrusted = NULL; in TS_RESP_verify_signature() 94 STACK_OF(X509) *signers = NULL; in TS_RESP_verify_signature() 95 X509 *signer; in TS_RESP_verify_signature() 96 STACK_OF(X509) *chain = NULL; in TS_RESP_verify_signature() 172 X509 *signer, STACK_OF(X509) **chain) in ts_verify_cert() 232 const STACK_OF(X509) *chain) in ts_check_signing_certs() [all …]
|
/openssl/crypto/cmp/ |
H A D | cmp_vfy.c | 26 const OSSL_CMP_MSG *msg, X509 *cert) in verify_signature() 107 X509_STORE *trusted_store, X509 *cert) in OSSL_CMP_validate_cert_path() 207 static int already_checked(const X509 *cert, in already_checked() 208 const STACK_OF(X509) *already_checked) in already_checked() 228 const STACK_OF(X509) *already_checked1, in cert_acceptable() 229 const STACK_OF(X509) *already_checked2, in cert_acceptable() 286 X509 *scrt) in check_cert_path() 304 const OSSL_CMP_MSG *msg, X509 *scrt) in check_cert_path_3gpp() 345 static int check_msg_given_cert(const OSSL_CMP_CTX *ctx, X509 *cert, in check_msg_given_cert() 375 X509 *cert = sk_X509_value(certs, i); in check_msg_with_certs() [all …]
|
/openssl/test/ |
H A D | verify_extra_test.c | 65 X509 *x = NULL; in test_alt_chains_cert_forgery() 66 STACK_OF(X509) *untrusted = NULL; in test_alt_chains_cert_forgery() 109 X509 *x = NULL; in test_distinguishing_id() 183 X509 *cert = load_cert_from_file(filename); /* may result in NULL */ in test_self_signed() 184 STACK_OF(X509) *trusted = sk_X509_new_null(); in test_self_signed() 227 X509 *eecert = load_cert_from_file(ee_cert); /* may result in NULL */ in do_test_purpose() 228 X509 *untrcert = load_cert_from_file(ca_cert); in do_test_purpose() 229 X509 *trcert = load_cert_from_file(sroot_cert); in do_test_purpose() 230 STACK_OF(X509) *trusted = sk_X509_new_null(); in do_test_purpose() 231 STACK_OF(X509) *untrusted = sk_X509_new_null(); in do_test_purpose()
|
H A D | ocspapitest.c | 25 static int get_cert_and_key(X509 **cert_out, EVP_PKEY **key_out) in get_cert_and_key() 28 X509 *cert = NULL; in get_cert_and_key() 50 static int get_cert(X509 **cert_out) in get_cert() 53 X509 *cert = NULL; in get_cert() 115 X509 *signer = NULL, *tmp; in test_resp_signer() 117 STACK_OF(X509) *extra_certs = NULL; in test_resp_signer() 195 X509 *issuer = NULL; in test_ocsp_url_svcloc_new()
|
H A D | crltest.c | 183 static X509 *test_root = NULL; 184 static X509 *test_leaf = NULL; 222 static X509 *X509_from_strings(const char **pem) in X509_from_strings() 224 X509 *x; in X509_from_strings() 246 static int verify(X509 *leaf, X509 *root, STACK_OF(X509_CRL) *crls, in verify() 252 STACK_OF(X509) *roots = sk_X509_new_null(); in verify()
|
/openssl/include/openssl/ |
H A D | x509_vfy.h.in | 128 int X509_trusted(const X509 *x); 131 void X509_trust_clear(X509 *x); 132 void X509_reject_clear(X509 *x); 136 int (*X509_TRUST_set_default(int (*trust) (int, X509 *, int))) (int, X509 *, 138 int X509_check_trust(X509 *x, int id, int flags); 142 STACK_OF(X509) *X509_build_chain(X509 *target, STACK_OF(X509) *certs, 154 X509 *x, X509 *issuer); 162 typedef STACK_OF(X509) typedef 466 int X509_STORE_CTX_get1_issuer(X509 **issuer, X509_STORE_CTX *ctx, X509 *x); 470 X509 *target, STACK_OF(X509) *untrusted); [all …]
|
H A D | ess.h.in | 65 ESS_SIGNING_CERT *OSSL_ESS_signing_cert_new_init(const X509 *signcert, 66 const STACK_OF(X509) *certs, 69 const X509 *signcert, 71 STACK_OF(X509) *certs, 75 const STACK_OF(X509) *chain,
|
H A D | ocsp.h.in | 201 const X509 *issuer); 216 int OCSP_request_add1_cert(OCSP_REQUEST *req, X509 *cert); 219 X509 *signer, 230 int OCSP_resp_get0_signer(OCSP_BASICRESP *bs, X509 **signer, 231 STACK_OF(X509) *extra_certs); 280 int OCSP_basic_add1_cert(OCSP_BASICRESP *resp, X509 *cert); 285 X509 *signer, EVP_MD_CTX *ctx, 287 int OCSP_RESPID_set_by_name(OCSP_RESPID *respid, X509 *cert); 288 int OCSP_RESPID_set_by_key_ex(OCSP_RESPID *respid, X509 *cert, 290 int OCSP_RESPID_set_by_key(OCSP_RESPID *respid, X509 *cert); [all …]
|
/openssl/crypto/pkcs7/ |
H A D | pk7_smime.c | 23 PKCS7 *PKCS7_sign_ex(X509 *signcert, EVP_PKEY *pkey, STACK_OF(X509) *certs, in PKCS7_sign_ex() 67 PKCS7 *PKCS7_sign(X509 *signcert, EVP_PKEY *pkey, STACK_OF(X509) *certs, in PKCS7_sign() 117 PKCS7_SIGNER_INFO *PKCS7_sign_add_signer(PKCS7 *p7, X509 *signcert, in PKCS7_sign_add_signer() 213 int PKCS7_verify(PKCS7 *p7, STACK_OF(X509) *certs, X509_STORE *store, in PKCS7_verify() 216 STACK_OF(X509) *signers; in PKCS7_verify() 217 X509 *signer; in PKCS7_verify() 360 STACK_OF(X509) *PKCS7_get0_signers(PKCS7 *p7, STACK_OF(X509) *certs, in STACK_OF() argument 363 STACK_OF(X509) *signers; in STACK_OF() 367 X509 *signer; in STACK_OF() 423 PKCS7 *PKCS7_encrypt_ex(STACK_OF(X509) *certs, BIO *in, in PKCS7_encrypt_ex() [all …]
|
/openssl/apps/lib/ |
H A D | cmp_mock_srv.c | 21 X509 *refCert; /* cert to expect for oldCertID in kur/rr msg */ 68 int ossl_cmp_mock_srv_set1_refCert(OSSL_CMP_SRV_CTX *srv_ctx, X509 *cert) in ossl_cmp_mock_srv_set1_refCert() 84 int ossl_cmp_mock_srv_set1_certOut(OSSL_CMP_SRV_CTX *srv_ctx, X509 *cert) in ossl_cmp_mock_srv_set1_certOut() 101 STACK_OF(X509) *chain) in ossl_cmp_mock_srv_set1_chainOut() 104 STACK_OF(X509) *chain_copy = NULL; in ossl_cmp_mock_srv_set1_chainOut() 118 STACK_OF(X509) *caPubs) in ossl_cmp_mock_srv_set1_caPubsOut() 121 STACK_OF(X509) *caPubs_copy = NULL; in ossl_cmp_mock_srv_set1_caPubsOut() 192 static int refcert_cmp(const X509 *refcert, in refcert_cmp() 211 X509 **certOut, in process_cert_request() 212 STACK_OF(X509) **chainOut, in process_cert_request() [all …]
|
/openssl/crypto/pem/ |
H A D | pem_x509.c | 18 IMPLEMENT_PEM_rw(X509, X509, PEM_STRING_X509, X509)
|
/openssl/crypto/ocsp/ |
H A D | ocsp_srv.c | 157 int OCSP_basic_add1_cert(OCSP_BASICRESP *resp, X509 *cert) in OCSP_basic_add1_cert() 168 X509 *signer, EVP_MD_CTX *ctx, in OCSP_basic_sign_ctx() 169 STACK_OF(X509) *certs, unsigned long flags) in OCSP_basic_sign_ctx() 216 X509 *signer, EVP_PKEY *key, const EVP_MD *dgst, in OCSP_basic_sign() 217 STACK_OF(X509) *certs, unsigned long flags) in OCSP_basic_sign() 236 int OCSP_RESPID_set_by_name(OCSP_RESPID *respid, X509 *cert) in OCSP_RESPID_set_by_name() 246 int OCSP_RESPID_set_by_key_ex(OCSP_RESPID *respid, X509 *cert, in OCSP_RESPID_set_by_key_ex() 279 int OCSP_RESPID_set_by_key(OCSP_RESPID *respid, X509 *cert) in OCSP_RESPID_set_by_key() 286 int OCSP_RESPID_match_ex(OCSP_RESPID *respid, X509 *cert, OSSL_LIB_CTX *libctx, in OCSP_RESPID_match_ex() 322 int OCSP_RESPID_match(OCSP_RESPID *respid, X509 *cert) in OCSP_RESPID_match()
|
/openssl/test/testutil/ |
H A D | load.c | 18 X509 *load_cert_pem(const char *file, OSSL_LIB_CTX *libctx) in load_cert_pem() 20 X509 *cert = NULL; in load_cert_pem() 33 STACK_OF(X509) *load_certs_pem(const char *file) in STACK_OF() argument 35 STACK_OF(X509) *certs; in STACK_OF() 37 X509 *x; in STACK_OF()
|
/openssl/crypto/cms/ |
H A D | cms_smime.c | 268 X509 *signer; in cms_signerinfo_verify_cert() 304 int CMS_verify(CMS_ContentInfo *cms, STACK_OF(X509) *certs, in CMS_verify() 309 STACK_OF(X509) *cms_certs = NULL; in CMS_verify() 311 STACK_OF(X509) **si_chains = NULL; in CMS_verify() 312 X509 *signer; in CMS_verify() 492 STACK_OF(X509) *certs, in CMS_verify_receipt() 526 X509 *x = sk_X509_value(certs, i); in CMS_sign_ex() 549 CMS_ContentInfo *CMS_sign(X509 *signcert, EVP_PKEY *pkey, STACK_OF(X509) *certs, in CMS_sign() 633 X509 *recip; in CMS_encrypt_ex() 673 EVP_PKEY *pk, X509 *cert, X509 *peer) in cms_kari_set1_pkey_and_peer() [all …]
|
H A D | cms_local.h | 97 X509 *signer; 161 X509 *recip; 310 X509 *certificate; 411 int ossl_cms_set1_SignerIdentifier(CMS_SignerIdentifier *sid, X509 *cert, 429 int ossl_cms_ias_cert_cmp(CMS_IssuerAndSerialNumber *ias, X509 *cert); 430 int ossl_cms_keyid_cert_cmp(ASN1_OCTET_STRING *keyid, X509 *cert); 431 int ossl_cms_set1_ias(CMS_IssuerAndSerialNumber **pias, X509 *cert); 432 int ossl_cms_set1_keyid(ASN1_OCTET_STRING **pkeyid, X509 *cert); 462 int ossl_cms_RecipientInfo_kari_init(CMS_RecipientInfo *ri, X509 *recip, 463 EVP_PKEY *recipPubKey, X509 *originator, [all …]
|
/openssl/crypto/ct/ |
H A D | ct_local.h | 110 X509 *cert; 111 X509 *issuer; 138 __owur int SCT_CTX_set1_cert(SCT_CTX *sctx, X509 *cert, X509 *presigner); 147 __owur int SCT_CTX_set1_issuer(SCT_CTX *sctx, const X509 *issuer);
|
H A D | ct_sct_ctx.c | 63 static int ct_x509_get_ext(X509 *cert, int nid, int *is_duplicated) in ct_x509_get_ext() 78 __owur static int ct_x509_cert_fixup(X509 *cert, X509 *presigner) in ct_x509_cert_fixup() 122 int SCT_CTX_set1_cert(SCT_CTX *sctx, X509 *cert, X509 *presigner) in SCT_CTX_set1_cert() 125 X509 *pretmp = NULL; in SCT_CTX_set1_cert() 248 int SCT_CTX_set1_issuer(SCT_CTX *sctx, const X509 *issuer) in SCT_CTX_set1_issuer()
|
H A D | ct_policy.c | 70 int CT_POLICY_EVAL_CTX_set1_cert(CT_POLICY_EVAL_CTX *ctx, X509 *cert) in CT_POLICY_EVAL_CTX_set1_cert() 78 int CT_POLICY_EVAL_CTX_set1_issuer(CT_POLICY_EVAL_CTX *ctx, X509 *issuer) in CT_POLICY_EVAL_CTX_set1_issuer() 97 X509* CT_POLICY_EVAL_CTX_get0_cert(const CT_POLICY_EVAL_CTX *ctx) in CT_POLICY_EVAL_CTX_get0_cert() 102 X509* CT_POLICY_EVAL_CTX_get0_issuer(const CT_POLICY_EVAL_CTX *ctx) in CT_POLICY_EVAL_CTX_get0_issuer()
|
/openssl/ssl/statem/ |
H A D | extensions_srvr.c | 43 X509 *x, size_t chainidx) in tls_parse_ctos_renegotiate() 206 X509 *x, size_t chainidx) in tls_parse_ctos_srp() 227 X509 *x, size_t chainidx) in tls_parse_ctos_ec_pt_formats() 266 ossl_unused X509 *x, in tls_parse_ctos_sig_algs_cert() 411 X509 *x, size_t chainidx) in tls_parse_ctos_npn() 429 X509 *x, size_t chainidx) in tls_parse_ctos_alpn() 534 X509 *x, size_t chainidx) in tls_parse_ctos_etm() 690 X509 *x, size_t chainidx) in tls_parse_ctos_cookie() 929 X509 *x, size_t chainidx) in tls_parse_ctos_ems() 947 X509 *x, size_t chainidx) in tls_parse_ctos_early_data() [all …]
|
/openssl/apps/ |
H A D | verify.c | 23 STACK_OF(X509) *uchain, STACK_OF(X509) *tchain, 82 STACK_OF(X509) *untrusted = NULL, *trusted = NULL; in verify_main() 246 STACK_OF(X509) *uchain, STACK_OF(X509) *tchain, in check() 250 X509 *x = NULL; in check() 253 STACK_OF(X509) *chain = NULL; in check() 302 X509 *cert = sk_X509_value(chain, j); in check() 331 X509 *current_cert = X509_STORE_CTX_get_current_cert(ctx); in cb()
|
/openssl/crypto/x509/ |
H A D | x_all.c | 31 int X509_verify(X509 *a, EVP_PKEY *r) in X509_verify() 60 int X509_sign(X509 *x, EVP_PKEY *pkey, const EVP_MD *md) in X509_sign() 68 int X509_sign_ctx(X509 *x, EVP_MD_CTX *ctx) in X509_sign_ctx() 92 return (X509 *)simple_get_asn1(url, bio, rbio, timeout, in X509_load_http() 93 ASN1_ITEM_rptr(X509)); in X509_load_http() 139 X509 *d2i_X509_fp(FILE *fp, X509 **x509) in d2i_X509_fp() 141 return ASN1_item_d2i_fp(ASN1_ITEM_rptr(X509), fp, x509); in d2i_X509_fp() 144 int i2d_X509_fp(FILE *fp, const X509 *x509) in i2d_X509_fp() 150 X509 *d2i_X509_bio(BIO *bp, X509 **x509) in d2i_X509_bio() 155 int i2d_X509_bio(BIO *bp, const X509 *x509) in i2d_X509_bio() [all …]
|