/openssl/test/ |
H A D | params_test.c | 91 BN_free(obj->p3); in cleanup_object() 92 obj->p3 = NULL; in cleanup_object() 94 obj->p4 = NULL; in cleanup_object() 95 OPENSSL_free(obj); in cleanup_object() 102 if (!TEST_ptr(obj = OPENSSL_zalloc(sizeof(*obj)))) in init_object() 114 return obj; in init_object() 117 obj = NULL; in init_object() 148 obj->p4_l = strlen(obj->p4); in raw_set_params() 161 obj->p5_l = strlen(obj->p5); in raw_set_params() 233 obj->p5_l = strlen(obj->p5); in api_set_params() [all …]
|
H A D | exdatatest.c | 136 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 D | evp_fetch_prov_test.c | 214 const ASN1_OBJECT *obj; in test_explicit_EVP_MD_fetch_by_X509_ALGOR() local 220 X509_ALGOR_get0(&obj, NULL, NULL, algor); in test_explicit_EVP_MD_fetch_by_X509_ALGOR() 223 if (!TEST_int_gt(OBJ_obj2txt(id, sizeof(id), obj, 0), 0)) in test_explicit_EVP_MD_fetch_by_X509_ALGOR() 227 if (!TEST_int_gt(OBJ_obj2txt(id, sizeof(id), obj, 1), 0)) in test_explicit_EVP_MD_fetch_by_X509_ALGOR() 330 const ASN1_OBJECT *obj; in test_explicit_EVP_CIPHER_fetch_by_X509_ALGOR() local 336 X509_ALGOR_get0(&obj, NULL, NULL, algor); in test_explicit_EVP_CIPHER_fetch_by_X509_ALGOR() 339 if (!TEST_int_gt(OBJ_obj2txt(id, sizeof(id), obj, 0), 0)) in test_explicit_EVP_CIPHER_fetch_by_X509_ALGOR() 343 if (!TEST_int_gt(OBJ_obj2txt(id, sizeof(id), obj, 1), 0)) in test_explicit_EVP_CIPHER_fetch_by_X509_ALGOR()
|
H A D | asn1_decode_test.c | 206 ASN1_OBJECT *obj; in test_reuse_asn1_object() local 211 if (!TEST_ptr(obj = ASN1_OBJECT_create(NID_undef, cn_der, sizeof(cn_der), in test_reuse_asn1_object() 215 if (!TEST_ptr(d2i_ASN1_OBJECT(&obj, &p, sizeof(oid_der)))) in test_reuse_asn1_object() 219 ASN1_OBJECT_free(obj); in test_reuse_asn1_object()
|
/openssl/crypto/x509/ |
H A D | x509name.c | 22 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() 59 ASN1_OBJECT *obj; in X509_NAME_get_index_by_NID() local 61 obj = OBJ_nid2obj(nid); in X509_NAME_get_index_by_NID() 62 if (obj == NULL) in X509_NAME_get_index_by_NID() 244 ASN1_OBJECT *obj; in X509_NAME_ENTRY_create_by_txt() local 248 if (obj == NULL) { in X509_NAME_ENTRY_create_by_txt() 254 ASN1_OBJECT_free(obj); in X509_NAME_ENTRY_create_by_txt() 263 ASN1_OBJECT *obj; in X509_NAME_ENTRY_create_by_NID() local [all …]
|
H A D | x509_v3.c | 30 ASN1_OBJECT *obj; in X509v3_get_ext_by_NID() local 32 obj = OBJ_nid2obj(nid); in X509v3_get_ext_by_NID() 33 if (obj == NULL) in X509v3_get_ext_by_NID() 52 if (OBJ_cmp(ex->object, obj) == 0) in X509v3_get_ext_by_OBJ() 140 ASN1_OBJECT *obj; in X509_EXTENSION_create_by_NID() local 143 obj = OBJ_nid2obj(nid); in X509_EXTENSION_create_by_NID() 144 if (obj == NULL) { in X509_EXTENSION_create_by_NID() 150 ASN1_OBJECT_free(obj); in X509_EXTENSION_create_by_NID() 168 if (!X509_EXTENSION_set_object(ret, obj)) in X509_EXTENSION_create_by_OBJ() 186 if ((ex == NULL) || (obj == NULL)) in X509_EXTENSION_set_object() [all …]
|
H A D | x509_att.c | 29 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() 204 ASN1_OBJECT *obj = OBJ_nid2obj(nid); in X509_ATTRIBUTE_create_by_NID() local 207 if (obj == NULL) { in X509_ATTRIBUTE_create_by_NID() 213 ASN1_OBJECT_free(obj); in X509_ATTRIBUTE_create_by_NID() 233 if (!X509_ATTRIBUTE_set1_object(ret, obj)) in X509_ATTRIBUTE_create_by_OBJ() 255 if (obj == NULL) { in X509_ATTRIBUTE_create_by_txt() 261 ASN1_OBJECT_free(obj); in X509_ATTRIBUTE_create_by_txt() 267 if (attr == NULL || obj == NULL) { in X509_ATTRIBUTE_set1_object() [all …]
|
H A D | x509_lu.c | 371 X509_OBJECT *obj; in x509_store_add() local 377 if (obj == NULL) in x509_store_add() 498 a->data.x509 = obj; in X509_OBJECT_set1_X509() 509 a->data.crl = obj; in X509_OBJECT_set1_X509_CRL() 608 X509_OBJECT *obj; in STACK_OF() local 648 x = obj->data.x509; in STACK_OF() 694 x = obj->data.crl; in STACK_OF() 715 X509_OBJECT *obj; in X509_OBJECT_retrieve_match() local 734 return obj; in X509_OBJECT_retrieve_match() 756 if (obj == NULL) in X509_STORE_CTX_get1_issuer() [all …]
|
H A D | x509_ext.c | 29 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 D | x_x509a.c | 103 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 D | v3_prn.c | 154 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()
|
H A D | v3_extku.c | 59 ASN1_OBJECT *obj; in ASN1_ITEM_TEMPLATE() local 62 obj = sk_ASN1_OBJECT_value(eku, i); in ASN1_ITEM_TEMPLATE() 63 i2t_ASN1_OBJECT(obj_tmp, 80, obj); in ASN1_ITEM_TEMPLATE()
|
/openssl/demos/bio/ |
H A D | descrip.mms | 26 .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 D | evp_utils.c | 27 #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/crypto/objects/ |
H A D | obj_dat.pl | 54 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 D | obj_dat.c | 37 ASN1_OBJECT *obj; member 127 a = ca->obj; in added_obj_hash() 161 a = ca->obj; in added_obj_cmp() 162 b = cb->obj; in added_obj_cmp() 193 a->obj->nid = 0; in cleanup1_doall() 200 a->obj->nid++; in cleanup2_doall() 310 ad.obj = &ob; in OBJ_nid2obj() 607 ad.obj = &o; in OBJ_ln2nid() 634 ad.obj = &o; in OBJ_sn2nid() 780 if (obj == NULL) in OBJ_length() [all …]
|
H A D | objects.pl | 68 $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/Configurations/ |
H A D | gentemplate.pm | 206 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/ts/ |
H A D | ts_lib.c | 38 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 D | cms_att.c | 79 int CMS_signed_get_attr_by_OBJ(const CMS_SignerInfo *si, const ASN1_OBJECT *obj, in CMS_signed_get_attr_by_OBJ() argument 82 return X509at_get_attr_by_OBJ(si->signedAttrs, obj, lastpos); in CMS_signed_get_attr_by_OBJ() 103 const ASN1_OBJECT *obj, int type, in CMS_signed_add1_attr_by_OBJ() argument 106 if (X509at_add1_attr_by_OBJ(&si->signedAttrs, obj, type, bytes, len)) in CMS_signed_add1_attr_by_OBJ() 147 const ASN1_OBJECT *obj, int lastpos) in CMS_unsigned_get_attr_by_OBJ() argument 149 return X509at_get_attr_by_OBJ(si->unsignedAttrs, obj, lastpos); in CMS_unsigned_get_attr_by_OBJ() 170 const ASN1_OBJECT *obj, int type, in CMS_unsigned_add1_attr_by_OBJ() argument 173 if (X509at_add1_attr_by_OBJ(&si->unsignedAttrs, obj, type, bytes, len)) in CMS_unsigned_add1_attr_by_OBJ()
|
/openssl/doc/man3/ |
H A D | ASN1_item_sign.pod | 147 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 D | X509_EXTENSION_set_object.pod | 13 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.
|
/openssl/external/perl/Text-Template-1.56/t/ |
H A D | taint.t | 37 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 D | ex_data.c | 211 int ossl_crypto_new_ex_data_ex(OSSL_LIB_CTX *ctx, int class_index, void *obj, in ossl_crypto_new_ex_data_ex() argument 249 storage[i]->new_func(obj, ptr, ad, i, in ossl_crypto_new_ex_data_ex() 258 int CRYPTO_new_ex_data(int class_index, void *obj, CRYPTO_EX_DATA *ad) in CRYPTO_new_ex_data() argument 260 return ossl_crypto_new_ex_data_ex(NULL, class_index, obj, ad); in CRYPTO_new_ex_data() 363 void CRYPTO_free_ex_data(int class_index, void *obj, CRYPTO_EX_DATA *ad) in CRYPTO_free_ex_data() argument 402 f->free_func(obj, ptr, ad, storage[i].index, f->argl, f->argp); in CRYPTO_free_ex_data() 419 int CRYPTO_alloc_ex_data(int class_index, void *obj, CRYPTO_EX_DATA *ad, in CRYPTO_alloc_ex_data() argument 429 return ossl_crypto_alloc_ex_data_intern(class_index, obj, ad, idx); in CRYPTO_alloc_ex_data() 432 int ossl_crypto_alloc_ex_data_intern(int class_index, void *obj, in ossl_crypto_alloc_ex_data_intern() argument 456 f->new_func(obj, NULL, ad, idx, f->argl, f->argp); in ossl_crypto_alloc_ex_data_intern()
|
/openssl/crypto/pkcs7/ |
H A D | pk7_lib.c | 112 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 …]
|