Home
last modified time | relevance | path

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

12345678910>>...14

/openssl/ssl/statem/
H A Dstatem_local.h292 X509 *x, size_t chainidx);
318 X509 *x, size_t chainidx);
321 X509 *x, size_t chainidx);
327 X509 *x, size_t chainidx);
333 X509 *x, size_t chainidx);
338 X509 *x, size_t chainidx);
516 X509 *x, size_t chainidx);
520 X509 *x, size_t chainidx);
529 X509 *x, size_t chainidx);
531 X509 *x, size_t chainidx);
[all …]
/openssl/crypto/x509/
H A Dx_x509.c39 X509 *ret = (X509 *)*pval; in x509_cb()
103 X509 *old = exarg; in x509_cb()
132 ASN1_SEQUENCE_ref(X509, x509_cb) = {
134 ASN1_EMBED(X509, sig_alg, X509_ALGOR),
136 } ASN1_SEQUENCE_END_ref(X509, X509)
138 IMPLEMENT_ASN1_FUNCTIONS(X509)
139 IMPLEMENT_ASN1_DUP_FUNCTION(X509)
163 X509 *cert = NULL; in X509_new_ex()
190 X509 *d2i_X509_AUX(X509 **a, const unsigned char **pp, long length) in d2i_X509_AUX()
193 X509 *ret; in d2i_X509_AUX()
[all …]
H A Dx509_cmp.c19 int X509_issuer_and_serial_cmp(const X509 *a, const X509 *b) in X509_issuer_and_serial_cmp()
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()
155 int X509_cmp(const X509 *a, const X509 *b) in X509_cmp()
184 int ossl_x509_add_cert_new(STACK_OF(X509) **p_sk, X509 *cert, int flags) in ossl_x509_add_cert_new()
193 int X509_add_cert(STACK_OF(X509) *sk, X509 *cert, int flags) in X509_add_cert()
227 int X509_add_certs(STACK_OF(X509) *sk, STACK_OF(X509) *certs, int flags) in X509_add_certs()
237 int ossl_x509_add_certs_new(STACK_OF(X509) **p_sk, STACK_OF(X509) *certs, in ossl_x509_add_certs_new()
368 X509 *X509_find_by_subject(STACK_OF(X509) *sk, const X509_NAME *name) in X509_find_by_subject()
370 X509 *x509; in X509_find_by_subject()
[all …]
H A Dv3_purp.c19 static int check_ssl_ca(const X509 *x);
352 static int setup_crldp(X509 *x) in setup_crldp()
653 static int check_ca(const X509 *x) in check_ca()
679 void X509_set_proxy_flag(X509 *x) in X509_set_proxy_flag()
692 int X509_check_ca(X509 *x) in X509_check_ca()
953 int X509_check_issued(X509 *issuer, X509 *subject) in X509_check_issued()
963 int ossl_x509_likely_issued(X509 *issuer, X509 *subject) in ossl_x509_likely_issued()
991 int ossl_x509_signing_allowed(const X509 *issuer, const X509 *subject) in ossl_x509_signing_allowed()
1047 uint32_t X509_get_key_usage(X509 *x) in X509_get_key_usage()
1095 long X509_get_pathlen(X509 *x) in X509_get_pathlen()
[all …]
H A Dx509_set.c22 int X509_set_version(X509 *x, long version) in X509_set_version()
105 int X509_set_pubkey(X509 *x, EVP_PKEY *pkey) in X509_set_pubkey()
115 int X509_up_ref(X509 *x) in X509_up_ref()
127 long X509_get_version(const X509 *x) in X509_get_version()
132 const ASN1_TIME *X509_get0_notBefore(const X509 *x) in X509_get0_notBefore()
137 const ASN1_TIME *X509_get0_notAfter(const X509 *x) in X509_get0_notAfter()
142 ASN1_TIME *X509_getm_notBefore(const X509 *x) in X509_getm_notBefore()
147 ASN1_TIME *X509_getm_notAfter(const X509 *x) in X509_getm_notAfter()
152 int X509_get_signature_type(const X509 *x) in X509_get_signature_type()
157 X509_PUBKEY *X509_get_X509_PUBKEY(const X509 *x) in X509_get_X509_PUBKEY()
[all …]
H A 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()
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()
154 void X509_reject_clear(X509 *x) in X509_reject_clear()
162 STACK_OF(ASN1_OBJECT) *X509_get0_trust_objects(X509 *x) in STACK_OF()
[all …]
H A 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);
H A 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);
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()
66 int X509_check_trust(X509 *x, int id, int flags) in X509_check_trust()
216 static int trust_1oidany(X509_TRUST *trust, X509 *x, int flags) in trust_1oidany()
228 static int trust_1oid(X509_TRUST *trust, X509 *x, int flags) in trust_1oid()
239 static int trust_compat(X509_TRUST *trust, X509 *x, int flags) in trust_compat()
[all …]
H A Dx509_vfy.c52 static int check_issued(X509_STORE_CTX *ctx, X509 *x, X509 *issuer);
53 static X509 *find_issuer(X509_STORE_CTX *ctx, STACK_OF(X509) *sk, X509 *x);
61 static int get_issuer_sk(X509 **issuer, X509_STORE_CTX *ctx, X509 *x);
370 static int sk_X509_contains(STACK_OF(X509) *sk, X509 *cert) in sk_X509_contains()
386 static X509 *find_issuer(X509_STORE_CTX *ctx, STACK_OF(X509) *sk, X509 *x) in find_issuer()
439 X509 *x; in STACK_OF()
516 X509 *x; in check_extensions()
879 X509 *mx; in check_trust()
1818 X509 *xi; in internal_verify()
1819 X509 *xs; in internal_verify()
[all …]
H A 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()
/openssl/crypto/ocsp/
H A Docsp_vfy.c18 static X509 *ocsp_find_signer_sk(STACK_OF(X509) *certs, OCSP_RESPID *id);
32 STACK_OF(X509) *untrusted, STACK_OF(X509) **chain) in ocsp_verify_signer()
101 X509 *signer, *x; in OCSP_basic_verify()
102 STACK_OF(X509) *chain = NULL; in OCSP_basic_verify()
103 STACK_OF(X509) *untrusted = NULL; in OCSP_basic_verify()
171 X509 *signer; in ocsp_find_signer()
189 static X509 *ocsp_find_signer_sk(STACK_OF(X509) *certs, OCSP_RESPID *id) in ocsp_find_signer_sk()
194 X509 *x; in ocsp_find_signer_sk()
225 X509 *signer, *sca; in ocsp_check_issuer()
388 X509 *signer; in OCSP_request_verify()
[all …]
/openssl/crypto/cmp/
H A Dcmp_local.h205 X509 *oldWithNew;
206 X509 *newWithOld;
207 X509 *newWithNew;
294 X509 *rootCaCert;
313 X509 *certificate;
395 X509 *newSigCert;
799 X509 *newWithNew;
800 X509 *newWithOld;
801 X509 *oldWithNew;
955 X509 *cert, const X509 *encryption_recip,
[all …]
H A Dcmp_genm.c23 const char *source, X509 *cert, const char *msg) in cert_msg()
62 STACK_OF(X509) *certs, in ossl_X509_check_all()
144 STACK_OF(X509) *certs = NULL; in OSSL_CMP_get1_caCerts()
189 STACK_OF(X509) *trust; in selfsigned_verify_cb()
194 X509 *cert = sk_X509_value(chain, 0); /* target cert */ in selfsigned_verify_cb()
195 X509 *issuer; in selfsigned_verify_cb()
227 X509 *target) in verify_ss_cert()
251 X509 *target, const char *desc) in verify_ss_cert_trans()
254 STACK_OF(X509) *untrusted = NULL; in verify_ss_cert_trans()
288 const X509 *oldWithOld, X509 **newWithNew, in OSSL_CMP_get1_rootCaKeyUpdate()
[all …]
/openssl/include/crypto/
H A Dx509.h219 X509 *cert;
221 STACK_OF(X509) *untrusted;
233 int (*get_issuer) (X509 **issuer, X509_STORE_CTX *ctx, X509 *x);
235 int (*check_issued) (X509_STORE_CTX *ctx, X509 *x, X509 *issuer);
258 STACK_OF(X509) *chain;
266 X509 *current_cert;
268 X509 *current_issuer;
307 X509 *x509;
317 int ossl_x509_init_sig_info(X509 *x);
327 int ossl_x509_add_cert_new(STACK_OF(X509) **sk, X509 *cert, int flags);
[all …]
/openssl/apps/include/
H A Dcmp_mock_srv.h23 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);
27 STACK_OF(X509) *chain);
29 STACK_OF(X509) *caPubs);
30 int ossl_cmp_mock_srv_set1_newWithNew(OSSL_CMP_SRV_CTX *srv_ctx, X509 *cert);
31 int ossl_cmp_mock_srv_set1_newWithOld(OSSL_CMP_SRV_CTX *srv_ctx, X509 *cert);
32 int ossl_cmp_mock_srv_set1_oldWithNew(OSSL_CMP_SRV_CTX *srv_ctx, X509 *cert);
/openssl/doc/man3/
H A DX509_cmp.pod8 - compare X509 certificates and related values
14 int X509_cmp(const X509 *a, const X509 *b);
16 int X509_issuer_and_serial_cmp(const X509 *a, const X509 *b);
17 int X509_issuer_name_cmp(const X509 *a, const X509 *b);
18 int X509_subject_name_cmp(const X509 *a, const X509 *b);
24 This set of functions are used to compare X509 objects, including X509
25 certificates, X509 CRL objects and various values in an X509 certificate.
27 The X509_cmp() function compares two B<X509> objects indicated by parameters
29 values of two B<X509> objects and the canonical (DER) encoding values.
42 values in the given B<X509> objects I<a> and I<b>.
[all …]
H A DX509_new.pod9 - X509 certificate ASN1 allocation and deallocation functions
15 X509 *X509_new(void);
16 X509 *X509_new_ex(OSSL_LIB_CTX *libctx, const char *propq);
17 void X509_free(X509 *a);
18 int X509_up_ref(X509 *a);
19 STACK_OF(X509) *X509_chain_up_ref(STACK_OF(X509) *x);
20 void OSSL_STACK_OF_X509_free(STACK_OF(X509) *certs);
24 The X509 ASN1 allocation routines allocate and free an
25 X509 structure, which represents an X509 certificate.
27 X509_new_ex() allocates and initializes a X509 structure with a
[all …]
H A Di2d_re_X509_tbs.pod7 - X509 encode and decode functions
13 X509 *d2i_X509_AUX(X509 **px, const unsigned char **in, long len);
14 int i2d_X509_AUX(const X509 *x, unsigned char **out);
15 int i2d_re_X509_tbs(X509 *x, unsigned char **out);
21 The X509 encode and decode routines encode and parse an
22 B<X509> structure, which represents an X509 certificate.
25 consist of an X509 certificate followed by auxiliary trust information.
42 in the B<X509> structure internally to improve encoding performance
46 If, after modification, the B<X509> object is re-signed with X509_sign(),
48 TBSCertificate portion of the B<X509> can be manually renewed by calling
[all …]
H A DSSL_get_peer_certificate.pod7 SSL_get1_peer_certificate - get the X509 certificate of the peer
13 X509 *SSL_get0_peer_certificate(const SSL *ssl);
14 X509 *SSL_get1_peer_certificate(const SSL *ssl);
20 X509 *SSL_get_peer_certificate(const SSL *ssl);
24 These functions return a pointer to the X509 certificate the
39 The reference count of the X509 object returned by SSL_get1_peer_certificate()
41 containing the peer certificate is freed. The X509 object must be explicitly
44 The reference count of the X509 object returned by SSL_get0_peer_certificate()
59 =item Pointer to an X509 certificate
/openssl/include/openssl/
H A Dx509.h.in221 X509 *x509;
385 X509 *d2i_X509_fp(FILE *fp, X509 **x509);
433 X509 *d2i_X509_bio(BIO *bp, X509 **x509);
783 X509 *x, STACK_OF(X509) *chain,
787 STACK_OF(X509) *X509_chain_up_ref(STACK_OF(X509) *chain);
789 int X509_issuer_and_serial_cmp(const X509 *a, const X509 *b);
792 int X509_issuer_name_cmp(const X509 *a, const X509 *b);
795 int X509_subject_name_cmp(const X509 *a, const X509 *b);
808 int X509_add_cert(STACK_OF(X509) *sk, X509 *cert, int flags);
811 int X509_cmp(const X509 *a, const X509 *b);
[all …]
H A Dcms.h.in130 CMS_ContentInfo *CMS_sign(X509 *signcert, EVP_PKEY *pkey,
131 STACK_OF(X509) *certs, BIO *data,
170 int CMS_verify(CMS_ContentInfo *cms, STACK_OF(X509) *certs,
174 STACK_OF(X509) *certs,
177 STACK_OF(X509) *CMS_get0_signers(CMS_ContentInfo *cms);
190 X509 *cert, X509 *peer);
209 EVP_PKEY *pkey, X509 *cert,
269 int CMS_add0_cert(CMS_ContentInfo *cms, X509 *cert);
270 int CMS_add1_cert(CMS_ContentInfo *cms, X509 *cert);
271 STACK_OF(X509) *CMS_get1_certs(CMS_ContentInfo *cms);
[all …]
H A Dpkcs7.h.in79 X509 *cert; /* get the pub-key from this */
276 int PKCS7_add_certificate(PKCS7 *p7, X509 *cert);
282 X509 *signer);
288 PKCS7_SIGNER_INFO *PKCS7_add_signature(PKCS7 *p7, X509 *x509,
294 PKCS7_RECIP_INFO *PKCS7_add_recipient(PKCS7 *p7, X509 *x509);
299 int PKCS7_RECIP_INFO_set(PKCS7_RECIP_INFO *p7i, X509 *x509);
317 PKCS7 *PKCS7_sign(X509 *signcert, EVP_PKEY *pkey, STACK_OF(X509) *certs,
319 PKCS7 *PKCS7_sign_ex(X509 *signcert, EVP_PKEY *pkey, STACK_OF(X509) *certs,
330 STACK_OF(X509) *PKCS7_get0_signers(PKCS7 *p7, STACK_OF(X509) *certs,
334 PKCS7 *PKCS7_encrypt_ex(STACK_OF(X509) *certs, BIO *in,
[all …]
/openssl/test/
H A 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()
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()
231 int (*fn) (X509 *, const char *);
250 static X509 *make_cert(void) in make_cert()
252 X509 *crt = NULL; in make_cert()
[all …]
/openssl/crypto/pkcs12/
H A Dp12_kiss.c18 EVP_PKEY **pkey, STACK_OF(X509) *ocerts);
21 int passlen, EVP_PKEY **pkey, STACK_OF(X509) *ocerts,
25 EVP_PKEY **pkey, STACK_OF(X509) *ocerts,
35 int PKCS12_parse(PKCS12 *p12, const char *pass, EVP_PKEY **pkey, X509 **cert, in PKCS12_parse()
36 STACK_OF(X509) **ca) in PKCS12_parse()
38 STACK_OF(X509) *ocerts = NULL; in PKCS12_parse()
39 X509 *x = NULL; in PKCS12_parse()
140 EVP_PKEY **pkey, STACK_OF(X509) *ocerts) in parse_pk12()
176 int passlen, EVP_PKEY **pkey, STACK_OF(X509) *ocerts, in parse_bags()
191 EVP_PKEY **pkey, STACK_OF(X509) *ocerts, in parse_bag()
[all …]
/openssl/crypto/ess/
H A Dess_lib.c18 static ESS_CERT_ID *ESS_CERT_ID_new_init(const X509 *cert,
21 const X509 *cert,
24 ESS_SIGNING_CERT *OSSL_ESS_signing_cert_new_init(const X509 *signcert, in OSSL_ESS_signing_cert_new_init()
25 const STACK_OF(X509) *certs, in OSSL_ESS_signing_cert_new_init()
48 X509 *cert = sk_X509_value(certs, i); in OSSL_ESS_signing_cert_new_init()
67 static ESS_CERT_ID *ESS_CERT_ID_new_init(const X509 *cert, in ESS_CERT_ID_new_init()
150 X509 *cert = sk_X509_value(certs, i); in OSSL_ESS_signing_cert_v2_new_init()
171 const X509 *cert, in ESS_CERT_ID_V2_new_init()
271 int index, const STACK_OF(X509) *certs) in find()
273 const X509 *cert; in find()
[all …]

Completed in 79 milliseconds

12345678910>>...14