Home
last modified time | relevance | path

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

12345678910>>...13

/openssl/ssl/statem/
H A Dstatem_local.h239 X509 *x, size_t chainidx);
265 X509 *x, size_t chainidx);
268 X509 *x, size_t chainidx);
274 X509 *x, size_t chainidx);
280 X509 *x, size_t chainidx);
285 X509 *x, size_t chainidx);
463 X509 *x, size_t chainidx);
467 X509 *x, size_t chainidx);
476 X509 *x, size_t chainidx);
478 X509 *x, size_t chainidx);
[all …]
/openssl/crypto/x509/
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()
365 X509 *X509_find_by_subject(STACK_OF(X509) *sk, const X509_NAME *name) in X509_find_by_subject()
367 X509 *x509; in X509_find_by_subject()
[all …]
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_set.c22 int X509_set_version(X509 *x, long version) in X509_set_version()
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()
121 const ASN1_TIME *X509_get0_notAfter(const X509 *x) in X509_get0_notAfter()
126 ASN1_TIME *X509_getm_notBefore(const X509 *x) in X509_getm_notBefore()
131 ASN1_TIME *X509_getm_notAfter(const X509 *x) in X509_getm_notAfter()
136 int X509_get_signature_type(const X509 *x) in X509_get_signature_type()
141 X509_PUBKEY *X509_get_X509_PUBKEY(const X509 *x) in X509_get_X509_PUBKEY()
[all …]
H A Dv3_purp.c19 static int check_ssl_ca(const X509 *x);
356 static int setup_crldp(X509 *x) in setup_crldp()
657 static int check_ca(const X509 *x) in check_ca()
683 void X509_set_proxy_flag(X509 *x) in X509_set_proxy_flag()
696 int X509_check_ca(X509 *x) in X509_check_ca()
943 int X509_check_issued(X509 *issuer, X509 *subject) in X509_check_issued()
953 int ossl_x509_likely_issued(X509 *issuer, X509 *subject) in ossl_x509_likely_issued()
981 int ossl_x509_signing_allowed(const X509 *issuer, const X509 *subject) in ossl_x509_signing_allowed()
1037 uint32_t X509_get_key_usage(X509 *x) in X509_get_key_usage()
1085 long X509_get_pathlen(X509 *x) in X509_get_pathlen()
[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()
218 static int trust_1oidany(X509_TRUST *trust, X509 *x, int flags) in trust_1oidany()
230 static int trust_1oid(X509_TRUST *trust, X509 *x, int flags) in trust_1oid()
241 static int trust_compat(X509_TRUST *trust, X509 *x, int flags) in trust_compat()
[all …]
H A 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);
316 static int sk_X509_contains(STACK_OF(X509) *sk, X509 *cert) in sk_X509_contains()
332 static X509 *find_issuer(X509_STORE_CTX *ctx, STACK_OF(X509) *sk, X509 *x) in find_issuer()
370 static int get_issuer_sk(X509 **issuer, X509_STORE_CTX *ctx, X509 *x) in get_issuer_sk()
385 X509 *x; in STACK_OF()
462 X509 *x; in check_extensions()
825 X509 *mx; in check_trust()
2844 X509 *cert; in check_dane_issuer()
[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/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;
305 X509 *x509;
315 int ossl_x509_init_sig_info(X509 *x);
325 int ossl_x509_add_cert_new(STACK_OF(X509) **sk, X509 *cert, int flags);
[all …]
/openssl/crypto/cmp/
H A Dcmp_local.h199 X509 *oldWithNew;
200 X509 *newWithOld;
201 X509 *newWithNew;
223 X509 *caProtEncCert;
259 X509 *certificate;
341 X509 *newSigCert;
342 STACK_OF(X509) *caCerts;
415 STACK_OF(X509) *caPubs;
601 X509 *cann; /* 16 */
869 X509 *cert, const X509 *encryption_recip,
[all …]
/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_get_peer_certificate(const SSL *ssl);
14 X509 *SSL_get0_peer_certificate(const SSL *ssl);
15 X509 *SSL_get1_peer_certificate(const SSL *ssl);
19 These functions return a pointer to the X509 certificate the
34 The reference count of the X509 object returned by SSL_get1_peer_certificate()
36 containing the peer certificate is freed. The X509 object must be explicitly
39 The reference count of the X509 object returned by SSL_get0_peer_certificate()
54 =item Pointer to an X509 certificate
/openssl/include/openssl/
H A Dx509.h.in213 X509 *x509;
372 X509 *d2i_X509_fp(FILE *fp, X509 **x509);
418 X509 *d2i_X509_bio(BIO *bp, X509 **x509);
766 X509 *x, STACK_OF(X509) *chain,
770 STACK_OF(X509) *X509_chain_up_ref(STACK_OF(X509) *chain);
772 int X509_issuer_and_serial_cmp(const X509 *a, const X509 *b);
775 int X509_issuer_name_cmp(const X509 *a, const X509 *b);
778 int X509_subject_name_cmp(const X509 *a, const X509 *b);
791 int X509_add_cert(STACK_OF(X509) *sk, X509 *cert, int flags);
794 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 */
90 STACK_OF(X509) *cert; /* [ 0 ] */
117 STACK_OF(X509) *cert; /* [ 0 ] */
276 int PKCS7_add_certificate(PKCS7 *p7, X509 *x509);
282 X509 *x509);
288 PKCS7_SIGNER_INFO *PKCS7_add_signature(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,
[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);
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()
138 EVP_PKEY **pkey, STACK_OF(X509) *ocerts) in parse_pk12()
173 int passlen, EVP_PKEY **pkey, STACK_OF(X509) *ocerts) in parse_bags()
186 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()
42 X509 *cert = sk_X509_value(certs, i); in OSSL_ESS_signing_cert_new_init()
57 static ESS_CERT_ID *ESS_CERT_ID_new_init(const X509 *cert, in ESS_CERT_ID_new_init()
119 X509 *cert = sk_X509_value(certs, i); in OSSL_ESS_signing_cert_v2_new_init()
137 const X509 *cert, in ESS_CERT_ID_V2_new_init()
218 int index, const STACK_OF(X509) *certs) in find()
220 const X509 *cert; in find()
[all …]
/openssl/apps/include/
H A Dapps.h101 void dump_cert_text(BIO *out, X509 *x);
112 int copy_extensions(X509 *x, X509_REQ *req, int copy_type);
117 X509 *load_cert_pass(const char *uri, int format, int maybe_stdin,
135 X509 **pcert, STACK_OF(X509) **pcerts,
138 STACK_OF(X509) *load_certs_multifile(char *files, const char *pass,
150 X509 **pcert, STACK_OF(X509) **pcerts,
155 X509 **pcert, X509_CRL **pcrl);
255 int x509_ctrl_string(X509 *x, const char *value);
260 int cert_matches_key(const X509 *cert, const EVP_PKEY *pkey);
261 int do_X509_sign(X509 *x, EVP_PKEY *pkey, const char *md,
[all …]
/openssl/test/helpers/
H A Dcmp_testlib.h26 int STACK_OF_X509_cmp(const STACK_OF(X509) *sk1, const STACK_OF(X509) *sk2);
27 int STACK_OF_X509_push1(STACK_OF(X509) *sk, X509 *cert);

Completed in 111 milliseconds

12345678910>>...13