/openssl/crypto/x509/ |
H A D | v3_san.c | 56 GENERAL_NAME *gen; in STACK_OF() local 86 switch (gen->type) { in STACK_OF() 192 tmp = ossl_ipaddr_to_asc(gen->d.ip->data, gen->d.ip->length); in STACK_OF() 212 switch (gen->type) { in GENERAL_NAME_print() 286 tmp = ossl_ipaddr_to_asc(gen->d.ip->data, gen->d.ip->length); in GENERAL_NAME_print() 340 GENERAL_NAME *gen; in copy_issuer() local 462 gen = NULL; in copy_email() 477 GENERAL_NAME *gen; in v2i_GENERAL_NAMES() local 522 gen = out; in a2i_GENERAL_NAME() 591 return gen; in a2i_GENERAL_NAME() [all …]
|
H A D | v3_ncons.c | 36 static int nc_match(GENERAL_NAME *gen, NAME_CONSTRAINTS *nc); 37 static int nc_match_single(GENERAL_NAME *sub, GENERAL_NAME *gen); 306 r = nc_match(gen, nc); in NAME_CONSTRAINTS_check() 474 static int nc_match(GENERAL_NAME *gen, NAME_CONSTRAINTS *nc) in nc_match() argument 483 int effective_type = ((gen->type == GEN_OTHERNAME) && in nc_match() 503 r = nc_match_single(gen, sub->base); in nc_match() 522 r = nc_match_single(gen, sub->base); in nc_match() 536 switch (gen->type) { in nc_match_single() 548 return nc_dns(gen->d.dNSName, base->d.dNSName); in nc_match_single() 554 return nc_uri(gen->d.uniformResourceIdentifier, in nc_match_single() [all …]
|
H A D | v3_akid.c | 106 GENERAL_NAME *gen = NULL; in v2i_AUTHORITY_KEYID() local 207 || (gen = GENERAL_NAME_new()) == NULL in v2i_AUTHORITY_KEYID() 208 || !sk_GENERAL_NAME_push(gens, gen)) { in v2i_AUTHORITY_KEYID() 212 gen->type = GEN_DIRNAME; in v2i_AUTHORITY_KEYID() 213 gen->d.dirn = isname; in v2i_AUTHORITY_KEYID() 217 gen = NULL; in v2i_AUTHORITY_KEYID() 226 GENERAL_NAME_free(gen); in v2i_AUTHORITY_KEYID()
|
H A D | v3_genn.c | 217 int GENERAL_NAME_set0_othername(GENERAL_NAME *gen, in GENERAL_NAME_set0_othername() argument 227 GENERAL_NAME_set0_value(gen, GEN_OTHERNAME, oth); in GENERAL_NAME_set0_othername() 231 int GENERAL_NAME_get0_otherName(const GENERAL_NAME *gen, in GENERAL_NAME_get0_otherName() argument 234 if (gen->type != GEN_OTHERNAME) in GENERAL_NAME_get0_otherName() 237 *poid = gen->d.otherName->type_id; in GENERAL_NAME_get0_otherName() 239 *pvalue = gen->d.otherName->value; in GENERAL_NAME_get0_otherName()
|
H A D | v3_utl.c | 505 GENERAL_NAME *gen; in STACK_OF() local 518 gen = sk_GENERAL_NAME_value(gens, i); in STACK_OF() 519 if (gen->type != GEN_EMAIL) in STACK_OF() 521 if (!append_ia5(&ret, gen->d.ia5)) in STACK_OF() 915 GENERAL_NAME *gen; in do_x509_check() local 918 gen = sk_GENERAL_NAME_value(gens, i); in do_x509_check() 920 if (OBJ_obj2nid(gen->d.otherName->type_id) == in do_x509_check() 939 if ((gen->type != check_type) && (gen->type != GEN_OTHERNAME)) in do_x509_check() 944 cstr = gen->d.rfc822Name; in do_x509_check() 946 cstr = gen->d.dNSName; in do_x509_check() [all …]
|
H A D | v3_crld.c | 241 GENERAL_NAME *gen = NULL; in v2i_crld() local 264 if ((gen = v2i_GENERAL_NAME(method, ctx, cnf)) == NULL) in v2i_crld() 268 if (!sk_GENERAL_NAME_push(gens, gen)) in v2i_crld() 270 gen = NULL; in v2i_crld() 286 GENERAL_NAME_free(gen); in v2i_crld()
|
H A D | v3_purp.c | 343 GENERAL_NAME *gen = sk_GENERAL_NAME_value(dp->CRLissuer, i); in setup_dp() local 345 if (gen->type == GEN_DIRNAME) { in setup_dp() 346 iname = gen->d.directoryName; in setup_dp() 1013 GENERAL_NAME *gen; in X509_check_akid() local 1018 gen = sk_GENERAL_NAME_value(gens, i); in X509_check_akid() 1019 if (gen->type == GEN_DIRNAME) { in X509_check_akid() 1020 nm = gen->d.dirn; in X509_check_akid()
|
H A D | x_crl.c | 424 GENERAL_NAME *gen = sk_GENERAL_NAME_value(rev->issuer, i); in crl_revoked_issuer_match() local 425 if (gen->type != GEN_DIRNAME) in crl_revoked_issuer_match() 427 if (!X509_NAME_cmp(nm, gen->d.directoryName)) in crl_revoked_issuer_match()
|
H A D | x509_vfy.c | 1450 GENERAL_NAME *gen = sk_GENERAL_NAME_value(dp->CRLissuer, i); in crldp_check_crlissuer() local 1452 if (gen->type != GEN_DIRNAME) in crldp_check_crlissuer() 1454 if (X509_NAME_cmp(gen->d.directoryName, nm) == 0) in crldp_check_crlissuer()
|
/openssl/crypto/ct/ |
H A D | ct_prn.c | 31 ASN1_GENERALIZEDTIME *gen = ASN1_GENERALIZEDTIME_new(); in timestamp_print() local 34 if (gen == NULL) in timestamp_print() 36 ASN1_GENERALIZEDTIME_adj(gen, (time_t)0, in timestamp_print() 44 ASN1_STRING_get0_data(gen), (unsigned int)(timestamp % 1000)); in timestamp_print() 45 if (ASN1_GENERALIZEDTIME_set_string(gen, genstr)) in timestamp_print() 46 ASN1_GENERALIZEDTIME_print(out, gen); in timestamp_print() 47 ASN1_GENERALIZEDTIME_free(gen); in timestamp_print()
|
/openssl/test/recipes/ |
H A D | 20-test_dhparam.t | 29 my $gen = shift; #2, 5 or something else (0 is "something else")? 78 if ($gen == 2 || $gen == 5) { 80 $genline = "G: $gen (0x$gen)";
|
/openssl/crypto/evp/ |
H A D | dh_ctrl.c | 119 int EVP_PKEY_CTX_set_dh_paramgen_generator(EVP_PKEY_CTX *ctx, int gen) in EVP_PKEY_CTX_set_dh_paramgen_generator() argument 127 *p++ = OSSL_PARAM_construct_int(OSSL_PKEY_PARAM_DH_GENERATOR, &gen); in EVP_PKEY_CTX_set_dh_paramgen_generator() 137 int EVP_PKEY_CTX_set_dh_rfc5114(EVP_PKEY_CTX *ctx, int gen) in EVP_PKEY_CTX_set_dh_rfc5114() argument 140 EVP_PKEY_CTRL_DH_RFC5114, gen, NULL); in EVP_PKEY_CTX_set_dh_rfc5114() 143 int EVP_PKEY_CTX_set_dhx_rfc5114(EVP_PKEY_CTX *ctx, int gen) in EVP_PKEY_CTX_set_dhx_rfc5114() argument 145 return EVP_PKEY_CTX_set_dh_rfc5114(ctx, gen); in EVP_PKEY_CTX_set_dhx_rfc5114()
|
H A D | keymgmt_meth.c | 86 if (keymgmt->gen == NULL) in keymgmt_from_algorithm() 87 keymgmt->gen = OSSL_FUNC_keymgmt_gen(fns); in keymgmt_from_algorithm() 184 && keymgmt->gen == NULL in keymgmt_from_algorithm() 192 || (keymgmt->gen != NULL in keymgmt_from_algorithm() 364 if (keymgmt->gen == NULL) in evp_keymgmt_gen() 366 return keymgmt->gen(genctx, cb, cbarg); in evp_keymgmt_gen() 371 if (keymgmt->gen != NULL) in evp_keymgmt_gen_cleanup()
|
H A D | evp_local.h | 117 OSSL_FUNC_keymgmt_gen_fn *gen; member
|
/openssl/test/ |
H A D | v3nametest.c | 128 GENERAL_NAME *gen = NULL; in set_altname() local 143 gen = GENERAL_NAME_new(); in set_altname() 144 if (gen == NULL) in set_altname() 154 GENERAL_NAME_set0_value(gen, type, ia5); in set_altname() 160 sk_GENERAL_NAME_push(gens, gen); in set_altname() 161 gen = NULL; in set_altname() 168 GENERAL_NAME_free(gen); in set_altname()
|
H A D | endecode_test.c | 1053 const unsigned char *gen, in do_create_ec_explicit_prime_params() argument 1107 OSSL_PKEY_PARAM_EC_GENERATOR, gen, gen_len)) in do_create_ec_explicit_prime_params() 1151 const unsigned char *gen, in do_create_ec_explicit_trinomial_params() argument 1198 OSSL_PKEY_PARAM_EC_GENERATOR, gen, gen_len)) in do_create_ec_explicit_trinomial_params() 1205 static const unsigned char gen[] = { in create_ec_explicit_trinomial_params_namedcurve() local 1214 return do_create_ec_explicit_trinomial_params(bld, gen, sizeof(gen)); in create_ec_explicit_trinomial_params_namedcurve()
|
/openssl/crypto/ocsp/ |
H A D | ocsp_cl.c | 49 GENERAL_NAME *gen = GENERAL_NAME_new(); in OCSP_request_set1_name() local 51 if (gen == NULL) in OCSP_request_set1_name() 53 if (!X509_NAME_set(&gen->d.directoryName, nm)) { in OCSP_request_set1_name() 54 GENERAL_NAME_free(gen); in OCSP_request_set1_name() 57 gen->type = GEN_DIRNAME; in OCSP_request_set1_name() 59 req->tbsRequest.requestorName = gen; in OCSP_request_set1_name()
|
H A D | ocsp_vfy.c | 390 GENERAL_NAME *gen; in OCSP_request_verify() local 397 gen = req->tbsRequest.requestorName; in OCSP_request_verify() 398 if (!gen || gen->type != GEN_DIRNAME) { in OCSP_request_verify() 402 nm = gen->d.directoryName; in OCSP_request_verify()
|
/openssl/ |
H A D | Configure | 2367 my $gen = $generator[0]; 2368 $generator[0] = cleanfile($sourced, $gen, $blddir); 2371 if ($generate{$gen} || ! -f $generator[0]) { 2372 $generator[0] = cleanfile($buildd, $gen, $blddir); 2379 $attributes{generate}->{$dest}->{$gen} 2380 if defined $attributes{generate}->{$dest}->{$gen}; 2534 my $gen = $orig; 2536 while (my @next = keys %{$check_generate{$gen}}) { 2537 $gen = $next[0]; 2540 if (! -f $gen) { [all …]
|
/openssl/include/openssl/ |
H A D | dh.h | 41 int EVP_PKEY_CTX_set_dh_paramgen_generator(EVP_PKEY_CTX *ctx, int gen); 43 int EVP_PKEY_CTX_set_dh_rfc5114(EVP_PKEY_CTX *ctx, int gen); 44 int EVP_PKEY_CTX_set_dhx_rfc5114(EVP_PKEY_CTX *ctx, int gen);
|
H A D | x509v3.h.in | 548 GENERAL_NAME *gen, 550 int GENERAL_NAME_print(BIO *out, GENERAL_NAME *gen); 555 GENERAL_NAMES *gen, 565 int GENERAL_NAME_set0_othername(GENERAL_NAME *gen, 567 int GENERAL_NAME_get0_otherName(const GENERAL_NAME *gen,
|
/openssl/apps/ |
H A D | cms.c | 1352 GENERAL_NAME *gen; in gnames_stack_print() local 1358 gen = sk_GENERAL_NAME_value(gens, j); in gnames_stack_print() 1360 GENERAL_NAME_print(bio_err, gen); in gnames_stack_print() 1418 GENERAL_NAME *gen = NULL; in STACK_OF() local 1424 gen = a2i_GENERAL_NAME(NULL, NULL, NULL, GEN_EMAIL, str, 0); in STACK_OF() 1425 if (gen == NULL) in STACK_OF() 1430 if (!sk_GENERAL_NAME_push(gens, gen)) in STACK_OF() 1432 gen = NULL; in STACK_OF() 1443 GENERAL_NAME_free(gen); in STACK_OF()
|
/openssl/providers/implementations/keymgmt/ |
H A D | ec_kmgmt.c | 979 unsigned char *gen, *seed; member 1114 COPY_OCTET_PARAM(params, OSSL_PKEY_PARAM_EC_GENERATOR, gctx->gen, in ec_gen_set_params() 1178 if (gctx->gen == NULL in ec_gen_set_group_from_params() 1180 gctx->gen, gctx->gen_len)) in ec_gen_set_group_from_params() 1355 OPENSSL_free(gctx->gen); in ec_gen_cleanup()
|
/openssl/.github/workflows/ |
H A D | ci.yml | 76 run: sudo locale-gen tr_TR.UTF-8
|
/openssl/apps/lib/ |
H A D | apps.c | 2352 GENERAL_NAME *gen; in get_dp_url() local 2360 gen = sk_GENERAL_NAME_value(gens, i); in get_dp_url() 2361 uri = GENERAL_NAME_get0_value(gen, >ype); in get_dp_url()
|