Searched refs:X509 (Results 1 - 25 of 155) sorted by relevance

1234567

/freebsd-12-stable/contrib/wpa/src/crypto/
H A Dtls_openssl.h16 enum ocsp_result check_ocsp_resp(SSL_CTX *ssl_ctx, SSL *ssl, X509 *cert,
17 X509 *issuer, X509 *issuer_issuer);
/freebsd-12-stable/crypto/openssl/crypto/pem/
H A Dpem_x509.c18 IMPLEMENT_PEM_rw(X509, X509, PEM_STRING_X509, X509)
H A Dpem_xaux.c18 IMPLEMENT_PEM_rw(X509_AUX, X509, PEM_STRING_X509_TRUSTED, X509_AUX)
/freebsd-12-stable/contrib/ldns/ldns/
H A Ddane.h146 ldns_status ldns_dane_cert2rdf(ldns_rdf** rdf, X509* cert,
179 ldns_status ldns_dane_select_certificate(X509** selected_cert,
180 X509* cert, STACK_OF(X509)* extra_certs,
201 X509* cert);
243 X509* cert, STACK_OF(X509)* extra_certs,
280 X509* cert, STACK_OF(X509)* extra_certs,
/freebsd-12-stable/contrib/libevent/sample/
H A Dopenssl_hostname_validation.h56 HostnameValidationResult validate_hostname(const char *hostname, const X509 *server_cert);
H A Dopenssl_hostname_validation.c63 static HostnameValidationResult matches_common_name(const char *hostname, const X509 *server_cert) {
70 common_name_loc = X509_NAME_get_index_by_NID(X509_get_subject_name((X509 *) server_cert), NID_commonName, -1);
76 common_name_entry = X509_NAME_get_entry(X509_get_subject_name((X509 *) server_cert), common_name_loc);
111 static HostnameValidationResult matches_subject_alternative_name(const char *hostname, const X509 *server_cert) {
118 san_names = X509_get_ext_d2i((X509 *) server_cert, NID_subject_alt_name, NULL, NULL);
163 HostnameValidationResult validate_hostname(const char *hostname, const X509 *server_cert) {
/freebsd-12-stable/crypto/openssl/include/openssl/
H A Dx509.h99 DEFINE_STACK_OF(X509)
106 int (*check_trust) (struct x509_trust_st *, X509 *, int);
246 X509 *x509;
274 STACK_OF(X509) *certs;
350 int X509_verify(X509 *a, EVP_PKEY *r);
367 int X509_sign(X509 *x, EVP_PKEY *pkey, const EVP_MD *md);
368 int X509_sign_ctx(X509 *x, EVP_MD_CTX *ctx);
370 int X509_http_nbio(OCSP_REQ_CTX *rctx, X509 **pcert);
381 int X509_pubkey_digest(const X509 *data, const EVP_MD *type,
383 int X509_digest(const X509 *dat
[all...]
H A Dcms.h103 CMS_ContentInfo *CMS_sign(X509 *signcert, EVP_PKEY *pkey,
104 STACK_OF(X509) *certs, BIO *data,
108 X509 *signcert, EVP_PKEY *pkey,
109 STACK_OF(X509) *certs, unsigned int flags);
130 int CMS_verify(CMS_ContentInfo *cms, STACK_OF(X509) *certs,
134 STACK_OF(X509) *certs,
137 STACK_OF(X509) *CMS_get0_signers(CMS_ContentInfo *cms);
139 CMS_ContentInfo *CMS_encrypt(STACK_OF(X509) *certs, BIO *in,
142 int CMS_decrypt(CMS_ContentInfo *cms, EVP_PKEY *pkey, X509 *cert,
145 int CMS_decrypt_set1_pkey(CMS_ContentInfo *cms, EVP_PKEY *pk, X509 *cer
[all...]
H A Dpkcs7.h56 X509 *cert; /* get the pub-key from this */
64 STACK_OF(X509) *cert; /* [ 0 ] */
90 STACK_OF(X509) *cert; /* [ 0 ] */
240 int PKCS7_SIGNER_INFO_set(PKCS7_SIGNER_INFO *p7i, X509 *x509, EVP_PKEY *pkey,
244 int PKCS7_add_certificate(PKCS7 *p7, X509 *x509);
250 X509 *x509);
254 BIO *PKCS7_dataDecode(PKCS7 *p7, EVP_PKEY *pkey, BIO *in_bio, X509 *pcert);
256 PKCS7_SIGNER_INFO *PKCS7_add_signature(PKCS7 *p7, X509 *x509,
258 X509 *PKCS7_cert_from_signer_info(PKCS7 *p7, PKCS7_SIGNER_INFO *si);
262 PKCS7_RECIP_INFO *PKCS7_add_recipient(PKCS7 *p7, X509 *x50
[all...]
H A Dx509_vfy.h65 typedef int (*X509_STORE_CTX_get_issuer_fn)(X509 **issuer,
66 X509_STORE_CTX *ctx, X509 *x);
68 X509 *x, X509 *issuer);
71 X509_CRL **crl, X509 *x);
74 X509_CRL *crl, X509 *x);
76 typedef STACK_OF(X509) *(*X509_STORE_CTX_lookup_certs_fn)(X509_STORE_CTX *ctx,
267 X509 *X509_OBJECT_get0_X509(const X509_OBJECT *a);
268 int X509_OBJECT_set1_X509(X509_OBJECT *a, X509 *obj);
278 STACK_OF(X509) *X509_STORE_CTX_get1_cert
[all...]
/freebsd-12-stable/crypto/openssl/ssl/statem/
H A Dstatem_local.h122 __owur int ssl_do_client_cert_cb(SSL *s, X509 **px509, EVP_PKEY **ppkey);
172 RAW_EXTENSION *exts, X509 *x, size_t chainidx);
174 X509 *x, size_t chainidx, int fin);
178 X509 *x, size_t chainidx);
188 X509 *x, size_t chainidx);
190 X509 *x, size_t chainidx);
192 X509 *x, size_t chainidx);
194 int tls_parse_ctos_srp(SSL *s, PACKET *pkt, unsigned int context, X509 *x,
198 X509 *x, size_t chainidx);
201 X509 *
[all...]
/freebsd-12-stable/crypto/openssl/crypto/x509/
H A Dx509_cmp.c18 int X509_issuer_and_serial_cmp(const X509 *a, const X509 *b)
32 unsigned long X509_issuer_and_serial_hash(X509 *a)
64 int X509_issuer_name_cmp(const X509 *a, const X509 *b)
69 int X509_subject_name_cmp(const X509 *a, const X509 *b)
84 X509_NAME *X509_get_issuer_name(const X509 *a)
89 unsigned long X509_issuer_name_hash(X509 *x)
95 unsigned long X509_issuer_name_hash_old(X509 *
[all...]
H A Dx509_set.c22 int X509_set_version(X509 *x, long version)
38 int X509_set_serialNumber(X509 *x, ASN1_INTEGER *serial)
50 int X509_set_issuer_name(X509 *x, X509_NAME *name)
57 int X509_set_subject_name(X509 *x, X509_NAME *name)
78 int X509_set1_notBefore(X509 *x, const ASN1_TIME *tm)
85 int X509_set1_notAfter(X509 *x, const ASN1_TIME *tm)
92 int X509_set_pubkey(X509 *x, EVP_PKEY *pkey)
99 int X509_up_ref(X509 *x)
106 REF_PRINT_COUNT("X509", x);
111 long X509_get_version(const X509 *
[all...]
H A Dx_x509.c32 /* X509 top level structure needs a bit of customisation */
39 X509 *ret = (X509 *)*pval;
103 ASN1_SEQUENCE_ref(X509, x509_cb) = {
104 ASN1_EMBED(X509, cert_info, X509_CINF),
105 ASN1_EMBED(X509, sig_alg, X509_ALGOR),
106 ASN1_EMBED(X509, signature, ASN1_BIT_STRING)
107 } ASN1_SEQUENCE_END_ref(X509, X509)
109 IMPLEMENT_ASN1_FUNCTIONS(X509)
[all...]
H A Dx_x509a.c19 * modifiable data about a certificate. This data is appended to the X509
21 * "traditional" X509 routines will simply ignore the extra data.
24 static X509_CERT_AUX *aux_get(X509 *x);
36 int X509_trusted(const X509 *x)
41 static X509_CERT_AUX *aux_get(X509 *x)
50 int X509_alias_set1(X509 *x, const unsigned char *name, int len)
67 int X509_keyid_set1(X509 *x, const unsigned char *id, int len)
85 unsigned char *X509_alias_get0(X509 *x, int *len)
94 unsigned char *X509_keyid_get0(X509 *x, int *len)
103 int X509_add1_trust_object(X509 *
[all...]
H A Dx509_local.h39 int x509_check_cert_time(X509_STORE_CTX *ctx, X509 *x, int depth);
118 int (*get_issuer) (X509 **issuer, X509_STORE_CTX *ctx, X509 *x);
120 int (*check_issued) (X509_STORE_CTX *ctx, X509 *x, X509 *issuer);
124 int (*get_crl) (X509_STORE_CTX *ctx, X509_CRL **crl, X509 *x);
128 int (*cert_crl) (X509_STORE_CTX *ctx, X509_CRL *crl, X509 *x);
131 STACK_OF(X509) *(*lookup_certs) (X509_STORE_CTX *ctx, X509_NAME *nm);
148 int x509_likely_issued(X509 *issuer, X509 *subjec
[all...]
H A Dx509_ext.c66 int X509_get_ext_count(const X509 *x)
71 int X509_get_ext_by_NID(const X509 *x, int nid, int lastpos)
76 int X509_get_ext_by_OBJ(const X509 *x, const ASN1_OBJECT *obj, int lastpos)
81 int X509_get_ext_by_critical(const X509 *x, int crit, int lastpos)
87 X509_EXTENSION *X509_get_ext(const X509 *x, int loc)
92 X509_EXTENSION *X509_delete_ext(X509 *x, int loc)
97 int X509_add_ext(X509 *x, X509_EXTENSION *ex, int loc)
102 void *X509_get_ext_d2i(const X509 *x, int nid, int *crit, int *idx)
107 int X509_add1_ext_i2d(X509 *x, int nid, void *value, int crit,
H A Dx509_trs.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 *,
59 int (*oldtrust) (int, X509 *, int);
65 int X509_check_trust(X509 *x, int id, int flags)
123 int X509_TRUST_add(int id, int flags, int (*ck) (X509_TRUST *, X509 *, in
[all...]
/freebsd-12-stable/crypto/openssl/crypto/ocsp/
H A Docsp_vfy.c15 static int ocsp_find_signer(X509 **psigner, OCSP_BASICRESP *bs,
16 STACK_OF(X509) *certs, unsigned long flags);
17 static X509 *ocsp_find_signer_sk(STACK_OF(X509) *certs, OCSP_RESPID *id);
18 static int ocsp_check_issuer(OCSP_BASICRESP *bs, STACK_OF(X509) *chain);
21 static int ocsp_match_issuerid(X509 *cert, OCSP_CERTID *cid,
23 static int ocsp_check_delegated(X509 *x);
24 static int ocsp_req_find_signer(X509 **psigner, OCSP_REQUEST *req,
25 X509_NAME *nm, STACK_OF(X509) *certs,
30 int OCSP_basic_verify(OCSP_BASICRESP *bs, STACK_OF(X509) *cert
[all...]
/freebsd-12-stable/crypto/openssl/crypto/ct/
H A Dct_policy.c53 int CT_POLICY_EVAL_CTX_set1_cert(CT_POLICY_EVAL_CTX *ctx, X509 *cert)
61 int CT_POLICY_EVAL_CTX_set1_issuer(CT_POLICY_EVAL_CTX *ctx, X509 *issuer)
80 X509* CT_POLICY_EVAL_CTX_get0_cert(const CT_POLICY_EVAL_CTX *ctx)
85 X509* CT_POLICY_EVAL_CTX_get0_issuer(const CT_POLICY_EVAL_CTX *ctx)
H A Dct_local.h107 X509 *cert;
108 X509 *issuer;
132 __owur int SCT_CTX_set1_cert(SCT_CTX *sctx, X509 *cert, X509 *presigner);
141 __owur int SCT_CTX_set1_issuer(SCT_CTX *sctx, const X509 *issuer);
/freebsd-12-stable/crypto/openssl/include/crypto/
H A Dx509.h12 /* Internal X509 structures and functions: not for application use */
186 } /* X509 */ ;
197 X509 *cert;
199 STACK_OF(X509) *untrusted;
211 int (*get_issuer) (X509 **issuer, X509_STORE_CTX *ctx, X509 *x);
213 int (*check_issued) (X509_STORE_CTX *ctx, X509 *x, X509 *issuer);
217 int (*get_crl) (X509_STORE_CTX *ctx, X509_CRL **crl, X509 *x);
221 int (*cert_crl) (X509_STORE_CTX *ctx, X509_CRL *crl, X509 *
[all...]
/freebsd-12-stable/crypto/openssl/crypto/x509v3/
H A Dv3_purp.c19 static void x509v3_cache_extensions(X509 *x);
21 static int check_ssl_ca(const X509 *x);
22 static int check_purpose_ssl_client(const X509_PURPOSE *xp, const X509 *x,
24 static int check_purpose_ssl_server(const X509_PURPOSE *xp, const X509 *x,
26 static int check_purpose_ns_ssl_server(const X509_PURPOSE *xp, const X509 *x,
28 static int purpose_smime(const X509 *x, int ca);
29 static int check_purpose_smime_sign(const X509_PURPOSE *xp, const X509 *x,
31 static int check_purpose_smime_encrypt(const X509_PURPOSE *xp, const X509 *x,
33 static int check_purpose_crl_sign(const X509_PURPOSE *xp, const X509 *x,
35 static int check_purpose_timestamp_sign(const X509_PURPOSE *xp, const X509 *
[all...]
/freebsd-12-stable/crypto/openssl/crypto/pkcs12/
H A Dp12_kiss.c17 EVP_PKEY **pkey, STACK_OF(X509) *ocerts);
20 int passlen, EVP_PKEY **pkey, STACK_OF(X509) *ocerts);
23 EVP_PKEY **pkey, STACK_OF(X509) *ocerts);
32 int PKCS12_parse(PKCS12 *p12, const char *pass, EVP_PKEY **pkey, X509 **cert,
33 STACK_OF(X509) **ca)
35 STACK_OF(X509) *ocerts = NULL;
36 X509 *x = NULL;
132 EVP_PKEY **pkey, STACK_OF(X509) *ocerts)
166 int passlen, EVP_PKEY **pkey, STACK_OF(X509) *ocerts)
178 EVP_PKEY **pkey, STACK_OF(X509) *ocert
[all...]
/freebsd-12-stable/contrib/ldns/
H A Ddane.c77 ldns_dane_cert2rdf(ldns_rdf** rdf, X509* cert,
166 ldns_dane_pkix_validate(X509* cert, STACK_OF(X509)* extra_certs,
200 ldns_dane_pkix_validate_and_get_chain(STACK_OF(X509)** chain, X509* cert,
201 STACK_OF(X509)* extra_certs, X509_STORE* store)
248 ldns_dane_pkix_get_chain(STACK_OF(X509)** chain,
249 X509* cert, STACK_OF(X509)* extra_certs)
288 X509** cer
[all...]

Completed in 126 milliseconds

1234567