/third_party/openssl/ssl/statem/ |
D | statem_local.h | 124 __owur int ssl_do_client_cert_cb(SSL *s, X509 **px509, EVP_PKEY **ppkey); 174 RAW_EXTENSION *exts, X509 *x, size_t chainidx); 176 X509 *x, size_t chainidx, int fin); 180 X509 *x, size_t chainidx); 190 X509 *x, size_t chainidx); 192 X509 *x, size_t chainidx); 194 X509 *x, size_t chainidx); 196 int tls_parse_ctos_srp(SSL *s, PACKET *pkt, unsigned int context, X509 *x, 200 X509 *x, size_t chainidx); 203 X509 *x, size_t chainidx); [all …]
|
/third_party/openssl/include/openssl/ |
D | x509.h | 99 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 *data, const EVP_MD *type, [all …]
|
D | pkcs7.h | 56 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 *x509); [all …]
|
D | cms.h | 103 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 *cert); [all …]
|
D | x509v3.h | 83 X509 *issuer_cert; 84 X509 *subject_cert; 407 int (*check_purpose) (const struct x509_purpose_st *, const X509 *, int); 530 int NAME_CONSTRAINTS_check(X509 *x, NAME_CONSTRAINTS *nc); 531 int NAME_CONSTRAINTS_check_CN(X509 *x, NAME_CONSTRAINTS *nc); 570 X509 *cert); 582 const char *section, X509 *cert); 600 void X509V3_set_ctx(X509V3_CTX *ctx, X509 *issuer, X509 *subject, 650 int X509_check_ca(X509 *x); 651 int X509_check_purpose(X509 *x, int id, int ca); [all …]
|
D | x509_vfy.h | 65 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_certs(X509_STORE_CTX *st, X509_NAME *nm); 337 int X509_STORE_CTX_get1_issuer(X509 **issuer, X509_STORE_CTX *ctx, X509 *x); [all …]
|
/third_party/mbedtls/tests/suites/ |
D | test_suite_x509parse.data | 1 X509 CRT information #1 5 X509 CRT information #1 (DER) 9 X509 CRT information #2 13 X509 CRT information #2 (DER) 17 X509 CRT information #3 21 X509 CRT information #3 (DER) 25 X509 CRT information MD5 Digest 29 X509 CRT information SHA1 Digest 33 X509 CRT information SHA224 Digest 37 X509 CRT information SHA256 Digest [all …]
|
/third_party/openssl/crypto/x509/ |
D | x509_cmp.c | 18 int X509_issuer_and_serial_cmp(const X509 *a, const X509 *b) in X509_issuer_and_serial_cmp() 32 unsigned long X509_issuer_and_serial_hash(X509 *a) in X509_issuer_and_serial_hash() 64 int X509_issuer_name_cmp(const X509 *a, const X509 *b) in X509_issuer_name_cmp() 69 int X509_subject_name_cmp(const X509 *a, const X509 *b) in X509_subject_name_cmp() 84 X509_NAME *X509_get_issuer_name(const X509 *a) in X509_get_issuer_name() 89 unsigned long X509_issuer_name_hash(X509 *x) in X509_issuer_name_hash() 95 unsigned long X509_issuer_name_hash_old(X509 *x) in X509_issuer_name_hash_old() 101 X509_NAME *X509_get_subject_name(const X509 *a) in X509_get_subject_name() 106 ASN1_INTEGER *X509_get_serialNumber(X509 *a) in X509_get_serialNumber() 111 const ASN1_INTEGER *X509_get0_serialNumber(const X509 *a) in X509_get0_serialNumber() [all …]
|
D | x_x509.c | 39 X509 *ret = (X509 *)*pval; in x509_cb() 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) 111 IMPLEMENT_ASN1_DUP_FUNCTION(X509) 113 int X509_set_ex_data(X509 *r, int idx, void *arg) 118 void *X509_get_ex_data(X509 *r, int idx) in X509_get_ex_data() [all …]
|
D | x509_set.c | 22 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, X509_NAME *name) in X509_set_issuer_name() 57 int X509_set_subject_name(X509 *x, 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 …]
|
D | x509_local.h | 39 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 *subject); 149 int x509_signing_allowed(const X509 *issuer, const X509 *subject);
|
D | x_x509a.c | 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) 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() 141 void X509_trust_clear(X509 *x) in X509_trust_clear() [all …]
|
D | x509_trs.c | 18 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 …]
|
D | x509_vfy.c | 70 static int check_issued(X509_STORE_CTX *ctx, X509 *x, X509 *issuer); 71 static X509 *find_issuer(X509_STORE_CTX *ctx, STACK_OF(X509) *sk, X509 *x); 79 static int get_issuer_sk(X509 **issuer, X509_STORE_CTX *ctx, X509 *x); 81 static int check_key_level(X509_STORE_CTX *ctx, X509 *cert); 82 static int check_sig_level(X509_STORE_CTX *ctx, X509 *cert); 83 static int check_curve(X509 *cert); 85 static int get_crl_score(X509_STORE_CTX *ctx, X509 **pissuer, 86 unsigned int *preasons, X509_CRL *crl, X509 *x); 88 X509_CRL **pcrl, X509_CRL **pdcrl, X509 *x); 92 static void crl_akid_check(X509_STORE_CTX *ctx, X509_CRL *crl, X509 **pissuer, [all …]
|
/third_party/libwebsockets/lib/tls/mbedtls/wrapper/library/ |
D | ssl_x509.c | 27 int __X509_show_info(X509 *x) in __X509_show_info() 35 X509* __X509_new(X509 *ix) in __X509_new() 38 X509 *x; in __X509_new() 40 x = ssl_mem_zalloc(sizeof(X509)); in __X509_new() 68 X509* X509_new(void) in X509_new() 76 void X509_free(X509 *x) in X509_free() 89 X509* d2i_X509(X509 **cert, const unsigned char *buffer, long len) in d2i_X509() 93 X509 *x; in d2i_X509() 158 int SSL_CTX_add_client_CA(SSL_CTX *ctx, X509 *x) in SSL_CTX_add_client_CA() 192 int SSL_add_client_CA(SSL *ssl, X509 *x) in SSL_add_client_CA() [all …]
|
/third_party/openssl/crypto/ocsp/ |
D | ocsp_vfy.c | 15 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) *certs, in OCSP_basic_verify() 33 X509 *signer, *x; in OCSP_basic_verify() [all …]
|
/third_party/openssl/crypto/x509v3/ |
D | v3_purp.c | 19 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 *x, [all …]
|
/third_party/libwebsockets/lib/tls/mbedtls/wrapper/include/internal/ |
D | ssl_x509.h | 34 X509* __X509_new(X509 *ix); 43 X509* X509_new(void); 55 X509* d2i_X509(X509 **cert, const unsigned char *buffer, long len); 64 void X509_free(X509 *x); 76 int SSL_CTX_add_client_CA(SSL_CTX *ctx, X509 *x); 88 int SSL_add_client_CA(SSL *ssl, X509 *x);
|
D | ssl_types.h | 88 typedef struct x509_st X509; typedef 130 X509 *x509; 156 X509 *peer; 182 X509 *client_CA; 215 X509 *client_CA; 294 int (*x509_new)(X509 *x, X509 *m_x); 296 void (*x509_free)(X509 *x); 298 int (*x509_load)(X509 *x, const unsigned char *buf, int len); 300 int (*x509_show_info)(X509 *x);
|
/third_party/openssl/include/crypto/ |
D | x509.h | 199 X509 *cert; 201 STACK_OF(X509) *untrusted; 213 int (*get_issuer) (X509 **issuer, X509_STORE_CTX *ctx, X509 *x); 215 int (*check_issued) (X509_STORE_CTX *ctx, X509 *x, X509 *issuer); 219 int (*get_crl) (X509_STORE_CTX *ctx, X509_CRL **crl, X509 *x); 223 int (*cert_crl) (X509_STORE_CTX *ctx, X509_CRL *crl, X509 *x); 226 STACK_OF(X509) *(*lookup_certs) (X509_STORE_CTX *ctx, X509_NAME *nm); 235 STACK_OF(X509) *chain; 243 X509 *current_cert; 245 X509 *current_issuer; [all …]
|
/third_party/openssl/doc/man3/ |
D | X509_cmp.pod | 8 - 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. 37 values in the given B<X509> objects B<a> and B<b>. [all …]
|
D | i2d_re_X509_tbs.pod | 7 - X509 encode and decode functions 13 X509 *d2i_X509_AUX(X509 **px, const unsigned char **in, long len); 14 int i2d_X509_AUX(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 …]
|
D | X509_new.pod | 6 X509_new, X509_free, X509_up_ref - X509 certificate ASN1 allocation functions 12 X509 *X509_new(void); 13 void X509_free(X509 *a); 14 int X509_up_ref(X509 *a); 15 STACK_OF(X509) *X509_chain_up_ref(STACK_OF(X509) *x); 19 The X509 ASN1 allocation routines, allocate and free an 20 X509 structure, which represents an X509 certificate. 22 X509_new() allocates and initializes a X509 structure with reference count 25 X509_free() decrements the reference count of B<X509> structure B<a> and
|
/third_party/openssl/test/ |
D | verify_extra_test.c | 28 static X509 *load_cert_pem(const char *file) in load_cert_pem() 30 X509 *cert = NULL; in load_cert_pem() 42 static STACK_OF(X509) *load_certs_from_file(const char *filename) in STACK_OF() argument 44 STACK_OF(X509) *certs; in STACK_OF() 46 X509 *x; in STACK_OF() 114 X509 *x = NULL; in test_alt_chains_cert_forgery() 115 STACK_OF(X509) *untrusted = NULL; in test_alt_chains_cert_forgery() 176 X509 *x = NULL; in test_store_ctx() 212 X509 *cert = load_cert_pem(filename); in test_self_signed() 213 STACK_OF(X509) *trusted = sk_X509_new_null(); in test_self_signed() [all …]
|
D | v3nametest.c | 89 static int set_cn(X509 *crt, ...) in set_cn() 128 static int set_altname(X509 *crt, ...) in set_altname() 178 static int set_cn1(X509 *crt, const char *name) in set_cn1() 183 static int set_cn_and_email(X509 *crt, const char *name) in set_cn_and_email() 189 static int set_cn2(X509 *crt, const char *name) in set_cn2() 195 static int set_cn3(X509 *crt, const char *name) in set_cn3() 201 static int set_email1(X509 *crt, const char *name) in set_email1() 206 static int set_email2(X509 *crt, const char *name) in set_email2() 212 static int set_email3(X509 *crt, const char *name) in set_email3() 218 static int set_email_and_cn(X509 *crt, const char *name) in set_email_and_cn() [all …]
|