Home
last modified time | relevance | path

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

123456

/external/boringssl/src/crypto/err/
Dx509.errordata1 X509,100,AKID_MISMATCH
2 X509,101,BAD_PKCS7_VERSION
3 X509,102,BAD_X509_FILETYPE
4 X509,103,BASE64_DECODE_ERROR
5 X509,104,CANT_CHECK_DH_KEY
6 X509,105,CERT_ALREADY_IN_HASH_TABLE
7 X509,106,CRL_ALREADY_DELTA
8 X509,107,CRL_VERIFY_FAILURE
9 X509,108,IDP_MISMATCH
10 X509,109,INVALID_BIT_STRING_BITS_LEFT
[all …]
/external/boringssl/src/crypto/x509/
Dx509_cmp.c73 int X509_issuer_and_serial_cmp(const X509 *a, const X509 *b) in X509_issuer_and_serial_cmp()
86 unsigned long X509_issuer_and_serial_hash(X509 *a) in X509_issuer_and_serial_hash()
114 int X509_issuer_name_cmp(const X509 *a, const X509 *b) in X509_issuer_name_cmp()
119 int X509_subject_name_cmp(const X509 *a, const X509 *b) in X509_subject_name_cmp()
134 X509_NAME *X509_get_issuer_name(X509 *a) in X509_get_issuer_name()
139 unsigned long X509_issuer_name_hash(X509 *x) in X509_issuer_name_hash()
144 unsigned long X509_issuer_name_hash_old(X509 *x) in X509_issuer_name_hash_old()
149 X509_NAME *X509_get_subject_name(X509 *a) in X509_get_subject_name()
154 ASN1_INTEGER *X509_get_serialNumber(X509 *a) in X509_get_serialNumber()
159 unsigned long X509_subject_name_hash(X509 *x) in X509_subject_name_hash()
[all …]
Dx_x509.c96 X509 *ret = (X509 *)*pval; in x509_cb()
144 ASN1_SEQUENCE_ref(X509, x509_cb) = {
145 ASN1_SIMPLE(X509, cert_info, X509_CINF),
146 ASN1_SIMPLE(X509, sig_alg, X509_ALGOR),
147 ASN1_SIMPLE(X509, signature, ASN1_BIT_STRING)
148 } ASN1_SEQUENCE_END_ref(X509, X509)
150 IMPLEMENT_ASN1_FUNCTIONS(X509)
152 IMPLEMENT_ASN1_DUP_FUNCTION(X509)
154 X509 *X509_parse_from_buffer(CRYPTO_BUFFER *buf) {
160 X509 *x509 = X509_new();
[all …]
Dx509_trs.c66 static int trust_1oidany(X509_TRUST *trust, X509 *x, int flags);
67 static int trust_1oid(X509_TRUST *trust, X509 *x, int flags);
68 static int trust_compat(X509_TRUST *trust, X509 *x, int flags);
70 static int obj_trust(int id, X509 *x, int flags);
71 static int (*default_trust) (int id, X509 *x, int flags) = obj_trust;
106 int (*X509_TRUST_set_default(int (*trust) (int, X509 *, int))) (int, X509 *, in X509_TRUST_set_default() argument
108 int (*oldtrust) (int, X509 *, int); in X509_TRUST_set_default()
114 int X509_check_trust(X509 *x, int id, int flags) in X509_check_trust()
171 OPENSSL_PUT_ERROR(X509, X509_R_INVALID_TRUST); in X509_TRUST_set()
178 int X509_TRUST_add(int id, int flags, int (*ck) (X509_TRUST *, X509 *, int), in X509_TRUST_add() argument
[all …]
Dx509_vfy.c116 static int check_issued(X509_STORE_CTX *ctx, X509 *x, X509 *issuer);
117 static X509 *find_issuer(X509_STORE_CTX *ctx, STACK_OF(X509) *sk, X509 *x);
126 static int get_crl_score(X509_STORE_CTX *ctx, X509 **pissuer,
127 unsigned int *preasons, X509_CRL *crl, X509 *x);
129 X509_CRL **pcrl, X509_CRL **pdcrl, X509 *x);
133 static void crl_akid_check(X509_STORE_CTX *ctx, X509_CRL *crl, X509 **pissuer,
135 static int crl_crldp_check(X509 *x, X509_CRL *crl, int crl_score,
137 static int check_crl_path(X509_STORE_CTX *ctx, X509 *x);
139 STACK_OF(X509) *cert_path,
140 STACK_OF(X509) *crl_path);
[all …]
Dx509_set.c63 int X509_set_version(X509 *x, long version) in X509_set_version()
79 int X509_set_serialNumber(X509 *x, ASN1_INTEGER *serial) in X509_set_serialNumber()
96 int X509_set_issuer_name(X509 *x, X509_NAME *name) in X509_set_issuer_name()
103 int X509_set_subject_name(X509 *x, X509_NAME *name) in X509_set_subject_name()
110 int X509_set_notBefore(X509 *x, const ASN1_TIME *tm) in X509_set_notBefore()
127 const ASN1_TIME *X509_get0_notBefore(const X509 *x) in X509_get0_notBefore()
132 int X509_set_notAfter(X509 *x, const ASN1_TIME *tm) in X509_set_notAfter()
149 const ASN1_TIME *X509_get0_notAfter(const X509 *x) in X509_get0_notAfter()
154 int X509_set_pubkey(X509 *x, EVP_PKEY *pkey) in X509_set_pubkey()
161 STACK_OF(X509_EXTENSION) *X509_get0_extensions(const X509 *x) in STACK_OF()
[all …]
Dx509_test.cc665 static bssl::UniquePtr<X509> CertFromPEM(const char *pem) { in CertFromPEM()
667 return bssl::UniquePtr<X509>( in CertFromPEM()
690 static bssl::UniquePtr<STACK_OF(X509)> CertsToStack( in CertsToStack()
691 const std::vector<X509 *> &certs) { in CertsToStack()
692 bssl::UniquePtr<STACK_OF(X509)> stack(sk_X509_new_null()); in CertsToStack()
722 static int Verify(X509 *leaf, const std::vector<X509 *> &roots, in Verify()
723 const std::vector<X509 *> &intermediates, in Verify()
727 bssl::UniquePtr<STACK_OF(X509)> roots_stack(CertsToStack(roots)); in Verify()
728 bssl::UniquePtr<STACK_OF(X509)> intermediates_stack( in Verify()
781 static int Verify(X509 *leaf, const std::vector<X509 *> &roots, in Verify()
[all …]
Dby_file.c107 OPENSSL_PUT_ERROR(X509, X509_R_LOADING_DEFAULTS); in by_file_ctrl()
126 X509 *x = NULL; in X509_load_cert_file()
133 OPENSSL_PUT_ERROR(X509, ERR_R_SYS_LIB); in X509_load_cert_file()
148 OPENSSL_PUT_ERROR(X509, ERR_R_PEM_LIB); in X509_load_cert_file()
162 OPENSSL_PUT_ERROR(X509, ERR_R_ASN1_LIB); in X509_load_cert_file()
170 OPENSSL_PUT_ERROR(X509, X509_R_BAD_X509_FILETYPE); in X509_load_cert_file()
193 OPENSSL_PUT_ERROR(X509, ERR_R_SYS_LIB); in X509_load_crl_file()
208 OPENSSL_PUT_ERROR(X509, ERR_R_PEM_LIB); in X509_load_crl_file()
222 OPENSSL_PUT_ERROR(X509, ERR_R_ASN1_LIB); in X509_load_crl_file()
230 OPENSSL_PUT_ERROR(X509, X509_R_BAD_X509_FILETYPE); in X509_load_crl_file()
[all …]
Dx_x509a.c71 static X509_CERT_AUX *aux_get(X509 *x);
83 static X509_CERT_AUX *aux_get(X509 *x)
92 int X509_alias_set1(X509 *x, unsigned char *name, int len) in X509_alias_set1()
109 int X509_keyid_set1(X509 *x, unsigned char *id, int len) in X509_keyid_set1()
126 unsigned char *X509_alias_get0(X509 *x, int *len) in X509_alias_get0()
135 unsigned char *X509_keyid_get0(X509 *x, int *len) in X509_keyid_get0()
144 int X509_add1_trust_object(X509 *x, ASN1_OBJECT *obj) in X509_add1_trust_object()
164 int X509_add1_reject_object(X509 *x, ASN1_OBJECT *obj) in X509_add1_reject_object()
184 void X509_trust_clear(X509 *x) in X509_trust_clear()
192 void X509_reject_clear(X509 *x) in X509_reject_clear()
Dx_all.c70 int X509_verify(X509 *a, EVP_PKEY *r) in X509_verify()
73 OPENSSL_PUT_ERROR(X509, X509_R_SIGNATURE_ALGORITHM_MISMATCH); in X509_verify()
86 int X509_sign(X509 *x, EVP_PKEY *pkey, const EVP_MD *md) in X509_sign()
93 int X509_sign_ctx(X509 *x, EVP_MD_CTX *ctx) in X509_sign_ctx()
142 X509 *d2i_X509_fp(FILE *fp, X509 **x509) in d2i_X509_fp()
144 return ASN1_item_d2i_fp(ASN1_ITEM_rptr(X509), fp, x509); in d2i_X509_fp()
147 int i2d_X509_fp(FILE *fp, X509 *x509) in i2d_X509_fp()
149 return ASN1_item_i2d_fp(ASN1_ITEM_rptr(X509), fp, x509); in i2d_X509_fp()
153 X509 *d2i_X509_bio(BIO *bp, X509 **x509) in d2i_X509_bio()
155 return ASN1_item_d2i_bio(ASN1_ITEM_rptr(X509), bp, x509); in d2i_X509_bio()
[all …]
Dx509_ext.c111 int X509_get_ext_count(X509 *x) in X509_get_ext_count()
116 int X509_get_ext_by_NID(X509 *x, int nid, int lastpos) in X509_get_ext_by_NID()
121 int X509_get_ext_by_OBJ(X509 *x, ASN1_OBJECT *obj, int lastpos) in X509_get_ext_by_OBJ()
126 int X509_get_ext_by_critical(X509 *x, int crit, int lastpos) in X509_get_ext_by_critical()
132 X509_EXTENSION *X509_get_ext(X509 *x, int loc) in X509_get_ext()
137 X509_EXTENSION *X509_delete_ext(X509 *x, int loc) in X509_delete_ext()
142 int X509_add_ext(X509 *x, X509_EXTENSION *ex, int loc) in X509_add_ext()
147 void *X509_get_ext_d2i(X509 *x, int nid, int *crit, int *idx) in X509_get_ext_d2i()
152 int X509_add1_ext_i2d(X509 *x, int nid, void *value, int crit, in X509_add1_ext_i2d()
Dx509spki.c89 OPENSSL_PUT_ERROR(X509, X509_R_BASE64_DECODE_ERROR); in NETSCAPE_SPKI_b64_decode()
93 OPENSSL_PUT_ERROR(X509, ERR_R_MALLOC_FAILURE); in NETSCAPE_SPKI_b64_decode()
98 OPENSSL_PUT_ERROR(X509, X509_R_BASE64_DECODE_ERROR); in NETSCAPE_SPKI_b64_decode()
118 OPENSSL_PUT_ERROR(X509, ERR_R_OVERFLOW); in NETSCAPE_SPKI_b64_encode()
123 OPENSSL_PUT_ERROR(X509, ERR_R_MALLOC_FAILURE); in NETSCAPE_SPKI_b64_encode()
129 OPENSSL_PUT_ERROR(X509, ERR_R_MALLOC_FAILURE); in NETSCAPE_SPKI_b64_encode()
Da_verify.c81 OPENSSL_PUT_ERROR(X509, ERR_R_PASSED_NULL_PARAMETER); in ASN1_item_verify()
86 OPENSSL_PUT_ERROR(X509, X509_R_INVALID_BIT_STRING_BITS_LEFT); in ASN1_item_verify()
99 OPENSSL_PUT_ERROR(X509, ERR_R_MALLOC_FAILURE); in ASN1_item_verify()
105 OPENSSL_PUT_ERROR(X509, ERR_R_EVP_LIB); in ASN1_item_verify()
/external/boringssl/src/include/openssl/
Dx509.h269 DEFINE_STACK_OF(X509)
270 DECLARE_ASN1_SET_OF(X509)
277 int (*check_trust)(struct x509_trust_st *, X509 *, int);
465 X509 *x509;
566 OPENSSL_EXPORT int X509_verify(X509 *a, EVP_PKEY *r);
583 OPENSSL_EXPORT int X509_sign(X509 *x, EVP_PKEY *pkey, const EVP_MD *md);
584 OPENSSL_EXPORT int X509_sign_ctx(X509 *x, EVP_MD_CTX *ctx);
591 OPENSSL_EXPORT int X509_pubkey_digest(const X509 *data,const EVP_MD *type,
593 OPENSSL_EXPORT int X509_digest(const X509 *data,const EVP_MD *type,
607 OPENSSL_EXPORT X509 *X509_parse_from_buffer(CRYPTO_BUFFER *buf);
[all …]
Dx509_vfy.h109 X509 *x509;
163 typedef int (*X509_STORE_CTX_get_issuer_fn)(X509 **issuer,
164 X509_STORE_CTX *ctx, X509 *x);
166 X509 *x, X509 *issuer);
169 X509_CRL **crl, X509 *x);
172 X509_CRL *crl, X509 *x);
174 typedef STACK_OF(X509) *(*X509_STORE_CTX_lookup_certs_fn)(X509_STORE_CTX *ctx,
189 STACK_OF(X509) *additional_untrusted;
233 X509 *cert; /* The cert to check */
234 STACK_OF(X509) *untrusted; /* chain of X509s - untrusted - passed in */
[all …]
Dpkcs7.h33 DECLARE_STACK_OF(X509)
47 OPENSSL_EXPORT int PKCS7_get_certificates(STACK_OF(X509) *out_certs, CBS *cbs);
52 CBB *out, const STACK_OF(X509) *certs);
72 OPENSSL_EXPORT int PKCS7_get_PEM_certificates(STACK_OF(X509) *out_certs,
92 STACK_OF(X509) *cert;
97 STACK_OF(X509) *cert;
194 OPENSSL_EXPORT PKCS7 *PKCS7_sign(X509 *sign_cert, EVP_PKEY *pkey,
195 STACK_OF(X509) *certs, BIO *data, int flags);
Dx509v3.h139 X509 *issuer_cert;
140 X509 *subject_cert;
474 const X509 *, int);
586 OPENSSL_EXPORT int NAME_CONSTRAINTS_check(X509 *x, NAME_CONSTRAINTS *nc);
623 OPENSSL_EXPORT int X509V3_EXT_add_nconf(CONF *conf, X509V3_CTX *ctx, char *section, X509 *cert);
637 OPENSSL_EXPORT void X509V3_set_ctx(X509V3_CTX *ctx, X509 *issuer, X509 *subject,
676 OPENSSL_EXPORT int X509_check_ca(X509 *x);
677 OPENSSL_EXPORT int X509_check_purpose(X509 *x, int id, int ca);
680 OPENSSL_EXPORT int X509_check_issued(X509 *issuer, X509 *subject);
681 OPENSSL_EXPORT int X509_check_akid(X509 *issuer, AUTHORITY_KEYID *akid);
[all …]
Dpkcs8.h126 STACK_OF(X509) *out_certs,
178 EVP_PKEY **out_pkey, X509 **out_cert,
179 STACK_OF(X509) **out_ca_certs);
204 const EVP_PKEY *pkey, X509 *cert,
205 const STACK_OF(X509) *chain, int key_nid,
/external/boringssl/src/crypto/x509v3/
Dv3name_test.cc136 static int set_cn(X509 *crt, ...) in set_cn()
172 static int set_altname(X509 *crt, ...) in set_altname()
222 static int set_cn1(X509 *crt, const char *name) in set_cn1()
227 static int set_cn_and_email(X509 *crt, const char *name) in set_cn_and_email()
233 static int set_cn2(X509 *crt, const char *name) in set_cn2()
239 static int set_cn3(X509 *crt, const char *name) in set_cn3()
245 static int set_email1(X509 *crt, const char *name) in set_email1()
250 static int set_email2(X509 *crt, const char *name) in set_email2()
256 static int set_email3(X509 *crt, const char *name) in set_email3()
262 static int set_email_and_cn(X509 *crt, const char *name) in set_email_and_cn()
[all …]
Dv3_purp.c81 static void x509v3_cache_extensions(X509 *x);
83 static int check_purpose_ssl_client(const X509_PURPOSE *xp, const X509 *x,
85 static int check_purpose_ssl_server(const X509_PURPOSE *xp, const X509 *x,
87 static int check_purpose_ns_ssl_server(const X509_PURPOSE *xp, const X509 *x,
89 static int purpose_smime(const X509 *x, int ca);
90 static int check_purpose_smime_sign(const X509_PURPOSE *xp, const X509 *x,
92 static int check_purpose_smime_encrypt(const X509_PURPOSE *xp, const X509 *x,
94 static int check_purpose_crl_sign(const X509_PURPOSE *xp, const X509 *x,
96 static int check_purpose_timestamp_sign(const X509_PURPOSE *xp, const X509 *x,
98 static int no_check(const X509_PURPOSE *xp, const X509 *x, int ca);
[all …]
/external/boringssl/src/ssl/
Dssl_x509.cc175 static UniquePtr<CRYPTO_BUFFER> x509_to_buffer(X509 *x509) { in x509_to_buffer()
203 static int ssl_cert_set_chain(CERT *cert, STACK_OF(X509) *chain) { in ssl_cert_set_chain()
219 for (X509 *x509 : chain) { in ssl_cert_set_chain()
284 bssl::UniquePtr<STACK_OF(X509)> chain, chain_without_leaf; in ssl_crypto_x509_session_cache_objects()
302 bssl::UniquePtr<X509> leaf; in ssl_crypto_x509_session_cache_objects()
304 UniquePtr<X509> x509(X509_parse_from_buffer(cert)); in ssl_crypto_x509_session_cache_objects()
366 STACK_OF(X509) *const cert_chain = session->x509_chain; in ssl_crypto_x509_session_verify_cert_chain()
377 X509 *leaf = sk_X509_value(cert_chain, 0); in ssl_crypto_x509_session_verify_cert_chain()
456 UniquePtr<X509> leaf(X509_parse_from_buffer( in ssl_crypto_x509_ssl_auto_chain_if_needed()
528 X509 *SSL_get_peer_certificate(const SSL *ssl) { in SSL_get_peer_certificate()
[all …]
/external/libevent/sample/
Dopenssl_hostname_validation.c63 static HostnameValidationResult matches_common_name(const char *hostname, const X509 *server_cert) { in matches_common_name()
70 …common_name_loc = X509_NAME_get_index_by_NID(X509_get_subject_name((X509 *) server_cert), NID_comm… in matches_common_name()
76 …common_name_entry = X509_NAME_get_entry(X509_get_subject_name((X509 *) server_cert), common_name_l… in matches_common_name()
111 static HostnameValidationResult matches_subject_alternative_name(const char *hostname, const X509 *… in matches_subject_alternative_name()
118 san_names = X509_get_ext_d2i((X509 *) server_cert, NID_subject_alt_name, NULL, NULL); in matches_subject_alternative_name()
163 HostnameValidationResult validate_hostname(const char *hostname, const X509 *server_cert) { in validate_hostname()
/external/boringssl/src/crypto/pkcs8/
Dpkcs12_test.cc1171 bssl::UniquePtr<STACK_OF(X509)> certs(sk_X509_new_null()); in TestImpl()
1205 X509 *cert = nullptr; in TestCompat()
1206 STACK_OF(X509) *ca_certs = nullptr; in TestCompat()
1210 bssl::UniquePtr<X509> delete_cert(cert); in TestCompat()
1211 bssl::UniquePtr<STACK_OF(X509)> delete_ca_certs(ca_certs); in TestCompat()
1372 static bssl::UniquePtr<X509> LoadX509(bssl::Span<const uint8_t> der) { in LoadX509()
1374 return bssl::UniquePtr<X509>(d2i_X509(nullptr, &ptr, der.size())); in LoadX509()
1393 bssl::UniquePtr<X509> cert; in TestRoundTrip()
1398 bssl::UniquePtr<STACK_OF(X509)> chain; in TestRoundTrip()
1403 bssl::UniquePtr<X509> x509 = LoadX509(der); in TestRoundTrip()
[all …]
/external/boringssl/src/crypto/pkcs7/
Dpkcs7_test.cc473 bssl::UniquePtr<STACK_OF(X509)> certs(sk_X509_new_null()); in TestCertRepase()
475 bssl::UniquePtr<STACK_OF(X509)> certs2(sk_X509_new_null()); in TestCertRepase()
497 X509 *a = sk_X509_value(certs.get(), i); in TestCertRepase()
498 X509 *b = sk_X509_value(certs2.get(), i); in TestCertRepase()
516 const STACK_OF(X509) *certs3 = pkcs7_obj->d.sign->cert; in TestCertRepase()
519 X509 *a = sk_X509_value(certs.get(), i); in TestCertRepase()
520 X509 *b = sk_X509_value(certs3, i); in TestCertRepase()
538 const STACK_OF(X509) *certs4 = pkcs7_obj->d.sign->cert; in TestCertRepase()
541 X509 *a = sk_X509_value(certs.get(), i); in TestCertRepase()
542 X509 *b = sk_X509_value(certs4, i); in TestCertRepase()
[all …]
/external/boringssl/src/crypto/pem/
Dpem_x509.c65 IMPLEMENT_PEM_rw(X509, X509, PEM_STRING_X509, X509)

123456