Home
last modified time | relevance | path

Searched refs:gen (Results 1 – 25 of 27) sorted by relevance

12

/openssl-master/crypto/x509/
A Dv3_san.c56 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
463 gen = NULL; in copy_email()
478 GENERAL_NAME *gen; in v2i_GENERAL_NAMES() local
523 gen = out; in a2i_GENERAL_NAME()
592 return gen; in a2i_GENERAL_NAME()
[all …]
A Dv3_ncons.c36 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 …]
A Dv3_akid.c106 GENERAL_NAME *gen = NULL; in v2i_AUTHORITY_KEYID() local
196 || (gen = GENERAL_NAME_new()) == NULL in v2i_AUTHORITY_KEYID()
197 || !sk_GENERAL_NAME_push(gens, gen)) { in v2i_AUTHORITY_KEYID()
201 gen->type = GEN_DIRNAME; in v2i_AUTHORITY_KEYID()
202 gen->d.dirn = isname; in v2i_AUTHORITY_KEYID()
206 gen = NULL; in v2i_AUTHORITY_KEYID()
215 GENERAL_NAME_free(gen); in v2i_AUTHORITY_KEYID()
A Dv3_genn.c217 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()
A Dv3_utl.c497 GENERAL_NAME *gen; in STACK_OF() local
510 gen = sk_GENERAL_NAME_value(gens, i); in STACK_OF()
511 if (gen->type != GEN_EMAIL) in STACK_OF()
513 if (!append_ia5(&ret, gen->d.ia5)) in STACK_OF()
896 GENERAL_NAME *gen; in do_x509_check() local
899 gen = sk_GENERAL_NAME_value(gens, i); in do_x509_check()
901 if (OBJ_obj2nid(gen->d.otherName->type_id) == in do_x509_check()
920 if ((gen->type != check_type) && (gen->type != GEN_OTHERNAME)) in do_x509_check()
925 cstr = gen->d.rfc822Name; in do_x509_check()
927 cstr = gen->d.dNSName; in do_x509_check()
[all …]
A Dv3_crld.c240 GENERAL_NAME *gen = NULL; in v2i_crld() local
263 if ((gen = v2i_GENERAL_NAME(method, ctx, cnf)) == NULL) in v2i_crld()
267 if (!sk_GENERAL_NAME_push(gens, gen)) in v2i_crld()
269 gen = NULL; in v2i_crld()
285 GENERAL_NAME_free(gen); in v2i_crld()
A Dv3_purp.c336 GENERAL_NAME *gen = sk_GENERAL_NAME_value(dp->CRLissuer, i); in setup_dp() local
338 if (gen->type == GEN_DIRNAME) { in setup_dp()
339 iname = gen->d.directoryName; in setup_dp()
974 GENERAL_NAME *gen; in X509_check_akid() local
979 gen = sk_GENERAL_NAME_value(gens, i); in X509_check_akid()
980 if (gen->type == GEN_DIRNAME) { in X509_check_akid()
981 nm = gen->d.dirn; in X509_check_akid()
A Dx_crl.c418 GENERAL_NAME *gen = sk_GENERAL_NAME_value(rev->issuer, i); in crl_revoked_issuer_match() local
419 if (gen->type != GEN_DIRNAME) in crl_revoked_issuer_match()
421 if (!X509_NAME_cmp(nm, gen->d.directoryName)) in crl_revoked_issuer_match()
A Dx509_vfy.c1441 GENERAL_NAME *gen = sk_GENERAL_NAME_value(dp->CRLissuer, i); in crldp_check_crlissuer() local
1443 if (gen->type != GEN_DIRNAME) in crldp_check_crlissuer()
1445 if (X509_NAME_cmp(gen->d.directoryName, nm) == 0) in crldp_check_crlissuer()
/openssl-master/crypto/ct/
A Dct_prn.c31 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-master/test/recipes/
A D20-test_dhparam.t27 my $gen = shift; #2, 5 or something else (0 is "something else")?
75 if ($gen == 2 || $gen == 5) {
77 $genline = "G: $gen (0x$gen)";
/openssl-master/crypto/evp/
A Ddh_ctrl.c119 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()
A Dkeymgmt_meth.c86 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()
373 if (keymgmt->gen == NULL) in evp_keymgmt_gen()
375 return keymgmt->gen(genctx, cb, cbarg); in evp_keymgmt_gen()
380 if (keymgmt->gen != NULL) in evp_keymgmt_gen_cleanup()
A Devp_local.h116 OSSL_FUNC_keymgmt_gen_fn *gen; member
/openssl-master/test/
A Dv3nametest.c132 GENERAL_NAME *gen = NULL; in set_altname() local
147 gen = GENERAL_NAME_new(); in set_altname()
148 if (gen == NULL) in set_altname()
158 GENERAL_NAME_set0_value(gen, type, ia5); in set_altname()
164 sk_GENERAL_NAME_push(gens, gen); in set_altname()
165 gen = NULL; in set_altname()
172 GENERAL_NAME_free(gen); in set_altname()
A Dendecode_test.c1035 const unsigned char *gen, in do_create_ec_explicit_prime_params() argument
1089 OSSL_PKEY_PARAM_EC_GENERATOR, gen, gen_len)) in do_create_ec_explicit_prime_params()
1133 const unsigned char *gen, in do_create_ec_explicit_trinomial_params() argument
1180 OSSL_PKEY_PARAM_EC_GENERATOR, gen, gen_len)) in do_create_ec_explicit_trinomial_params()
1187 static const unsigned char gen[] = { in create_ec_explicit_trinomial_params_namedcurve() local
1196 return do_create_ec_explicit_trinomial_params(bld, gen, sizeof(gen)); in create_ec_explicit_trinomial_params_namedcurve()
A Dectest.c2389 unsigned char *gen, int gen_size) in do_test_custom_explicit_fromdata() argument
2454 OSSL_PKEY_PARAM_EC_GENERATOR, gen, gen_size)) in do_test_custom_explicit_fromdata()
2489 || !TEST_mem_eq(buf, (int)buf_len, gen, gen_size)) in do_test_custom_explicit_fromdata()
/openssl-master/crypto/ocsp/
A Docsp_cl.c49 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()
A Docsp_vfy.c389 GENERAL_NAME *gen; in OCSP_request_verify() local
396 gen = req->tbsRequest.requestorName; in OCSP_request_verify()
397 if (!gen || gen->type != GEN_DIRNAME) { in OCSP_request_verify()
401 nm = gen->d.directoryName; in OCSP_request_verify()
/openssl-master/apps/
A Dcms.c1319 GENERAL_NAME *gen; in gnames_stack_print() local
1325 gen = sk_GENERAL_NAME_value(gens, j); in gnames_stack_print()
1327 GENERAL_NAME_print(bio_err, gen); in gnames_stack_print()
1385 GENERAL_NAME *gen = NULL; in STACK_OF() local
1391 gen = a2i_GENERAL_NAME(NULL, NULL, NULL, GEN_EMAIL, str, 0); in STACK_OF()
1392 if (gen == NULL) in STACK_OF()
1397 if (!sk_GENERAL_NAME_push(gens, gen)) in STACK_OF()
1399 gen = NULL; in STACK_OF()
1410 GENERAL_NAME_free(gen); in STACK_OF()
/openssl-master/include/openssl/
A Ddh.h41 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);
A Dx509v3.h.in544 GENERAL_NAME *gen,
546 int GENERAL_NAME_print(BIO *out, GENERAL_NAME *gen);
551 GENERAL_NAMES *gen,
561 int GENERAL_NAME_set0_othername(GENERAL_NAME *gen,
563 int GENERAL_NAME_get0_otherName(const GENERAL_NAME *gen,
/openssl-master/
A DConfigure2374 my $gen = $generator[0];
2375 $generator[0] = cleanfile($sourced, $gen, $blddir);
2378 if ($generate{$gen} || ! -f $generator[0]) {
2379 $generator[0] = cleanfile($buildd, $gen, $blddir);
2537 my $gen = $orig;
2539 while (my @next = keys %{$check_generate{$gen}}) {
2540 $gen = $next[0];
2543 if (! -f $gen) {
2544 if ($gen ne $orig) {
2546 … warn "$orig is given as source for $dest, but its generator (leading to $gen) is missing\n";
/openssl-master/providers/implementations/keymgmt/
A Dec_kmgmt.c959 unsigned char *gen, *seed; member
1094 COPY_OCTET_PARAM(params, OSSL_PKEY_PARAM_EC_GENERATOR, gctx->gen, in ec_gen_set_params()
1158 if (gctx->gen == NULL in ec_gen_set_group_from_params()
1160 gctx->gen, gctx->gen_len)) in ec_gen_set_group_from_params()
1335 OPENSSL_free(gctx->gen); in ec_gen_cleanup()
/openssl-master/apps/lib/
A Dapps.c2338 GENERAL_NAME *gen; in get_dp_url() local
2345 gen = sk_GENERAL_NAME_value(gens, i); in get_dp_url()
2346 uri = GENERAL_NAME_get0_value(gen, &gtype); in get_dp_url()

Completed in 101 milliseconds

12