Home
last modified time | relevance | path

Searched refs:STACK_OF (Results 1 – 25 of 107) sorted by relevance

12345

/external/boringssl/src/include/openssl/
Dstack.h125 #define STACK_OF(type) struct stack_st_##type macro
127 #define DECLARE_STACK_OF(type) STACK_OF(type);
266 struct StackTraits<STACK_OF(name)> { \
303 OPENSSL_INLINE STACK_OF(name) * \
305 return (STACK_OF(name) *)sk_new((stack_cmp_func)comp); \
308 OPENSSL_INLINE STACK_OF(name) *sk_##name##_new_null(void) { \
309 return (STACK_OF(name) *)sk_new_null(); \
312 OPENSSL_INLINE size_t sk_##name##_num(const STACK_OF(name) *sk) { \
316 OPENSSL_INLINE void sk_##name##_zero(STACK_OF(name) *sk) { \
320 OPENSSL_INLINE ptrtype sk_##name##_value(const STACK_OF(name) *sk, \
[all …]
Dx509v3.h86 typedef STACK_OF(CONF_VALUE) * typedef
88 STACK_OF(CONF_VALUE) *extlist);
91 STACK_OF(CONF_VALUE) *values);
130 STACK_OF(CONF_VALUE) * (*get_section)(void *db, char *section);
132 void (*free_section)(void *db, STACK_OF(CONF_VALUE) *section);
217 typedef STACK_OF(GENERAL_NAME) GENERAL_NAMES;
229 typedef STACK_OF(ACCESS_DESCRIPTION) AUTHORITY_INFO_ACCESS;
231 typedef STACK_OF(ASN1_OBJECT) EXTENDED_KEY_USAGE;
237 STACK_OF(X509_NAME_ENTRY) *relativename;
264 typedef STACK_OF(DIST_POINT) CRL_DIST_POINTS;
[all …]
Dpkcs7.h43 STACK_OF(CRYPTO_BUFFER) *out_certs, CBS *cbs, CRYPTO_BUFFER_POOL *pool);
47 OPENSSL_EXPORT int PKCS7_get_certificates(STACK_OF(X509) *out_certs, CBS *cbs);
52 CBB *out, const STACK_OF(X509) *certs);
60 OPENSSL_EXPORT int PKCS7_get_CRLs(STACK_OF(X509_CRL) *out_crls, CBS *cbs);
64 OPENSSL_EXPORT int PKCS7_bundle_CRLs(CBB *out, const STACK_OF(X509_CRL) *crls);
72 OPENSSL_EXPORT int PKCS7_get_PEM_certificates(STACK_OF(X509) *out_certs,
81 OPENSSL_EXPORT int PKCS7_get_PEM_CRLs(STACK_OF(X509_CRL) *out_crls,
92 STACK_OF(X509) *cert;
93 STACK_OF(X509_CRL) *crl;
97 STACK_OF(X509) *cert;
[all …]
Dx509_vfy.h155 STACK_OF(ASN1_OBJECT) *policies; /* Permissible policies */
174 typedef STACK_OF(X509) *(*X509_STORE_CTX_lookup_certs_fn)(X509_STORE_CTX *ctx, typedef
176 typedef STACK_OF(X509_CRL) *(*X509_STORE_CTX_lookup_crls_fn)(X509_STORE_CTX *ctx, typedef
187 STACK_OF(X509_OBJECT) *objs; /* Cache of all objects */
189 STACK_OF(X509) *additional_untrusted;
192 STACK_OF(X509_LOOKUP) *get_cert_methods;
234 STACK_OF(X509) *untrusted; /* chain of X509s - untrusted - passed in */
235 STACK_OF(X509_CRL) *crls; /* set of CRLs passed in */
257 STACK_OF(X509) *chain; /* chain of X509s - built up and trusted */
434 OPENSSL_EXPORT int X509_OBJECT_idx_by_subject(STACK_OF(X509_OBJECT) *h, int type,
[all …]
Dx509.h118 typedef STACK_OF(X509_ALGOR) X509_ALGORS;
153 STACK_OF(X509_NAME_ENTRY) *entries;
170 typedef STACK_OF(X509_EXTENSION) X509_EXTENSIONS;
182 /* 0 */ STACK_OF(ASN1_TYPE) *set;
198 STACK_OF(X509_ATTRIBUTE) *attributes; /* [ 0 ] */
220 STACK_OF(X509_EXTENSION) *extensions; /* [ 3 ] optional in v3 */
232 STACK_OF(ASN1_OBJECT) *trust; /* trusted uses */
233 STACK_OF(ASN1_OBJECT) *reject; /* rejected uses */
236 STACK_OF(X509_ALGOR) *other; /* other unspecified info */
260 STACK_OF(DIST_POINT) *crldp;
[all …]
/external/boringssl/src/crypto/x509/
Dx509_att.c65 int X509at_get_attr_count(const STACK_OF(X509_ATTRIBUTE) *x) in X509at_get_attr_count()
70 int X509at_get_attr_by_NID(const STACK_OF(X509_ATTRIBUTE) *x, int nid, in X509at_get_attr_by_NID()
81 int X509at_get_attr_by_OBJ(const STACK_OF(X509_ATTRIBUTE) *sk, in X509at_get_attr_by_OBJ()
101 X509_ATTRIBUTE *X509at_get_attr(const STACK_OF(X509_ATTRIBUTE) *x, int loc) in X509at_get_attr()
109 X509_ATTRIBUTE *X509at_delete_attr(STACK_OF(X509_ATTRIBUTE) *x, int loc) in X509at_delete_attr()
119 STACK_OF(X509_ATTRIBUTE) *X509at_add1_attr(STACK_OF(X509_ATTRIBUTE) **x, in STACK_OF() function
123 STACK_OF(X509_ATTRIBUTE) *sk = NULL; in STACK_OF()
153 STACK_OF(X509_ATTRIBUTE) *X509at_add1_attr_by_OBJ(STACK_OF(X509_ATTRIBUTE) in STACK_OF() function
160 STACK_OF(X509_ATTRIBUTE) *ret; in STACK_OF()
169 STACK_OF(X509_ATTRIBUTE) *X509at_add1_attr_by_NID(STACK_OF(X509_ATTRIBUTE) in STACK_OF() function
[all …]
Dx509_v3.c65 int X509v3_get_ext_count(const STACK_OF(X509_EXTENSION) *x) in X509v3_get_ext_count()
72 int X509v3_get_ext_by_NID(const STACK_OF(X509_EXTENSION) *x, int nid, in X509v3_get_ext_by_NID()
83 int X509v3_get_ext_by_OBJ(const STACK_OF(X509_EXTENSION) *sk, in X509v3_get_ext_by_OBJ()
103 int X509v3_get_ext_by_critical(const STACK_OF(X509_EXTENSION) *sk, int crit, in X509v3_get_ext_by_critical()
123 X509_EXTENSION *X509v3_get_ext(const STACK_OF(X509_EXTENSION) *x, int loc) in X509v3_get_ext()
131 X509_EXTENSION *X509v3_delete_ext(STACK_OF(X509_EXTENSION) *x, int loc) in X509v3_delete_ext()
141 STACK_OF(X509_EXTENSION) *X509v3_add_ext(STACK_OF(X509_EXTENSION) **x, in STACK_OF() function
146 STACK_OF(X509_EXTENSION) *sk = NULL; in STACK_OF()
Dx_name.c73 typedef STACK_OF(X509_NAME_ENTRY) STACK_OF_X509_NAME_ENTRY;
96 static int i2d_name_canon(STACK_OF(STACK_OF_X509_NAME_ENTRY) * intname,
184 static void local_sk_X509_NAME_ENTRY_free(STACK_OF(X509_NAME_ENTRY) *ne) in local_sk_X509_NAME_ENTRY_free()
189 static void local_sk_X509_NAME_ENTRY_pop_free(STACK_OF(X509_NAME_ENTRY) *ne) in local_sk_X509_NAME_ENTRY_pop_free()
201 STACK_OF(STACK_OF_X509_NAME_ENTRY) *s; in x509_name_ex_d2i()
214 STACK_OF(X509_NAME_ENTRY) *entries; in x509_name_ex_d2i()
292 STACK_OF(STACK_OF_X509_NAME_ENTRY) *s; in x509_name_encode()
299 STACK_OF(X509_NAME_ENTRY) *entries = NULL; in x509_name_encode()
352 STACK_OF(STACK_OF_X509_NAME_ENTRY) *intname = NULL; in x509_name_canon()
353 STACK_OF(X509_NAME_ENTRY) *entries = NULL; in x509_name_canon()
[all …]
/external/boringssl/src/crypto/x509v3/
Dpcy_int.h77 STACK_OF(POLICYQUALINFO) *qualifier_set;
78 STACK_OF(ASN1_OBJECT) *expected_policy_set;
119 STACK_OF(X509_POLICY_DATA) *data;
153 STACK_OF(X509_POLICY_NODE) *nodes;
171 STACK_OF(X509_POLICY_DATA) *extra_data;
173 STACK_OF(X509_POLICY_NODE) *auth_policies;
174 STACK_OF(X509_POLICY_NODE) *user_policies;
196 STACK_OF(X509_POLICY_NODE) *policy_node_cmp_new(void);
206 X509_POLICY_NODE *tree_find_sk(STACK_OF(X509_POLICY_NODE) *sk,
Dv3_cpols.c77 static int i2r_certpol(X509V3_EXT_METHOD *method, STACK_OF(POLICYINFO) *pol,
79 static STACK_OF(POLICYINFO) *r2i_certpol(X509V3_EXT_METHOD *method,
81 static void print_qualifiers(BIO *out, STACK_OF(POLICYQUALINFO) *quals,
85 STACK_OF(CONF_VALUE) *polstrs, int ia5org);
87 STACK_OF(CONF_VALUE) *unot, int ia5org);
88 static int nref_nos(STACK_OF(ASN1_INTEGER) *nnums, STACK_OF(CONF_VALUE) *nos);
141 static STACK_OF(POLICYINFO) *r2i_certpol(X509V3_EXT_METHOD *method,
144 STACK_OF(POLICYINFO) *pols = NULL;
148 STACK_OF(CONF_VALUE) *vals;
175 STACK_OF(CONF_VALUE) *polsect;
[all …]
Dv3_crld.c70 X509V3_CTX *ctx, STACK_OF(CONF_VALUE) *nval);
94 static STACK_OF(GENERAL_NAME) *gnames_from_sectname(X509V3_CTX *ctx, in STACK_OF() function
97 STACK_OF(CONF_VALUE) *gnsect; in STACK_OF()
98 STACK_OF(GENERAL_NAME) *gens; in STACK_OF()
118 STACK_OF(GENERAL_NAME) *fnm = NULL; in set_dist_point_name()
119 STACK_OF(X509_NAME_ENTRY) *rnm = NULL; in set_dist_point_name()
126 STACK_OF(CONF_VALUE) *dnsect; in set_dist_point_name()
195 STACK_OF(CONF_VALUE) *rsk = NULL; in set_reasons()
252 STACK_OF(CONF_VALUE) *nval) in crldp_from_section()
287 X509V3_CTX *ctx, STACK_OF(CONF_VALUE) *nval) in v2i_crld()
[all …]
Dv3_bcons.c68 static STACK_OF(CONF_VALUE) *i2v_BASIC_CONSTRAINTS(X509V3_EXT_METHOD *method,
70 STACK_OF(CONF_VALUE)
74 STACK_OF(CONF_VALUE) *values);
94 static STACK_OF(CONF_VALUE) *i2v_BASIC_CONSTRAINTS(X509V3_EXT_METHOD *method,
96 STACK_OF(CONF_VALUE)
106 STACK_OF(CONF_VALUE) *values) in v2i_BASIC_CONSTRAINTS()
Dv3_pcons.c68 static STACK_OF(CONF_VALUE) *i2v_POLICY_CONSTRAINTS(const X509V3_EXT_METHOD
69 *method, void *bcons, STACK_OF(CONF_VALUE)
73 STACK_OF(CONF_VALUE) *values);
93 static STACK_OF(CONF_VALUE) *i2v_POLICY_CONSTRAINTS(const X509V3_EXT_METHOD
94 *method, void *a, STACK_OF(CONF_VALUE)
107 STACK_OF(CONF_VALUE) *values) in v2i_POLICY_CONSTRAINTS()
Dv3_extku.c68 STACK_OF(CONF_VALUE) *nval);
69 static STACK_OF(CONF_VALUE) *i2v_EXTENDED_KEY_USAGE(const X509V3_EXT_METHOD
70 *method, void *eku, STACK_OF(CONF_VALUE)
102 static STACK_OF(CONF_VALUE) *i2v_EXTENDED_KEY_USAGE(const X509V3_EXT_METHOD in ASN1_ITEM_TEMPLATE()
103 *method, void *a, STACK_OF(CONF_VALUE) in ASN1_ITEM_TEMPLATE()
120 STACK_OF(CONF_VALUE) *nval) in v2i_EXTENDED_KEY_USAGE()
Dv3_info.c72 static STACK_OF(CONF_VALUE) *i2v_AUTHORITY_INFO_ACCESS(X509V3_EXT_METHOD
74 *ainfo, STACK_OF(CONF_VALUE)
79 STACK_OF(CONF_VALUE)
115 static STACK_OF(CONF_VALUE) *i2v_AUTHORITY_INFO_ACCESS(
117 STACK_OF(CONF_VALUE) *ret)
124 STACK_OF(CONF_VALUE) *tret = ret;
127 STACK_OF(CONF_VALUE) *tmp;
161 STACK_OF(CONF_VALUE) in v2i_AUTHORITY_INFO_ACCESS()
Dv3_pmaps.c67 X509V3_CTX *ctx, STACK_OF(CONF_VALUE) *nval);
68 static STACK_OF(CONF_VALUE) *i2v_POLICY_MAPPINGS(const X509V3_EXT_METHOD
69 *method, void *pmps, STACK_OF(CONF_VALUE)
95 static STACK_OF(CONF_VALUE) *i2v_POLICY_MAPPINGS(const X509V3_EXT_METHOD
96 *method, void *a, STACK_OF(CONF_VALUE)
114 X509V3_CTX *ctx, STACK_OF(CONF_VALUE) *nval) in v2i_POLICY_MAPPINGS()
Dv3_akey.c72 static STACK_OF(CONF_VALUE) *i2v_AUTHORITY_KEYID(X509V3_EXT_METHOD *method,
74 STACK_OF(CONF_VALUE)
78 STACK_OF(CONF_VALUE) *values);
91 static STACK_OF(CONF_VALUE) *i2v_AUTHORITY_KEYID(X509V3_EXT_METHOD *method, in STACK_OF() function
93 STACK_OF(CONF_VALUE) in STACK_OF()
122 STACK_OF(CONF_VALUE) *values) in v2i_AUTHORITY_KEYID()
Dv3_utl.c80 static STACK_OF(OPENSSL_STRING) *get_email(X509_NAME *name,
83 static int append_ia5(STACK_OF(OPENSSL_STRING) **sk, ASN1_IA5STRING *email);
93 STACK_OF(CONF_VALUE) **extlist) in X509V3_add_value()
123 STACK_OF(CONF_VALUE) **extlist) in X509V3_add_value_uchar()
144 STACK_OF(CONF_VALUE) **extlist) in X509V3_add_value_bool()
152 STACK_OF(CONF_VALUE) **extlist) in X509V3_add_value_bool_nf()
273 STACK_OF(CONF_VALUE) **extlist) in X509V3_add_value_int()
326 STACK_OF(CONF_VALUE) *X509V3_parse_list(const char *line) in STACK_OF() function
330 STACK_OF(CONF_VALUE) *values = NULL; in STACK_OF()
551 STACK_OF(OPENSSL_STRING) *X509_get1_email(X509 *x) in STACK_OF() function
[all …]
Dv3_conf.c126 STACK_OF(CONF_VALUE) *nval; in do_ext_nconf()
331 STACK_OF(X509_EXTENSION) **sk) in X509V3_EXT_add_nconf_sk()
334 STACK_OF(CONF_VALUE) *nval; in X509V3_EXT_add_nconf_sk()
357 STACK_OF(X509_EXTENSION) **sk = NULL; in X509V3_EXT_add_nconf()
368 STACK_OF(X509_EXTENSION) **sk = NULL; in X509V3_EXT_CRL_add_nconf()
379 STACK_OF(X509_EXTENSION) *extlist = NULL, **sk = NULL; in X509V3_EXT_REQ_add_nconf()
404 STACK_OF(CONF_VALUE) *X509V3_get_section(X509V3_CTX *ctx, char *section) in STACK_OF() function
423 void X509V3_section_free(X509V3_CTX *ctx, STACK_OF(CONF_VALUE) *section) in X509V3_section_free()
437 static STACK_OF(CONF_VALUE) *nconf_get_section(void *db, char *section) in STACK_OF() function
Dpcy_tree.c90 STACK_OF(ASN1_OBJECT) *pset = node->data->expected_policy_set; in expected_print()
149 static int tree_init(X509_POLICY_TREE **ptree, STACK_OF(X509) *certs, in tree_init()
416 STACK_OF(ASN1_OBJECT) *expset = node->data->expected_policy_set; in tree_link_unmatched()
496 STACK_OF(X509_POLICY_NODE) *nodes; in tree_prune()
539 static int tree_add_auth_node(STACK_OF(X509_POLICY_NODE) **pnodes, in tree_add_auth_node()
568 STACK_OF(X509_POLICY_NODE) **pnodes) in tree_calculate_authority_set()
572 STACK_OF(X509_POLICY_NODE) **addnodes; in tree_calculate_authority_set()
612 STACK_OF(ASN1_OBJECT) *policy_oids, in tree_calculate_user_set()
613 STACK_OF(X509_POLICY_NODE) *auth_nodes) in tree_calculate_user_set()
738 STACK_OF(X509) *certs, in X509_policy_check()
[all …]
Dv3_alt.c72 STACK_OF(CONF_VALUE) *nval);
75 STACK_OF(CONF_VALUE) *nval);
103 STACK_OF(CONF_VALUE) *i2v_GENERAL_NAMES(X509V3_EXT_METHOD *method, in STACK_OF() function
105 STACK_OF(CONF_VALUE) *ret) in STACK_OF()
118 STACK_OF(CONF_VALUE) *i2v_GENERAL_NAME(X509V3_EXT_METHOD *method, in STACK_OF() function
120 STACK_OF(CONF_VALUE) *ret) in STACK_OF()
256 STACK_OF(CONF_VALUE) *nval) in v2i_issuer_alt()
326 STACK_OF(CONF_VALUE) *nval) in v2i_subject_alt()
416 X509V3_CTX *ctx, STACK_OF(CONF_VALUE) *nval) in v2i_GENERAL_NAMES()
605 STACK_OF(CONF_VALUE) *sk = NULL; in do_dirname()
/external/boringssl/src/ssl/
Dssl_x509.cc189 static UniquePtr<STACK_OF(CRYPTO_BUFFER)> new_leafless_chain(void) { in new_leafless_chain()
190 UniquePtr<STACK_OF(CRYPTO_BUFFER)> chain(sk_CRYPTO_BUFFER_new_null()); in new_leafless_chain()
203 static int ssl_cert_set_chain(CERT *cert, STACK_OF(X509) *chain) { in ssl_cert_set_chain()
204 UniquePtr<STACK_OF(CRYPTO_BUFFER)> new_chain; in ssl_cert_set_chain()
249 STACK_OF(CRYPTO_BUFFER) *names) { in ssl_crypto_x509_check_client_CA_list()
284 bssl::UniquePtr<STACK_OF(X509)> chain, chain_without_leaf; 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()
541 STACK_OF(X509) *SSL_get_peer_cert_chain(const SSL *ssl) { in STACK_OF() function
556 STACK_OF(X509) *SSL_get_peer_full_cert_chain(const SSL *ssl) { in STACK_OF() function
802 static int ssl_cert_set0_chain(CERT *cert, STACK_OF(X509) *chain) { in ssl_cert_set0_chain()
[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()
516 const STACK_OF(X509) *certs3 = pkcs7_obj->d.sign->cert; in TestCertRepase() local
538 const STACK_OF(X509) *certs4 = pkcs7_obj->d.sign->cert; in TestCertRepase() local
555 bssl::UniquePtr<STACK_OF(X509_CRL)> crls(sk_X509_CRL_new_null()); in TestCRLReparse()
557 bssl::UniquePtr<STACK_OF(X509_CRL)> crls2(sk_X509_CRL_new_null()); in TestCRLReparse()
598 const STACK_OF(X509_CRL) *crls3 = pkcs7_obj->d.sign->crl; in TestCRLReparse() local
612 const STACK_OF(X509_CRL) *crls4 = pkcs7_obj->d.sign->crl; in TestCRLReparse() local
624 bssl::UniquePtr<STACK_OF(X509)> certs(sk_X509_new_null()); in TestPEMCerts()
634 bssl::UniquePtr<STACK_OF(X509_CRL)> crls(sk_X509_CRL_new_null()); in TestPEMCRLs()
Dpkcs7_x509.c32 int PKCS7_get_certificates(STACK_OF(X509) *out_certs, CBS *cbs) { in PKCS7_get_certificates()
35 STACK_OF(CRYPTO_BUFFER) *raw = sk_CRYPTO_BUFFER_new_null(); in PKCS7_get_certificates()
65 int PKCS7_get_CRLs(STACK_OF(X509_CRL) *out_crls, CBS *cbs) { in PKCS7_get_CRLs()
128 int PKCS7_get_PEM_certificates(STACK_OF(X509) *out_certs, BIO *pem_bio) { in PKCS7_get_PEM_certificates()
150 int PKCS7_get_PEM_CRLs(STACK_OF(X509_CRL) *out_crls, BIO *pem_bio) { in PKCS7_get_PEM_CRLs()
173 const STACK_OF(X509) *certs = arg; in pkcs7_bundle_certificates_cb()
198 int PKCS7_bundle_certificates(CBB *out, const STACK_OF(X509) *certs) { in PKCS7_bundle_certificates()
203 const STACK_OF(X509_CRL) *crls = arg; in pkcs7_bundle_crls_cb()
228 int PKCS7_bundle_CRLs(CBB *out, const STACK_OF(X509_CRL) *crls) { in PKCS7_bundle_CRLs()
363 PKCS7 *PKCS7_sign(X509 *sign_cert, EVP_PKEY *pkey, STACK_OF(X509) *certs, in PKCS7_sign()
/external/boringssl/src/crypto/stack/
Dstack_test.cc51 void operator()(STACK_OF(TEST_INT) *sk) const { sk_TEST_INT_free(sk); } in operator ()()
54 using ShallowStack = std::unique_ptr<STACK_OF(TEST_INT), ShallowStackDeleter>;
60 static void ExpectStackEquals(const STACK_OF(TEST_INT) *sk, in ExpectStackEquals()
82 bssl::UniquePtr<STACK_OF(TEST_INT)> sk(sk_TEST_INT_new_null()); in TEST()
164 bssl::UniquePtr<STACK_OF(TEST_INT)> copy(sk_TEST_INT_deep_copy( in TEST()
198 bssl::UniquePtr<STACK_OF(TEST_INT)> sk(sk_TEST_INT_new_null()); in TEST()
233 bssl::UniquePtr<STACK_OF(TEST_INT)> sk(sk_TEST_INT_new(compare)); in TEST()
275 bssl::UniquePtr<STACK_OF(TEST_INT)> copy(sk_TEST_INT_deep_copy( in TEST()
317 bssl::UniquePtr<STACK_OF(TEST_INT)> sk(sk_TEST_INT_new(compare)); in TEST()
362 bssl::UniquePtr<STACK_OF(TEST_INT)> sk(sk_TEST_INT_new(compare)); in TEST()

12345