Home
last modified time | relevance | path

Searched refs:obj (Results 1 – 25 of 41) sorted by relevance

12

/crypto/x509/
A Dx509name.c22 ASN1_OBJECT *obj; in X509_NAME_get_text_by_NID() local
24 obj = OBJ_nid2obj(nid); in X509_NAME_get_text_by_NID()
25 if (obj == NULL) in X509_NAME_get_text_by_NID()
62 ASN1_OBJECT *obj; in X509_NAME_get_index_by_NID() local
64 obj = OBJ_nid2obj(nid); in X509_NAME_get_index_by_NID()
65 if (obj == NULL) in X509_NAME_get_index_by_NID()
247 ASN1_OBJECT *obj; in X509_NAME_ENTRY_create_by_txt() local
251 if (obj == NULL) { in X509_NAME_ENTRY_create_by_txt()
257 ASN1_OBJECT_free(obj); in X509_NAME_ENTRY_create_by_txt()
266 ASN1_OBJECT *obj; in X509_NAME_ENTRY_create_by_NID() local
[all …]
A Dx509_v3.c33 ASN1_OBJECT *obj; in X509v3_get_ext_by_NID() local
35 obj = OBJ_nid2obj(nid); in X509v3_get_ext_by_NID()
36 if (obj == NULL) in X509v3_get_ext_by_NID()
55 if (OBJ_cmp(ex->object, obj) == 0) in X509v3_get_ext_by_OBJ()
179 ASN1_OBJECT *obj; in X509_EXTENSION_create_by_NID() local
182 obj = OBJ_nid2obj(nid); in X509_EXTENSION_create_by_NID()
183 if (obj == NULL) { in X509_EXTENSION_create_by_NID()
189 ASN1_OBJECT_free(obj); in X509_EXTENSION_create_by_NID()
207 if (!X509_EXTENSION_set_object(ret, obj)) in X509_EXTENSION_create_by_OBJ()
225 if ((ex == NULL) || (obj == NULL)) in X509_EXTENSION_set_object()
[all …]
A Dx509_att.c29 const ASN1_OBJECT *obj = OBJ_nid2obj(nid); in X509at_get_attr_by_NID() local
31 if (obj == NULL) in X509at_get_attr_by_NID()
50 if (OBJ_cmp(ex->object, obj) == 0) in X509at_get_attr_by_OBJ()
157 if (x == NULL || obj == NULL) { in STACK_OF()
272 ASN1_OBJECT *obj = OBJ_nid2obj(nid); in X509_ATTRIBUTE_create_by_NID() local
275 if (obj == NULL) { in X509_ATTRIBUTE_create_by_NID()
281 ASN1_OBJECT_free(obj); in X509_ATTRIBUTE_create_by_NID()
323 if (obj == NULL) { in X509_ATTRIBUTE_create_by_txt()
329 ASN1_OBJECT_free(obj); in X509_ATTRIBUTE_create_by_txt()
335 if (attr == NULL || obj == NULL) { in X509_ATTRIBUTE_set1_object()
[all …]
A Dx509_lu.c388 X509_OBJECT *obj; in x509_store_add() local
394 if (obj == NULL) in x509_store_add()
513 a->data.x509 = obj; in X509_OBJECT_set1_X509()
524 a->data.crl = obj; in X509_OBJECT_set1_X509_CRL()
592 ret->type = obj->type; in x509_object_dup()
593 ret->data = obj->data; in x509_object_dup()
660 X509_OBJECT *obj; in STACK_OF() local
710 X509_OBJECT *obj; in STACK_OF() local
733 x = obj->data.crl; in STACK_OF()
754 X509_OBJECT *obj; in X509_OBJECT_retrieve_match() local
[all …]
A Dx509_ext.c29 int X509_CRL_get_ext_by_OBJ(const X509_CRL *x, const ASN1_OBJECT *obj, in X509_CRL_get_ext_by_OBJ() argument
32 return X509v3_get_ext_by_OBJ(x->crl.extensions, obj, lastpos); in X509_CRL_get_ext_by_OBJ()
76 int X509_get_ext_by_OBJ(const X509 *x, const ASN1_OBJECT *obj, int lastpos) in X509_get_ext_by_OBJ() argument
78 return X509v3_get_ext_by_OBJ(x->cert_info.extensions, obj, lastpos); in X509_get_ext_by_OBJ()
124 int X509_REVOKED_get_ext_by_OBJ(const X509_REVOKED *x, const ASN1_OBJECT *obj, in X509_REVOKED_get_ext_by_OBJ() argument
127 return X509v3_get_ext_by_OBJ(x->extensions, obj, lastpos); in X509_REVOKED_get_ext_by_OBJ()
A Dx_x509a.c103 int X509_add1_trust_object(X509 *x, const ASN1_OBJECT *obj) in X509_add1_trust_object() argument
107 if (obj) { in X509_add1_trust_object()
108 objtmp = OBJ_dup(obj); in X509_add1_trust_object()
124 int X509_add1_reject_object(X509 *x, const ASN1_OBJECT *obj) in X509_add1_reject_object() argument
130 if ((objtmp = OBJ_dup(obj)) == NULL) in X509_add1_reject_object()
A Dv3_prn.c154 ASN1_OBJECT *obj; in X509V3_extensions_print() local
158 obj = X509_EXTENSION_get_object(ex); in X509V3_extensions_print()
160 && OBJ_obj2nid(obj) != NID_subject_key_identifier in X509V3_extensions_print()
161 && OBJ_obj2nid(obj) != NID_authority_key_identifier) in X509V3_extensions_print()
165 i2a_ASN1_OBJECT(bp, obj); in X509V3_extensions_print()
A Dv3_extku.c83 ASN1_OBJECT *obj; in ASN1_ITEM_TEMPLATE() local
86 obj = sk_ASN1_OBJECT_value(eku, i); in ASN1_ITEM_TEMPLATE()
87 i2t_ASN1_OBJECT(obj_tmp, 80, obj); in ASN1_ITEM_TEMPLATE()
A Dx509_trust.c257 ASN1_OBJECT *obj = sk_ASN1_OBJECT_value(ax->reject, i); in obj_trust() local
258 int nid = OBJ_obj2nid(obj); in obj_trust()
268 ASN1_OBJECT *obj = sk_ASN1_OBJECT_value(ax->trust, i); in obj_trust() local
269 int nid = OBJ_obj2nid(obj); in obj_trust()
A Dv3_conf.c244 ASN1_OBJECT *obj = NULL; in v3_generic_extension() local
248 if ((obj = OBJ_txt2obj(ext, 0)) == NULL) { in v3_generic_extension()
274 extension = X509_EXTENSION_create_by_OBJ(NULL, obj, crit, oct); in v3_generic_extension()
277 ASN1_OBJECT_free(obj); in v3_generic_extension()
301 ASN1_OBJECT *obj; in delete_ext() local
303 obj = X509_EXTENSION_get_object(dext); in delete_ext()
304 while ((idx = X509v3_get_ext_by_OBJ(sk, obj, -1)) >= 0) in delete_ext()
A Dt_req.c172 ASN1_OBJECT *obj; in X509_REQ_print_ex() local
178 obj = X509_EXTENSION_get_object(ex); in X509_REQ_print_ex()
179 if (i2a_ASN1_OBJECT(bp, obj) <= 0) in X509_REQ_print_ex()
/crypto/evp/
A Devp_utils.c27 #define PARAM_CHECK(obj, func, errfunc) \ argument
28 if (obj == NULL) \
30 if (obj->prov == NULL) \
32 if (obj->func == NULL) { \
38 int name (const type *obj, OSSL_PARAM params[]) \
40 PARAM_CHECK(obj, func, err) \
41 return obj->func(params); \
45 int name (const type *obj, void *algctx, OSSL_PARAM params[]) \
47 PARAM_CHECK(obj, func, err) \
48 return obj->func(algctx, params); \
A Devp_pkey.c200 int EVP_PKEY_get_attr_by_OBJ(const EVP_PKEY *key, const ASN1_OBJECT *obj, in EVP_PKEY_get_attr_by_OBJ() argument
203 return X509at_get_attr_by_OBJ(key->attributes, obj, lastpos); in EVP_PKEY_get_attr_by_OBJ()
224 const ASN1_OBJECT *obj, int type, in EVP_PKEY_add1_attr_by_OBJ() argument
227 if (X509at_add1_attr_by_OBJ(&key->attributes, obj, type, bytes, len)) in EVP_PKEY_add1_attr_by_OBJ()
/crypto/objects/
A Dobj_dat.pl54 my %obj;
83 $obj{$1} = $v;
130 if (defined $obj{$nid{$i}} && $objd{$obj{$nid{$i}}} =~ /,/) {
131 my $v = $objd{$obj{$nid{$i}}};
142 $obj_der{$obj{$nid{$i}}} = $z;
143 $obj_len{$obj{$nid{$i}}} = $length;
213 my $A = $obj_len{$obj{$nid{$a}}};
214 my $B = $obj_len{$obj{$nid{$b}}};
218 $A = $obj_der{$obj{$nid{$a}}};
219 $B = $obj_der{$obj{$nid{$b}}};
[all …]
A Dobj_dat.c37 ASN1_OBJECT *obj; member
132 a = ca->obj; in added_obj_hash()
166 a = ca->obj; in added_obj_cmp()
167 b = cb->obj; in added_obj_cmp()
198 a->obj->nid = 0; in cleanup1_doall()
205 a->obj->nid++; in cleanup2_doall()
254 ad.obj = &ob; in OBJ_nid2obj()
564 ad.obj = &o; in OBJ_ln2nid()
589 ad.obj = &o; in OBJ_sn2nid()
745 if (obj == NULL) in OBJ_length()
[all …]
A Dobjects.pl68 $obj{$Cname} = $myoid;
118 $obj{$Cname} = $myoid;
176 print expand("#define OBJ_$Cname\t\t$obj{$Cname}\n") if $obj{$Cname} ne "";
195 if (!defined($obj{$a[0]}))
/crypto/cms/
A Dcms_att.c80 int CMS_signed_get_attr_by_OBJ(const CMS_SignerInfo *si, const ASN1_OBJECT *obj, in CMS_signed_get_attr_by_OBJ() argument
83 return X509at_get_attr_by_OBJ(si->signedAttrs, obj, lastpos); in CMS_signed_get_attr_by_OBJ()
104 const ASN1_OBJECT *obj, int type, in CMS_signed_add1_attr_by_OBJ() argument
107 if (ossl_x509at_add1_attr_by_OBJ(&si->signedAttrs, obj, type, bytes, len)) in CMS_signed_add1_attr_by_OBJ()
149 const ASN1_OBJECT *obj, int lastpos) in CMS_unsigned_get_attr_by_OBJ() argument
151 return X509at_get_attr_by_OBJ(si->unsignedAttrs, obj, lastpos); in CMS_unsigned_get_attr_by_OBJ()
172 const ASN1_OBJECT *obj, int type, in CMS_unsigned_add1_attr_by_OBJ() argument
175 if (ossl_x509at_add1_attr_by_OBJ(&si->unsignedAttrs, obj, type, bytes, len)) in CMS_unsigned_add1_attr_by_OBJ()
A Dcms_ess.c30 ASN1_OBJECT *obj = OBJ_nid2obj(NID_id_smime_aa_receiptRequest); in IMPLEMENT_ASN1_FUNCTIONS() local
34 str = CMS_signed_get0_data_by_OBJ(si, obj, -3, V_ASN1_SEQUENCE); in IMPLEMENT_ASN1_FUNCTIONS()
57 ASN1_OBJECT *obj = OBJ_nid2obj(NID_id_smime_aa_signingCertificate); in ossl_cms_signerinfo_get_signing_cert() local
61 str = CMS_signed_get0_data_by_OBJ(si, obj, -3, V_ASN1_SEQUENCE); in ossl_cms_signerinfo_get_signing_cert()
84 ASN1_OBJECT *obj = OBJ_nid2obj(NID_id_smime_aa_signingCertificateV2); in ossl_cms_signerinfo_get_signing_cert_v2() local
88 str = CMS_signed_get0_data_by_OBJ(si, obj, -3, V_ASN1_SEQUENCE); in ossl_cms_signerinfo_get_signing_cert_v2()
/crypto/ts/
A Dts_lib.c38 int TS_OBJ_print_bio(BIO *bio, const ASN1_OBJECT *obj) in TS_OBJ_print_bio() argument
42 OBJ_obj2txt(obj_txt, sizeof(obj_txt), obj, 0); in TS_OBJ_print_bio()
52 ASN1_OBJECT *obj; in TS_ext_print_bio() local
58 obj = X509_EXTENSION_get_object(ex); in TS_ext_print_bio()
59 if (i2a_ASN1_OBJECT(bio, obj) < 0) in TS_ext_print_bio()
/crypto/
A Dex_data.c219 int ossl_crypto_new_ex_data_ex(OSSL_LIB_CTX *ctx, int class_index, void *obj, in ossl_crypto_new_ex_data_ex() argument
255 storage[i]->new_func(obj, ptr, ad, i, in ossl_crypto_new_ex_data_ex()
264 int CRYPTO_new_ex_data(int class_index, void *obj, CRYPTO_EX_DATA *ad) in CRYPTO_new_ex_data() argument
266 return ossl_crypto_new_ex_data_ex(NULL, class_index, obj, ad); in CRYPTO_new_ex_data()
367 void CRYPTO_free_ex_data(int class_index, void *obj, CRYPTO_EX_DATA *ad) in CRYPTO_free_ex_data() argument
406 f->free_func(obj, ptr, ad, storage[i].index, f->argl, f->argp); in CRYPTO_free_ex_data()
423 int CRYPTO_alloc_ex_data(int class_index, void *obj, CRYPTO_EX_DATA *ad, in CRYPTO_alloc_ex_data() argument
433 return ossl_crypto_alloc_ex_data_intern(class_index, obj, ad, idx); in CRYPTO_alloc_ex_data()
436 int ossl_crypto_alloc_ex_data_intern(int class_index, void *obj, in ossl_crypto_alloc_ex_data_intern() argument
460 f->new_func(obj, NULL, ad, idx, f->argl, f->argp); in ossl_crypto_alloc_ex_data_intern()
/crypto/pkcs7/
A Dpk7_lib.c117 ASN1_OBJECT *obj; in PKCS7_set_type() local
126 p7->type = obj; in PKCS7_set_type()
136 p7->type = obj; in PKCS7_set_type()
141 p7->type = obj; in PKCS7_set_type()
151 p7->type = obj; in PKCS7_set_type()
160 p7->type = obj; in PKCS7_set_type()
170 p7->type = obj; in PKCS7_set_type()
196 ASN1_OBJECT *obj; in PKCS7_add_signer() local
216 obj = psi->digest_alg->algorithm; in PKCS7_add_signer()
221 if (OBJ_cmp(obj, alg->algorithm) == 0) { in PKCS7_add_signer()
[all …]
/crypto/encode_decode/
A Dencoder_pkey.c162 const void *obj; member
184 if (data->obj == NULL) { in encoder_construct_pkey()
201 data->obj = data->constructed_obj; in encoder_construct_pkey()
203 data->obj = pk->keydata; in encoder_construct_pkey()
207 return data->obj; in encoder_construct_pkey()
213 int match = (data->obj == data->constructed_obj); in encoder_destruct_pkey()
223 data->obj = NULL; in encoder_destruct_pkey()
/crypto/ocsp/
A Docsp_ext.c34 int OCSP_REQUEST_get_ext_by_OBJ(OCSP_REQUEST *x, const ASN1_OBJECT *obj, in OCSP_REQUEST_get_ext_by_OBJ() argument
38 (x->tbsRequest.requestExtensions, obj, lastpos)); in OCSP_REQUEST_get_ext_by_OBJ()
87 int OCSP_ONEREQ_get_ext_by_OBJ(OCSP_ONEREQ *x, const ASN1_OBJECT *obj, in OCSP_ONEREQ_get_ext_by_OBJ() argument
90 return X509v3_get_ext_by_OBJ(x->singleRequestExtensions, obj, lastpos); in OCSP_ONEREQ_get_ext_by_OBJ()
139 int OCSP_BASICRESP_get_ext_by_OBJ(OCSP_BASICRESP *x, const ASN1_OBJECT *obj, in OCSP_BASICRESP_get_ext_by_OBJ() argument
143 (x->tbsResponseData.responseExtensions, obj, lastpos)); in OCSP_BASICRESP_get_ext_by_OBJ()
195 int OCSP_SINGLERESP_get_ext_by_OBJ(OCSP_SINGLERESP *x, const ASN1_OBJECT *obj, in OCSP_SINGLERESP_get_ext_by_OBJ() argument
198 return X509v3_get_ext_by_OBJ(x->singleExtensions, obj, lastpos); in OCSP_SINGLERESP_get_ext_by_OBJ()
/crypto/pkcs12/
A Dp12_decr.c180 void *obj, int zbuf, in PKCS12_item_i2d_encrypt_ex() argument
192 inlen = ASN1_item_i2d(obj, &in, it); in PKCS12_item_i2d_encrypt_ex()
215 void *obj, int zbuf) in PKCS12_item_i2d_encrypt() argument
217 return PKCS12_item_i2d_encrypt_ex(algor, it, pass, passlen, obj, zbuf, NULL, NULL); in PKCS12_item_i2d_encrypt()
/crypto/asn1/
A Dasn_pack.c16 ASN1_STRING *ASN1_item_pack(void *obj, const ASN1_ITEM *it, ASN1_STRING **oct) in ASN1_item_pack() argument
31 if ((octmp->length = ASN1_item_i2d(obj, &octmp->data, it)) <= 0) { in ASN1_item_pack()

Completed in 72 milliseconds

12