/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() 339 GENERAL_NAME *gen; in copy_issuer() local 461 gen = NULL; in copy_email() 476 GENERAL_NAME *gen; in v2i_GENERAL_NAMES() local 520 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(int effective_type, GENERAL_NAME *gen, 333 r = nc_match(gen, nc); in NAME_CONSTRAINTS_check() 501 static int nc_match(GENERAL_NAME *gen, NAME_CONSTRAINTS *nc) in nc_match() argument 505 int effective_type = gen->type; in nc_match() 526 OBJ_cmp(gen->d.otherName->type_id, in nc_match() 552 OBJ_cmp(gen->d.otherName->type_id, in nc_match() 573 switch (gen->type) { in nc_match_single() 591 return nc_dns(gen->d.dNSName, base->d.dNSName); in nc_match_single() 597 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() 211 if (!sk_GENERAL_NAME_push(gens, gen)) { in v2i_AUTHORITY_KEYID() 215 gen->type = GEN_DIRNAME; in v2i_AUTHORITY_KEYID() 216 gen->d.dirn = isname; in v2i_AUTHORITY_KEYID() 220 gen = NULL; in v2i_AUTHORITY_KEYID() 229 GENERAL_NAME_free(gen); in v2i_AUTHORITY_KEYID()
|
H A D | v3_genn.c | 246 int GENERAL_NAME_set0_othername(GENERAL_NAME *gen, in GENERAL_NAME_set0_othername() argument 256 GENERAL_NAME_set0_value(gen, GEN_OTHERNAME, oth); in GENERAL_NAME_set0_othername() 260 int GENERAL_NAME_get0_otherName(const GENERAL_NAME *gen, in GENERAL_NAME_get0_otherName() argument 263 if (gen->type != GEN_OTHERNAME) in GENERAL_NAME_get0_otherName() 266 *poid = gen->d.otherName->type_id; in GENERAL_NAME_get0_otherName() 268 *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() 919 switch (gen->type) { in do_x509_check() 923 switch (OBJ_obj2nid(gen->d.otherName->type_id)) { in do_x509_check() 963 cstr = gen->d.rfc822Name; in do_x509_check() 968 cstr = gen->d.dNSName; in do_x509_check() [all …]
|
H A D | v3_crld.c | 246 GENERAL_NAME *gen = NULL; in v2i_crld() local 271 if ((gen = v2i_GENERAL_NAME(method, ctx, cnf)) == NULL) in v2i_crld() 277 if (!sk_GENERAL_NAME_push(gens, gen)) { in v2i_crld() 281 gen = NULL; in v2i_crld() 299 GENERAL_NAME_free(gen); in v2i_crld()
|
H A D | v3_purp.c | 339 GENERAL_NAME *gen = sk_GENERAL_NAME_value(dp->CRLissuer, i); in setup_dp() local 341 if (gen->type == GEN_DIRNAME) { in setup_dp() 342 iname = gen->d.directoryName; in setup_dp() 1023 GENERAL_NAME *gen; in X509_check_akid() local 1028 gen = sk_GENERAL_NAME_value(gens, i); in X509_check_akid() 1029 if (gen->type == GEN_DIRNAME) { in X509_check_akid() 1030 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()
|
/openssl/test/smime-certs/ |
H A D | mksmime-certs.sh | 16 gen() { function 27 gen smrsa1.pem "/CN=Test SMIME EE RSA #1" usr_rsa_cert >>smrsa1.pem 29 gen smrsa2.pem "/CN=Test SMIME EE RSA #2" usr_rsa_cert >>smrsa2.pem 31 gen smrsa3.pem "/CN=Test SMIME EE RSA #3" usr_rsa_cert >>smrsa3.pem 39 gen smdsa1.pem "/CN=Test SMIME EE DSA #1" signer_cert >>smdsa1.pem 41 gen smdsa2.pem "/CN=Test SMIME EE DSA #1" signer_cert >>smdsa2.pem 43 gen smdsa3.pem "/CN=Test SMIME EE DSA #1" signer_cert >>smdsa3.pem 48 gen smec1.pem "/CN=Test SMIME EE EC #1" signer_cert >>smec1.pem 50 gen smec2.pem "/CN=Test SMIME EE EC #2" signer_cert >>smec2.pem 65 gen smdh.pem "/CN=Test SMIME EE DH" dh_cert >>smdh.pem [all …]
|
/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 | 31 my $gen = shift; #2, 5 or something else (0 is "something else")? 80 if ($gen == 2 || $gen == 5) { 82 $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 | 119 if (keymgmt->gen == NULL) in keymgmt_from_algorithm() 120 keymgmt->gen = OSSL_FUNC_keymgmt_gen(fns); in keymgmt_from_algorithm() 237 && keymgmt->gen == NULL in keymgmt_from_algorithm() 246 || (keymgmt->gen != NULL in keymgmt_from_algorithm() 444 if (keymgmt->gen == NULL) in evp_keymgmt_gen() 446 return keymgmt->gen(genctx, cb, cbarg); in evp_keymgmt_gen()
|
/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 | rand_test.c | 98 static int fips_health_test_one(const uint8_t *buf, size_t n, size_t gen) in fips_health_test_one() argument 119 || !TEST_size_t_le(gen, sizeof(out))) in fips_health_test_one() 130 res = EVP_RAND_generate(crngt, out, gen, 0, 0, NULL, 0); in fips_health_test_one()
|
H A D | endecode_test.c | 1070 const unsigned char *gen, in do_create_ec_explicit_prime_params() argument 1124 OSSL_PKEY_PARAM_EC_GENERATOR, gen, gen_len)) in do_create_ec_explicit_prime_params() 1168 const unsigned char *gen, in do_create_ec_explicit_trinomial_params() argument 1215 OSSL_PKEY_PARAM_EC_GENERATOR, gen, gen_len)) in do_create_ec_explicit_trinomial_params() 1222 static const unsigned char gen[] = { in create_ec_explicit_trinomial_params_namedcurve() local 1231 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/crypto/thread/arch/ |
H A D | thread_win.c | 296 size_t gen; /* Prewait generation */ member 378 orig_gen = cv->gen; in ossl_crypto_condvar_wait_timeout() 380 } else if (cv->gen != orig_gen) { in ossl_crypto_condvar_wait_timeout() 382 orig_gen = cv->gen; in ossl_crypto_condvar_wait_timeout() 412 if (set_prewait && cv->gen == orig_gen) in ossl_crypto_condvar_wait_timeout() 452 ++cv->gen; in ossl_crypto_condvar_wait_timeout()
|
/openssl/include/openssl/ |
H A D | dh.h | 45 int EVP_PKEY_CTX_set_dh_paramgen_generator(EVP_PKEY_CTX *ctx, int gen); 47 int EVP_PKEY_CTX_set_dh_rfc5114(EVP_PKEY_CTX *ctx, int gen); 48 int EVP_PKEY_CTX_set_dhx_rfc5114(EVP_PKEY_CTX *ctx, int gen);
|
/openssl/ |
H A D | Configure | 2482 my $gen = $generator[0]; 2483 $generator[0] = cleanfile($sourced, $gen, $blddir, 1); 2486 if ($generate{$gen} || ! -f $generator[0]) { 2487 $generator[0] = cleanfile($buildd, $gen, $blddir); 2494 $attributes{generate}->{$dest}->{$gen} 2495 if defined $attributes{generate}->{$dest}->{$gen}; 2679 my $gen = $orig; 2681 while (my @next = keys %{$check_generate{$gen}}) { 2682 $gen = $next[0]; 2685 if (! -f $gen) { [all …]
|
/openssl/apps/ |
H A D | cms.c | 1348 GENERAL_NAME *gen; in gnames_stack_print() local 1354 gen = sk_GENERAL_NAME_value(gens, j); in gnames_stack_print() 1356 GENERAL_NAME_print(bio_err, gen); in gnames_stack_print() 1414 GENERAL_NAME *gen = NULL; in STACK_OF() local 1420 gen = a2i_GENERAL_NAME(NULL, NULL, NULL, GEN_EMAIL, str, 0); in STACK_OF() 1421 if (gen == NULL) in STACK_OF() 1426 if (!sk_GENERAL_NAME_push(gens, gen)) in STACK_OF() 1428 gen = NULL; in STACK_OF() 1439 GENERAL_NAME_free(gen); in STACK_OF()
|
/openssl/providers/implementations/keymgmt/ |
H A D | ec_kmgmt.c | 989 unsigned char *gen, *seed; member 1131 COPY_OCTET_PARAM(params, OSSL_PKEY_PARAM_EC_GENERATOR, gctx->gen, in ec_gen_set_params() 1198 if (gctx->gen == NULL in ec_gen_set_group_from_params() 1200 gctx->gen, gctx->gen_len)) in ec_gen_set_group_from_params() 1418 OPENSSL_free(gctx->gen); in ec_gen_cleanup()
|
/openssl/.github/workflows/ |
H A D | prov-compat-label.yml | 64 run: sudo locale-gen tr_TR.UTF-8 147 run: sudo locale-gen tr_TR.UTF-8
|
H A D | provider-compatibility.yml | 71 run: sudo locale-gen tr_TR.UTF-8 149 run: sudo locale-gen tr_TR.UTF-8
|