Home
last modified time | relevance | path

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

12345

/openssl/test/
H A Dparams_test.c92 BN_free(obj->p3); in cleanup_object()
93 obj->p3 = NULL; in cleanup_object()
95 obj->p4 = NULL; in cleanup_object()
96 OPENSSL_free(obj); in cleanup_object()
103 if (!TEST_ptr(obj = OPENSSL_zalloc(sizeof(*obj)))) in init_object()
115 return obj; in init_object()
118 obj = NULL; in init_object()
149 obj->p4_l = strlen(obj->p4); in raw_set_params()
162 obj->p5_l = strlen(obj->p5); in raw_set_params()
234 obj->p5_l = strlen(obj->p5); in api_set_params()
[all …]
H A Dexdatatest.c136 MYOBJ *obj = OPENSSL_malloc(sizeof(*obj)); in MYOBJ_new() local
138 if (obj != NULL) { in MYOBJ_new()
139 obj->id = ++count; in MYOBJ_new()
140 obj->st = CRYPTO_new_ex_data(CRYPTO_EX_INDEX_APP, obj, &obj->ex_data); in MYOBJ_new()
142 return obj; in MYOBJ_new()
147 obj->st = CRYPTO_set_ex_data(&obj->ex_data, saved_idx, cp); in MYOBJ_sethello()
204 if (obj != NULL) { in MYOBJ_free()
205 CRYPTO_free_ex_data(CRYPTO_EX_INDEX_APP, obj, &obj->ex_data); in MYOBJ_free()
214 if (obj != NULL) in MYOBJ_dup()
215 obj->st |= CRYPTO_dup_ex_data(CRYPTO_EX_INDEX_APP, &obj->ex_data, in MYOBJ_dup()
[all …]
H A Devp_fetch_prov_test.c235 const ASN1_OBJECT *obj; in test_explicit_EVP_MD_fetch_by_X509_ALGOR() local
241 X509_ALGOR_get0(&obj, NULL, NULL, algor); in test_explicit_EVP_MD_fetch_by_X509_ALGOR()
244 if (!TEST_int_gt(OBJ_obj2txt(id, sizeof(id), obj, 0), 0)) in test_explicit_EVP_MD_fetch_by_X509_ALGOR()
248 if (!TEST_int_gt(OBJ_obj2txt(id, sizeof(id), obj, 1), 0)) in test_explicit_EVP_MD_fetch_by_X509_ALGOR()
351 const ASN1_OBJECT *obj; in test_explicit_EVP_CIPHER_fetch_by_X509_ALGOR() local
357 X509_ALGOR_get0(&obj, NULL, NULL, algor); in test_explicit_EVP_CIPHER_fetch_by_X509_ALGOR()
360 if (!TEST_int_gt(OBJ_obj2txt(id, sizeof(id), obj, 0), 0)) in test_explicit_EVP_CIPHER_fetch_by_X509_ALGOR()
364 if (!TEST_int_gt(OBJ_obj2txt(id, sizeof(id), obj, 1), 0)) in test_explicit_EVP_CIPHER_fetch_by_X509_ALGOR()
/openssl/crypto/x509/
H 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 …]
H 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 …]
H 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 …]
H A Dx509_lu.c390 X509_OBJECT *obj; in x509_store_add() local
396 if (obj == NULL) in x509_store_add()
515 a->data.x509 = obj; in X509_OBJECT_set1_X509()
526 a->data.crl = obj; in X509_OBJECT_set1_X509_CRL()
594 ret->type = obj->type; in x509_object_dup()
595 ret->data = obj->data; in x509_object_dup()
662 X509_OBJECT *obj; in STACK_OF() local
712 X509_OBJECT *obj; in STACK_OF() local
735 x = obj->data.crl; in STACK_OF()
756 X509_OBJECT *obj; in X509_OBJECT_retrieve_match() local
[all …]
H 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()
H 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()
H 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()
/openssl/demos/bio/
H A Ddescrip.mms26 .obj.exe :
32 client-arg.exe : client-arg.obj
34 saccept.exe : saccept.obj
35 sconnect.exe : sconnect.obj
36 server-arg.exe : server-arg.obj
41 client-arg.obj : client-arg.c
42 client-conf.obj : client-conf.c
43 saccept.obj : saccept.c
44 sconnect.obj : sconnect.c
45 server-arg.obj : server-arg.c
[all …]
/openssl/crypto/evp/
H 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); \
/openssl/Configurations/
H A Dgentemplate.pm206 my $obj = shift;
221 incs => [ defined $obj ? @{$self->{info}->{includes}->{$obj} // []} : (),
223 defs => [ defined $obj ? @{$self->{info}->{defines}->{$obj} // []} : (),
228 $self->dogenerate($_, $obj, $bin, %opts);
255 my $obj = shift;
256 return "" if $cache{$obj};
259 if (@{$self->{info}->{sources}->{$obj} // []}) {
282 obj => $obj, product => $bin,
286 foreach ((@{$self->{info}->{sources}->{$obj}},
288 $self->dogenerate($_, $obj, $bin, %opts);
[all …]
/openssl/crypto/objects/
H 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 …]
H A Dobj_dat.c37 ASN1_OBJECT *obj; member
128 a = ca->obj; in added_obj_hash()
162 a = ca->obj; in added_obj_cmp()
163 b = cb->obj; in added_obj_cmp()
194 a->obj->nid = 0; in cleanup1_doall()
201 a->obj->nid++; in cleanup2_doall()
340 ad.obj = &ob; in OBJ_nid2obj()
654 ad.obj = &o; in OBJ_ln2nid()
681 ad.obj = &o; in OBJ_sn2nid()
845 if (obj == NULL) in OBJ_length()
[all …]
H 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]}))
/openssl/doc/man3/
H A DECDSA_SIG_new.pod66 ECDSA_SIG *obj;
71 if (obj == NULL)
74 r = ECDSA_SIG_get0_r(obj);
75 s = ECDSA_SIG_get0_s(obj);
85 ECDSA_SIG_free(obj);
90 ECDSA_SIG *obj = NULL;
95 obj = ECDSA_SIG_new();
96 if (obj == NULL)
103 if (!ECDSA_SIG_set0(obj, rbn, sbn))
108 signaturelen = i2d_ECDSA_SIG(obj, &signature);
[all …]
H A DASN1_item_sign.pod147 MyObject *obj = NULL, *loaded_obj = NULL;
153 obj = MyObject_new();
154 if (obj == NULL)
156 if (!ASN1_INTEGER_set(obj->info.version, version))
167 * obj->info is the 'MySignInfoObject' object that will be
169 * obj->signature will contain the output signature.
174 len = ASN1_item_sign_ctx(it, &obj->sig_alg, &obj->info.sig_alg,
175 obj->signature, &obj->info, sctx);
177 || X509_ALGOR_cmp(&obj->sig_alg, &obj->info.sig_alg) != 0)
181 len = i2d_MyObject(obj, &obj_der);
[all …]
H A DX509_EXTENSION_set_object.pod13 int X509_EXTENSION_set_object(X509_EXTENSION *ex, const ASN1_OBJECT *obj);
21 const ASN1_OBJECT *obj, int crit,
30 X509_EXTENSION_set_object() sets the extension type of B<ex> to B<obj>. The
31 B<obj> pointer is duplicated internally so B<obj> should be freed up after use.
46 except it creates and extension using B<obj> instead of a NID.
H A DX509_ATTRIBUTE.pod28 const ASN1_OBJECT *obj, int lastpos);
34 **x, const ASN1_OBJECT *obj,
48 const ASN1_OBJECT *obj, int lastpos, int type);
54 const ASN1_OBJECT *obj,
130 will occur. If I<*x> is NULL then a new attribute list is created. If I<obj>
141 X509_ATTRIBUTE_set1_object() assigns a B<ASN1_OBJECT> I<obj>
143 it is freed. An error occurs if either I<attr> or I<obj> are NULL, or if
144 the passed in I<obj> cannot be duplicated.
162 X509_ATTRIBUTE_set1_data() to assign a new I<obj> with type I<atrtype> and
192 that matches the I<obj> starting at index I<lastpos> and returns the data
[all …]
/openssl/crypto/ts/
H 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()
/openssl/crypto/cms/
H 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()
/openssl/external/perl/Text-Template-1.56/t/
H A Dtaint.t37 my $obj = Text::Template->new(@_);
38 eval { $obj->fill_in() };
48 my $obj = Text::Template->new(@_);
49 eval { $obj->fill_in() };
/openssl/crypto/
H 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()
/openssl/crypto/pkcs7/
H A Dpk7_lib.c112 ASN1_OBJECT *obj; in PKCS7_set_type() local
121 p7->type = obj; in PKCS7_set_type()
131 p7->type = obj; in PKCS7_set_type()
136 p7->type = obj; in PKCS7_set_type()
146 p7->type = obj; in PKCS7_set_type()
155 p7->type = obj; in PKCS7_set_type()
165 p7->type = obj; in PKCS7_set_type()
191 ASN1_OBJECT *obj; in PKCS7_add_signer() local
211 obj = psi->digest_alg->algorithm; in PKCS7_add_signer()
216 if (OBJ_cmp(obj, alg->algorithm) == 0) { in PKCS7_add_signer()
[all …]

Completed in 111 milliseconds

12345