Home
last modified time | relevance | path

Searched refs:X509 (Results 1 – 25 of 196) sorted by relevance

12345678

/netbsd/src/crypto/external/bsd/openssl/dist/crypto/x509/
Dx509_cmp.c19 int X509_issuer_and_serial_cmp(const X509 *a, const X509 *b) in X509_issuer_and_serial_cmp()
37 unsigned long X509_issuer_and_serial_hash(X509 *a) in X509_issuer_and_serial_hash()
75 int X509_issuer_name_cmp(const X509 *a, const X509 *b) in X509_issuer_name_cmp()
80 int X509_subject_name_cmp(const X509 *a, const X509 *b) in X509_subject_name_cmp()
103 X509_NAME *X509_get_issuer_name(const X509 *a) in X509_get_issuer_name()
108 unsigned long X509_issuer_name_hash(X509 *x) in X509_issuer_name_hash()
114 unsigned long X509_issuer_name_hash_old(X509 *x) in X509_issuer_name_hash_old()
120 X509_NAME *X509_get_subject_name(const X509 *a) in X509_get_subject_name()
125 ASN1_INTEGER *X509_get_serialNumber(X509 *a) in X509_get_serialNumber()
130 const ASN1_INTEGER *X509_get0_serialNumber(const X509 *a) in X509_get0_serialNumber()
[all …]
Dx_x509.c39 X509 *ret = (X509 *)*pval; in x509_cb()
103 X509 *old = exarg; in x509_cb()
132 ASN1_SEQUENCE_ref(X509, x509_cb) = {
133 ASN1_EMBED(X509, cert_info, X509_CINF),
134 ASN1_EMBED(X509, sig_alg, X509_ALGOR),
135 ASN1_EMBED(X509, signature, ASN1_BIT_STRING)
136 } ASN1_SEQUENCE_END_ref(X509, X509)
138 IMPLEMENT_ASN1_FUNCTIONS(X509)
139 IMPLEMENT_ASN1_DUP_FUNCTION(X509)
146 int ossl_x509_set0_libctx(X509 *x, OSSL_LIB_CTX *libctx, const char *propq)
[all …]
Dx509_set.c22 int X509_set_version(X509 *x, long version) in X509_set_version()
38 int X509_set_serialNumber(X509 *x, ASN1_INTEGER *serial) in X509_set_serialNumber()
50 int X509_set_issuer_name(X509 *x, const X509_NAME *name) in X509_set_issuer_name()
57 int X509_set_subject_name(X509 *x, const X509_NAME *name) in X509_set_subject_name()
78 int X509_set1_notBefore(X509 *x, const ASN1_TIME *tm) in X509_set1_notBefore()
85 int X509_set1_notAfter(X509 *x, const ASN1_TIME *tm) in X509_set1_notAfter()
92 int X509_set_pubkey(X509 *x, EVP_PKEY *pkey) in X509_set_pubkey()
99 int X509_up_ref(X509 *x) in X509_up_ref()
111 long X509_get_version(const X509 *x) in X509_get_version()
116 const ASN1_TIME *X509_get0_notBefore(const X509 *x) in X509_get0_notBefore()
[all …]
Dv3_purp.c19 static int check_ssl_ca(const X509 *x);
20 static int check_purpose_ssl_client(const X509_PURPOSE *xp, const X509 *x,
22 static int check_purpose_ssl_server(const X509_PURPOSE *xp, const X509 *x,
24 static int check_purpose_ns_ssl_server(const X509_PURPOSE *xp, const X509 *x,
26 static int purpose_smime(const X509 *x, int require_ca);
27 static int check_purpose_smime_sign(const X509_PURPOSE *xp, const X509 *x,
29 static int check_purpose_smime_encrypt(const X509_PURPOSE *xp, const X509 *x,
31 static int check_purpose_crl_sign(const X509_PURPOSE *xp, const X509 *x,
33 static int check_purpose_timestamp_sign(const X509_PURPOSE *xp, const X509 *x,
35 static int no_check_purpose(const X509_PURPOSE *xp, const X509 *x,
[all …]
Dx_x509a.c24 static X509_CERT_AUX *aux_get(X509 *x);
36 int X509_trusted(const X509 *x)
41 static X509_CERT_AUX *aux_get(X509 *x) in aux_get()
50 int X509_alias_set1(X509 *x, const unsigned char *name, int len) in X509_alias_set1()
67 int X509_keyid_set1(X509 *x, const unsigned char *id, int len) in X509_keyid_set1()
85 unsigned char *X509_alias_get0(X509 *x, int *len) in X509_alias_get0()
94 unsigned char *X509_keyid_get0(X509 *x, int *len) in X509_keyid_get0()
103 int X509_add1_trust_object(X509 *x, const ASN1_OBJECT *obj) in X509_add1_trust_object()
124 int X509_add1_reject_object(X509 *x, const ASN1_OBJECT *obj) in X509_add1_reject_object()
146 void X509_trust_clear(X509 *x) in X509_trust_clear()
[all …]
Dx509_local.h42 int ossl_x509_check_cert_time(X509_STORE_CTX *ctx, X509 *x, int depth);
127 int (*get_issuer) (X509 **issuer, X509_STORE_CTX *ctx, X509 *x);
129 int (*check_issued) (X509_STORE_CTX *ctx, X509 *x, X509 *issuer);
133 int (*get_crl) (X509_STORE_CTX *ctx, X509_CRL **crl, X509 *x);
137 int (*cert_crl) (X509_STORE_CTX *ctx, X509_CRL *crl, X509 *x);
140 STACK_OF(X509) *(*lookup_certs) (X509_STORE_CTX *ctx,
158 int ossl_x509_likely_issued(X509 *issuer, X509 *subject);
159 int ossl_x509_signing_allowed(const X509 *issuer, const X509 *subject);
Dx509_vfy.c48 static int check_issued(X509_STORE_CTX *ctx, X509 *x, X509 *issuer);
49 static X509 *find_issuer(X509_STORE_CTX *ctx, STACK_OF(X509) *sk, X509 *x);
57 static int get_issuer_sk(X509 **issuer, X509_STORE_CTX *ctx, X509 *x);
59 static int check_key_level(X509_STORE_CTX *ctx, X509 *cert);
60 static int check_sig_level(X509_STORE_CTX *ctx, X509 *cert);
61 static int check_curve(X509 *cert);
63 static int get_crl_score(X509_STORE_CTX *ctx, X509 **pissuer,
64 unsigned int *preasons, X509_CRL *crl, X509 *x);
66 X509_CRL **pcrl, X509_CRL **pdcrl, X509 *x);
70 static void crl_akid_check(X509_STORE_CTX *ctx, X509_CRL *crl, X509 **pissuer,
[all …]
Dx509_trust.c18 static int trust_1oidany(X509_TRUST *trust, X509 *x, int flags);
19 static int trust_1oid(X509_TRUST *trust, X509 *x, int flags);
20 static int trust_compat(X509_TRUST *trust, X509 *x, int flags);
22 static int obj_trust(int id, X509 *x, int flags);
23 static int (*default_trust) (int id, X509 *x, int flags) = obj_trust;
57 int (*X509_TRUST_set_default(int (*trust) (int, X509 *, int))) (int, X509 *, in X509_TRUST_set_default() argument
59 int (*oldtrust) (int, X509 *, int); in X509_TRUST_set_default()
65 int X509_check_trust(X509 *x, int id, int flags) in X509_check_trust()
123 int X509_TRUST_add(int id, int flags, int (*ck) (X509_TRUST *, X509 *, int), in X509_TRUST_add() argument
217 static int trust_1oidany(X509_TRUST *trust, X509 *x, int flags) in trust_1oidany()
[all …]
Dx509_ext.c66 int X509_get_ext_count(const X509 *x) in X509_get_ext_count()
71 int X509_get_ext_by_NID(const X509 *x, int nid, int lastpos) in X509_get_ext_by_NID()
76 int X509_get_ext_by_OBJ(const X509 *x, const ASN1_OBJECT *obj, int lastpos) in X509_get_ext_by_OBJ()
81 int X509_get_ext_by_critical(const X509 *x, int crit, int lastpos) in X509_get_ext_by_critical()
87 X509_EXTENSION *X509_get_ext(const X509 *x, int loc) in X509_get_ext()
92 X509_EXTENSION *X509_delete_ext(X509 *x, int loc) in X509_delete_ext()
97 int X509_add_ext(X509 *x, X509_EXTENSION *ex, int loc) in X509_add_ext()
102 void *X509_get_ext_d2i(const X509 *x, int nid, int *crit, int *idx) in X509_get_ext_d2i()
107 int X509_add1_ext_i2d(X509 *x, int nid, void *value, int crit, in X509_add1_ext_i2d()
Dx_all.c31 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()
80 int X509_sign_ctx(X509 *x, EVP_MD_CTX *ctx) in X509_sign_ctx()
108 X509 *X509_load_http(const char *url, BIO *bio, BIO *rbio, int timeout) in X509_load_http()
110 return (X509 *)simple_get_asn1(url, bio, rbio, timeout, in X509_load_http()
111 ASN1_ITEM_rptr(X509)); in X509_load_http()
176 X509 *d2i_X509_fp(FILE *fp, X509 **x509) in d2i_X509_fp()
178 return ASN1_item_d2i_fp(ASN1_ITEM_rptr(X509), fp, x509); in d2i_X509_fp()
181 int i2d_X509_fp(FILE *fp, const X509 *x509) in i2d_X509_fp()
183 return ASN1_item_i2d_fp(ASN1_ITEM_rptr(X509), fp, x509); in i2d_X509_fp()
[all …]
/netbsd/src/crypto/external/bsd/openssl/dist/crypto/ocsp/
Docsp_vfy.c16 static int ocsp_find_signer(X509 **psigner, OCSP_BASICRESP *bs,
17 STACK_OF(X509) *certs, unsigned long flags);
18 static X509 *ocsp_find_signer_sk(STACK_OF(X509) *certs, OCSP_RESPID *id);
19 static int ocsp_check_issuer(OCSP_BASICRESP *bs, STACK_OF(X509) *chain);
22 static int ocsp_match_issuerid(X509 *cert, OCSP_CERTID *cid,
24 static int ocsp_check_delegated(X509 *x);
25 static int ocsp_req_find_signer(X509 **psigner, OCSP_REQUEST *req,
26 const X509_NAME *nm, STACK_OF(X509) *certs,
30 static int ocsp_verify_signer(X509 *signer, int response, in ocsp_verify_signer()
32 STACK_OF(X509) *untrusted, STACK_OF(X509) **chain) in ocsp_verify_signer()
[all …]
Docsp_srv.c157 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()
/netbsd/src/usr.sbin/syslogd/
Dtls.h164 bool read_certfile(X509 **, const char *);
165 bool write_x509files(EVP_PKEY *, X509 *, const char *, const char *);
166 bool mk_x509_cert(X509 **, EVP_PKEY **, int, int, int);
167 bool x509_cert_add_subjectAltName(X509 *, X509V3_CTX *);
170 bool get_fingerprint(const X509 *, char **, const char *);
171 bool get_commonname(X509 *, char **);
172 bool match_hostnames(X509 *, const char *, const char *);
173 bool match_fingerprint(const X509 *, const char *);
174 bool match_certfile(const X509 *, const char *);
/netbsd/src/crypto/external/bsd/openssl/dist/test/
Dv3nametest.c85 static int set_cn(X509 *crt, ...) in set_cn()
124 static int set_altname(X509 *crt, ...) in set_altname()
174 static int set_cn1(X509 *crt, const char *name) in set_cn1()
179 static int set_cn_and_email(X509 *crt, const char *name) in set_cn_and_email()
185 static int set_cn2(X509 *crt, const char *name) in set_cn2()
191 static int set_cn3(X509 *crt, const char *name) in set_cn3()
197 static int set_email1(X509 *crt, const char *name) in set_email1()
202 static int set_email2(X509 *crt, const char *name) in set_email2()
208 static int set_email3(X509 *crt, const char *name) in set_email3()
214 static int set_email_and_cn(X509 *crt, const char *name) in set_email_and_cn()
[all …]
Dverify_extra_test.c65 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()
Docspapitest.c25 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()
/netbsd/src/crypto/external/bsd/openssl/dist/crypto/pkcs12/
Dp12_kiss.c18 EVP_PKEY **pkey, STACK_OF(X509) *ocerts);
21 int passlen, EVP_PKEY **pkey, STACK_OF(X509) *ocerts);
24 EVP_PKEY **pkey, STACK_OF(X509) *ocerts);
33 int PKCS12_parse(PKCS12 *p12, const char *pass, EVP_PKEY **pkey, X509 **cert, in PKCS12_parse()
34 STACK_OF(X509) **ca) in PKCS12_parse()
36 STACK_OF(X509) *ocerts = NULL; in PKCS12_parse()
37 X509 *x = NULL; in PKCS12_parse()
137 EVP_PKEY **pkey, STACK_OF(X509) *ocerts) in parse_pk12()
172 int passlen, EVP_PKEY **pkey, STACK_OF(X509) *ocerts) in parse_bags()
185 EVP_PKEY **pkey, STACK_OF(X509) *ocerts) in parse_bag()
[all …]
/netbsd/src/crypto/external/bsd/openssl/dist/crypto/ts/
Dts_rsp_verify.c19 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);
37 static int ts_check_signer_name(GENERAL_NAME *tsa_name, X509 *signer);
88 int TS_RESP_verify_signature(PKCS7 *token, STACK_OF(X509) *certs, in TS_RESP_verify_signature()
89 X509_STORE *store, X509 **signer_out) 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()
[all …]
/netbsd/src/usr.bin/nbsvtool/
Dnbsvtool.c71 sign_file(X509 *cert, EVP_PKEY *private_key, STACK_OF(X509) *cert_chain, in sign_file()
107 verify_file(STACK_OF(X509) *cert_chain, const char *anchor, in verify_file()
110 STACK_OF(X509) *signers; in verify_file()
151 X509 *x = sk_X509_value(signers, i); in verify_file()
187 static STACK_OF(X509) * in STACK_OF() argument
190 STACK_OF(X509) *certs; in STACK_OF()
198 X509 *cert; in STACK_OF()
232 X509 *certificate;
233 STACK_OF(X509) *cert_chain;
247 STACK_OF(X509) *c; in load_keys()
/netbsd/src/crypto/external/bsd/openssl/dist/crypto/pkcs7/
Dpk7_smime.c23 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()
382 STACK_OF(X509) *PKCS7_get0_signers(PKCS7 *p7, STACK_OF(X509) *certs, in STACK_OF() argument
385 STACK_OF(X509) *signers; in STACK_OF()
389 X509 *signer; in STACK_OF()
445 PKCS7 *PKCS7_encrypt_ex(STACK_OF(X509) *certs, BIO *in, in PKCS7_encrypt_ex()
[all …]
/netbsd/src/crypto/external/bsd/openssl/dist/crypto/cms/
Dcms_smime.c263 STACK_OF(X509) *certs, in cms_signerinfo_verify_cert()
265 STACK_OF(X509) **chain, in cms_signerinfo_verify_cert()
269 X509 *signer; in cms_signerinfo_verify_cert()
305 int CMS_verify(CMS_ContentInfo *cms, STACK_OF(X509) *certs, in CMS_verify()
310 STACK_OF(X509) *cms_certs = NULL; in CMS_verify()
312 STACK_OF(X509) **si_chains = NULL; in CMS_verify()
313 X509 *signer; in CMS_verify()
387 STACK_OF(X509) *si_chain = si_chains ? si_chains[i] : NULL; in CMS_verify()
493 STACK_OF(X509) *certs, in CMS_verify_receipt()
505 CMS_ContentInfo *CMS_sign_ex(X509 *signcert, EVP_PKEY *pkey, in CMS_sign_ex()
[all …]
Dcms_local.h99 X509 *signer;
163 X509 *recip;
312 X509 *certificate;
409 int ossl_cms_set1_SignerIdentifier(CMS_SignerIdentifier *sid, X509 *cert,
415 int ossl_cms_SignerIdentifier_cert_cmp(CMS_SignerIdentifier *sid, X509 *cert);
427 int ossl_cms_ias_cert_cmp(CMS_IssuerAndSerialNumber *ias, X509 *cert);
428 int ossl_cms_keyid_cert_cmp(ASN1_OCTET_STRING *keyid, X509 *cert);
429 int ossl_cms_set1_ias(CMS_IssuerAndSerialNumber **pias, X509 *cert);
430 int ossl_cms_set1_keyid(ASN1_OCTET_STRING **pkeyid, X509 *cert);
460 int ossl_cms_RecipientInfo_kari_init(CMS_RecipientInfo *ri, X509 *recip,
[all …]
/netbsd/src/external/bsd/libevent/dist/sample/
Dopenssl_hostname_validation.c65 static HostnameValidationResult matches_common_name(const char *hostname, const X509 *server_cert) { in matches_common_name()
72 …common_name_loc = X509_NAME_get_index_by_NID(X509_get_subject_name((X509 *) server_cert), NID_comm… in matches_common_name()
78 …common_name_entry = X509_NAME_get_entry(X509_get_subject_name((X509 *) server_cert), common_name_l… in matches_common_name()
113 static HostnameValidationResult matches_subject_alternative_name(const char *hostname, const X509 *… in matches_subject_alternative_name()
120 san_names = X509_get_ext_d2i((X509 *) server_cert, NID_subject_alt_name, NULL, NULL); in matches_subject_alternative_name()
165 HostnameValidationResult validate_hostname(const char *hostname, const X509 *server_cert) { in validate_hostname()
/netbsd/src/crypto/external/bsd/openssl/dist/apps/
Dverify.c23 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()
/netbsd/src/crypto/external/bsd/openssl/dist/ssl/
Dssl_rsa.c20 static int ssl_set_cert(CERT *c, X509 *x509);
28 int SSL_use_certificate(SSL *ssl, X509 *x) in SSL_use_certificate()
50 X509 *cert = NULL, *x = NULL; in SSL_use_certificate_file()
98 X509 *x; in SSL_use_certificate_ASN1()
211 int SSL_CTX_use_certificate(SSL_CTX *ctx, X509 *x) in SSL_CTX_use_certificate()
227 static int ssl_set_cert(CERT *c, X509 *x) in ssl_set_cert()
282 X509 *x = NULL, *cert = NULL; in SSL_CTX_use_certificate_file()
325 X509 *x; in SSL_CTX_use_certificate_ASN1()
422 X509 *x = NULL; in use_certificate_chain_file()
476 X509 *ca; in use_certificate_chain_file()
[all …]

12345678