Home
last modified time | relevance | path

Searched refs:ASN1_OBJECT (Results 1 – 25 of 64) sorted by relevance

123

/external/boringssl/src/crypto/obj/
Dobj.c76 static LHASH_OF(ASN1_OBJECT) *global_added_by_data = NULL;
77 static LHASH_OF(ASN1_OBJECT) *global_added_by_nid = NULL;
78 static LHASH_OF(ASN1_OBJECT) *global_added_by_short_name = NULL;
79 static LHASH_OF(ASN1_OBJECT) *global_added_by_long_name = NULL;
95 ASN1_OBJECT *OBJ_dup(const ASN1_OBJECT *o) { in OBJ_dup()
96 ASN1_OBJECT *r; in OBJ_dup()
106 return (ASN1_OBJECT *)o; in OBJ_dup()
160 int OBJ_cmp(const ASN1_OBJECT *a, const ASN1_OBJECT *b) { in OBJ_cmp()
175 const ASN1_OBJECT *a = key; in obj_cmp()
176 const ASN1_OBJECT *b = &kObjects[nid]; in obj_cmp()
[all …]
/external/boringssl/src/include/openssl/
Dlhash_macros.h21 ((LHASH_OF(ASN1_OBJECT) *)lh_new( \
22 CHECKED_CAST(lhash_hash_func, uint32_t (*)(const ASN1_OBJECT *), hash), \
24 int (*)(const ASN1_OBJECT *a, const ASN1_OBJECT *b), \
28 lh_free(CHECKED_CAST(_LHASH *, LHASH_OF(ASN1_OBJECT) *, lh));
31 lh_num_items(CHECKED_CAST(_LHASH *, LHASH_OF(ASN1_OBJECT) *, lh))
34 ((ASN1_OBJECT *)lh_retrieve( \
35 CHECKED_CAST(_LHASH *, LHASH_OF(ASN1_OBJECT) *, lh), \
36 CHECKED_CAST(void *, ASN1_OBJECT *, data)))
39 lh_insert(CHECKED_CAST(_LHASH *, LHASH_OF(ASN1_OBJECT) *, lh), \
40 CHECKED_CAST(void **, ASN1_OBJECT **, old_data), \
[all …]
Dobj.h88 OPENSSL_EXPORT ASN1_OBJECT *OBJ_dup(const ASN1_OBJECT *obj);
92 OPENSSL_EXPORT int OBJ_cmp(const ASN1_OBJECT *a, const ASN1_OBJECT *b);
99 OPENSSL_EXPORT int OBJ_obj2nid(const ASN1_OBJECT *obj);
123 OPENSSL_EXPORT const ASN1_OBJECT *OBJ_nid2obj(int nid);
144 OPENSSL_EXPORT ASN1_OBJECT *OBJ_txt2obj(const char *s, int dont_search_names);
154 OPENSSL_EXPORT int OBJ_obj2txt(char *out, int out_len, const ASN1_OBJECT *obj,
Dx509.h136 ASN1_OBJECT *object;
166 ASN1_OBJECT *object;
179 ASN1_OBJECT *object;
233 STACK_OF(ASN1_OBJECT) *trust; /* trusted uses */
234 STACK_OF(ASN1_OBJECT) *reject; /* rejected uses */
498 ASN1_OBJECT *type;
714 OPENSSL_EXPORT int X509_ALGOR_set0(X509_ALGOR *alg, const ASN1_OBJECT *aobj, int ptype, void *pval);
715 OPENSSL_EXPORT void X509_ALGOR_get0(ASN1_OBJECT **paobj, int *pptype, void **ppval,
805 OPENSSL_EXPORT int X509_add1_trust_object(X509 *x, ASN1_OBJECT *obj);
806 OPENSSL_EXPORT int X509_add1_reject_object(X509 *x, ASN1_OBJECT *obj);
[all …]
Dx509v3.h161 ASN1_OBJECT *type_id;
193 ASN1_OBJECT *registeredID;
199 ASN1_OBJECT *rid; /* registeredID */
207 ASN1_OBJECT *method;
213 typedef STACK_OF(ASN1_OBJECT) EXTENDED_KEY_USAGE;
289 ASN1_OBJECT *pqualid;
301 ASN1_OBJECT *policyid;
311 ASN1_OBJECT *issuerDomainPolicy;
312 ASN1_OBJECT *subjectDomainPolicy;
340 ASN1_OBJECT *policyLanguage;
[all …]
Dasn1.h482 ASN1_OBJECT * object;
514 ASN1_OBJECT *algorithm;
742 OPENSSL_EXPORT ASN1_OBJECT * ASN1_OBJECT_new(void );
743 OPENSSL_EXPORT void ASN1_OBJECT_free(ASN1_OBJECT *a);
744 OPENSSL_EXPORT int i2d_ASN1_OBJECT(ASN1_OBJECT *a,unsigned char **pp);
745 OPENSSL_EXPORT ASN1_OBJECT * c2i_ASN1_OBJECT(ASN1_OBJECT **a,const unsigned char **pp,
747 OPENSSL_EXPORT ASN1_OBJECT * d2i_ASN1_OBJECT(ASN1_OBJECT **a,const unsigned char **pp,
750 DECLARE_ASN1_ITEM(ASN1_OBJECT)
752 DECLARE_ASN1_SET_OF(ASN1_OBJECT)
853 OPENSSL_EXPORT int i2a_ASN1_OBJECT(BIO *bp,ASN1_OBJECT *a);
[all …]
/external/boringssl/src/crypto/asn1/
Da_object.c67 int i2d_ASN1_OBJECT(ASN1_OBJECT *a, unsigned char **pp) in i2d_ASN1_OBJECT()
230 int i2t_ASN1_OBJECT(char *buf, int buf_len, ASN1_OBJECT *a) in i2t_ASN1_OBJECT()
235 int i2a_ASN1_OBJECT(BIO *bp, ASN1_OBJECT *a) in i2a_ASN1_OBJECT()
258 ASN1_OBJECT *d2i_ASN1_OBJECT(ASN1_OBJECT **a, const unsigned char **pp, in d2i_ASN1_OBJECT()
265 ASN1_OBJECT *ret = NULL; in d2i_ASN1_OBJECT()
287 ASN1_OBJECT *c2i_ASN1_OBJECT(ASN1_OBJECT **a, const unsigned char **pp, in c2i_ASN1_OBJECT()
290 ASN1_OBJECT *ret=NULL; in c2i_ASN1_OBJECT()
359 ASN1_OBJECT *ASN1_OBJECT_new(void) in ASN1_OBJECT_new()
361 ASN1_OBJECT *ret; in ASN1_OBJECT_new()
363 ret=(ASN1_OBJECT *)OPENSSL_malloc(sizeof(ASN1_OBJECT)); in ASN1_OBJECT_new()
[all …]
/external/boringssl/src/crypto/x509v3/
Dpcy_int.h76 ASN1_OBJECT *valid_policy;
78 STACK_OF(ASN1_OBJECT) *expected_policy_set;
182 X509_POLICY_DATA *policy_data_new(POLICYINFO *policy, const ASN1_OBJECT *id,
187 const ASN1_OBJECT *id);
199 const ASN1_OBJECT *id);
202 const ASN1_OBJECT *id);
210 const X509_POLICY_NODE *node, const ASN1_OBJECT *oid);
Dpcy_node.c78 const ASN1_OBJECT *id) in tree_find_sk()
84 n.valid_policy = (ASN1_OBJECT *)id; in tree_find_sk()
96 const ASN1_OBJECT *id) in level_find_node()
175 const X509_POLICY_NODE *node, const ASN1_OBJECT *oid) in policy_node_match()
178 ASN1_OBJECT *policy_oid; in policy_node_match()
Dv3_extku.c97 ASN1_EX_TEMPLATE_TYPE(ASN1_TFLG_SEQUENCE_OF, 0, EXTENDED_KEY_USAGE, ASN1_OBJECT) in ASN1_ITEM_TEMPLATE()
108 ASN1_OBJECT *obj; in ASN1_ITEM_TEMPLATE()
123 ASN1_OBJECT *objtmp; in v2i_EXTENDED_KEY_USAGE()
Dv3_pmaps.c85 ASN1_SIMPLE(POLICY_MAPPING, issuerDomainPolicy, ASN1_OBJECT),
86 ASN1_SIMPLE(POLICY_MAPPING, subjectDomainPolicy, ASN1_OBJECT)
120 ASN1_OBJECT *obj1, *obj2; in v2i_POLICY_MAPPINGS()
Dv3_genn.c67 ASN1_SIMPLE(OTHERNAME, type_id, ASN1_OBJECT),
92 ASN1_IMP(GENERAL_NAME, d.registeredID, ASN1_OBJECT, GEN_RID)
229 ASN1_OBJECT *oid, ASN1_TYPE *value) in GENERAL_NAME_set0_othername()
242 ASN1_OBJECT **poid, ASN1_TYPE **pvalue) in GENERAL_NAME_get0_otherName()
Dpcy_tree.c87 STACK_OF(ASN1_OBJECT) *pset = node->data->expected_policy_set; in expected_print()
88 ASN1_OBJECT *oid; in expected_print()
381 const ASN1_OBJECT *id, in tree_add_unmatched()
428 STACK_OF(ASN1_OBJECT) *expset = node->data->expected_policy_set; in tree_link_unmatched()
434 ASN1_OBJECT *oid = sk_ASN1_OBJECT_value(expset, i); in tree_link_unmatched()
637 STACK_OF(ASN1_OBJECT) *policy_oids, in tree_calculate_user_set()
642 ASN1_OBJECT *oid; in tree_calculate_user_set()
773 STACK_OF(ASN1_OBJECT) *policy_oids, in X509_policy_check()
Dpcy_data.c88 const ASN1_OBJECT *cid, int crit) in policy_data_new()
91 ASN1_OBJECT *id; in policy_data_new()
Dv3_cpols.c102 ASN1_SIMPLE(POLICYINFO, policyid, ASN1_OBJECT),
116 ASN1_SIMPLE(POLICYQUALINFO, pqualid, ASN1_OBJECT),
142 ASN1_OBJECT *pobj;
215 ASN1_OBJECT *pobj; in policy_section()
230 qual->pqualid = (ASN1_OBJECT*) OBJ_nid2obj(NID_id_qt_cps); in policy_section()
296 qual->pqualid = (ASN1_OBJECT *) OBJ_nid2obj(NID_id_qt_unotice); in notice_section()
/external/boringssl/src/crypto/x509/
Dx509name.c69 const ASN1_OBJECT *obj; in X509_NAME_get_text_by_NID()
76 int X509_NAME_get_text_by_OBJ(X509_NAME *name, const ASN1_OBJECT *obj, char *buf, in X509_NAME_get_text_by_OBJ()
100 const ASN1_OBJECT *obj; in X509_NAME_get_index_by_NID()
108 int X509_NAME_get_index_by_OBJ(X509_NAME *name, const ASN1_OBJECT *obj, in X509_NAME_get_index_by_OBJ()
172 int X509_NAME_add_entry_by_OBJ(X509_NAME *name, ASN1_OBJECT *obj, int type, in X509_NAME_add_entry_by_OBJ()
276 ASN1_OBJECT *obj; in X509_NAME_ENTRY_create_by_txt()
294 const ASN1_OBJECT *obj = OBJ_nid2obj(nid); in X509_NAME_ENTRY_create_by_NID()
304 const ASN1_OBJECT *obj, int type, const unsigned char *bytes, int len) in X509_NAME_ENTRY_create_by_OBJ()
329 int X509_NAME_ENTRY_set_object(X509_NAME_ENTRY *ne, const ASN1_OBJECT *obj) in X509_NAME_ENTRY_set_object()
364 ASN1_OBJECT *X509_NAME_ENTRY_get_object(X509_NAME_ENTRY *ne) in X509_NAME_ENTRY_get_object()
Dx_x509a.c72 ASN1_SEQUENCE_OF_OPT(X509_CERT_AUX, trust, ASN1_OBJECT),
73 ASN1_IMP_SEQUENCE_OF_OPT(X509_CERT_AUX, reject, ASN1_OBJECT, 0),
134 int X509_add1_trust_object(X509 *x, ASN1_OBJECT *obj) in X509_add1_trust_object()
136 ASN1_OBJECT *objtmp = OBJ_dup(obj); in X509_add1_trust_object()
155 int X509_add1_reject_object(X509 *x, ASN1_OBJECT *obj) in X509_add1_reject_object()
157 ASN1_OBJECT *objtmp = OBJ_dup(obj); in X509_add1_reject_object()
Dx509_att.c74 const ASN1_OBJECT *obj; in X509at_get_attr_by_NID()
81 int X509at_get_attr_by_OBJ(const STACK_OF(X509_ATTRIBUTE) *sk, const ASN1_OBJECT *obj, in X509at_get_attr_by_OBJ()
155 const ASN1_OBJECT *obj, int type, in STACK_OF()
194 ASN1_OBJECT *obj, int lastpos, int type) in X509at_get0_data_by_OBJ()
212 const ASN1_OBJECT *obj; in X509_ATTRIBUTE_create_by_NID()
224 const ASN1_OBJECT *obj, int atrtype, const void *data, int len) in X509_ATTRIBUTE_create_by_OBJ()
255 ASN1_OBJECT *obj; in X509_ATTRIBUTE_create_by_txt()
270 int X509_ATTRIBUTE_set1_object(X509_ATTRIBUTE *attr, const ASN1_OBJECT *obj) in X509_ATTRIBUTE_set1_object()
328 ASN1_OBJECT *X509_ATTRIBUTE_get0_object(X509_ATTRIBUTE *attr) in X509_ATTRIBUTE_get0_object()
Dx509_v3.c75 const ASN1_OBJECT *obj; in X509v3_get_ext_by_NID()
82 int X509v3_get_ext_by_OBJ(const STACK_OF(X509_EXTENSION) *sk, const ASN1_OBJECT *obj, in X509v3_get_ext_by_OBJ()
184 const ASN1_OBJECT *obj; in X509_EXTENSION_create_by_NID()
198 const ASN1_OBJECT *obj, int crit, ASN1_OCTET_STRING *data) in X509_EXTENSION_create_by_OBJ()
228 int X509_EXTENSION_set_object(X509_EXTENSION *ex, const ASN1_OBJECT *obj) in X509_EXTENSION_set_object()
254 ASN1_OBJECT *X509_EXTENSION_get_object(X509_EXTENSION *ex) in X509_EXTENSION_get_object()
Dx_algor.c64 ASN1_SIMPLE(X509_ALGOR, algorithm, ASN1_OBJECT),
78 int X509_ALGOR_set0(X509_ALGOR *alg, const ASN1_OBJECT *aobj, int ptype, void *pval)
93 alg->algorithm = (ASN1_OBJECT*) aobj;
110 void X509_ALGOR_get0(ASN1_OBJECT **paobj, int *pptype, void **ppval, in X509_ALGOR_get0()
Dx_attrib.c89 ASN1_SIMPLE(X509_ATTRIBUTE, object, ASN1_OBJECT),
105 ret->object=(ASN1_OBJECT*) OBJ_nid2obj(nid);
Dx509_ext.c76 int X509_CRL_get_ext_by_OBJ(X509_CRL *x, ASN1_OBJECT *obj, int lastpos) in X509_CRL_get_ext_by_OBJ()
122 int X509_get_ext_by_OBJ(X509 *x, ASN1_OBJECT *obj, int lastpos) in X509_get_ext_by_OBJ()
169 int X509_REVOKED_get_ext_by_OBJ(X509_REVOKED *x, ASN1_OBJECT *obj, in X509_REVOKED_get_ext_by_OBJ()
Dx509.c63 int PKCS8_pkey_set0(PKCS8_PRIV_KEY_INFO *priv, ASN1_OBJECT *aobj, int version, in PKCS8_pkey_set0()
102 int PKCS8_pkey_get0(ASN1_OBJECT **ppkalg, const uint8_t **pk, int *ppklen, in PKCS8_pkey_get0()
/external/wpa_supplicant_8/hs20/client/
Dest.c210 ASN1_OBJECT *type;
211 STACK_OF(ASN1_OBJECT) *values;
217 ASN1_OBJECT *oid;
228 ASN1_SIMPLE(Attribute, type, ASN1_OBJECT),
229 ASN1_SET_OF(Attribute, values, ASN1_OBJECT)
233 ASN1_SIMPLE(AttrOrOID, d.oid, ASN1_OBJECT),
244 static void add_csrattrs_oid(struct hs20_osu_client *ctx, ASN1_OBJECT *oid, in add_csrattrs_oid()
268 STACK_OF(ASN1_OBJECT) *values, in add_csrattrs_ext_req()
276 ASN1_OBJECT *oid = sk_ASN1_OBJECT_value(values, i); in add_csrattrs_ext_req()
318 ASN1_OBJECT *oid = sk_ASN1_OBJECT_value(attr->values, i); in add_csrattrs_attr()
/external/boringssl/src/crypto/pkcs8/
Dp5_pbev2.c125 const ASN1_OBJECT *obj; in PKCS5_pbe2_set_iv()
139 scheme->algorithm = (ASN1_OBJECT*) obj; in PKCS5_pbe2_set_iv()
193 ret->algorithm = (ASN1_OBJECT*) OBJ_nid2obj(NID_pbes2); in PKCS5_pbe2_set_iv()
284 keyfunc->algorithm = (ASN1_OBJECT*) OBJ_nid2obj(NID_id_pbkdf2); in PKCS5_pbkdf2_set()

123