Home
last modified time | relevance | path

Searched refs:tmpl (Results 1 – 25 of 52) sorted by relevance

123

/openssl/external/perl/Text-Template-1.56/t/
H A Dbasic.t67 open my $tmpl, '<', $TEMPFILE or die "failed to open $TEMPFILE: $!";
69 $template = Text::Template->new(type => 'FILEHANDLE', source => $tmpl);
80 close $tmpl;
106 $text = $tmpl->fill_in();
111 $tmpl = Text::Template->new(TYPE => 'STRING', SOURCE => qq{A{"\t"}B});
116 $text = $tmpl->fill_in();
141 my $tmpl = Text::Template->new(TYPE => 'STRING', SOURCE => $test);
142 my $text = $tmpl->fill_in;
151 $tmpl = undef;
152 ok(open $tmpl, '<', $TEMPFILE) or diag "Couldn't open $TEMPFILE: $!";
[all …]
H A Dpreprocess.t30 my $tmpl;
32 $tmpl = Text::Template::Preprocess->new(TYPE => 'STRING', SOURCE => $t) or die;
36 $tmpl = Text::Template::Preprocess->new(TYPE => 'FILEHANDLE', SOURCE => $tfh) or die;
38 $tmpl->preprocessor($py) if ($test & 1) == 1;
40 my $o = $tmpl->fill_in(@args, HASH => { x => 119, 'y' => 23, z => 5 });
H A Dinline-comment.t11 my $tmpl = Text::Template->new(
17 is $tmpl->fill_in(HASH => $vars), 'Hello Bob';
H A Dnested-tags.t19 my $tmpl = Text::Template->new(
24 is $tmpl->fill_in, ' {{$NEXT}} ';
H A Ddelimiters.t73 my $tmpl = Text::Template->new(
78 my $text = $tmpl->fill_in;
/openssl/crypto/crmf/
H A Dcrmf_lib.c271 tmpl->validity = vld; in OSSL_CRMF_MSG_set0_validity()
330 tmpl->extensions = exts; in OSSL_CRMF_MSG_set0_extensions()
345 if (tmpl->extensions == NULL) { in OSSL_CRMF_MSG_push0_extension()
357 tmpl->extensions = NULL; in OSSL_CRMF_MSG_push0_extension()
548 return tmpl != NULL ? tmpl->publicKey : NULL; in OSSL_CRMF_CERTTEMPLATE_get0_publicKey()
554 return tmpl != NULL ? tmpl->serialNumber : NULL; in OSSL_CRMF_CERTTEMPLATE_get0_serialNumber()
560 return tmpl != NULL ? tmpl->subject : NULL; in OSSL_CRMF_CERTTEMPLATE_get0_subject()
566 return tmpl != NULL ? tmpl->issuer : NULL; in OSSL_CRMF_CERTTEMPLATE_get0_issuer()
572 return tmpl != NULL ? tmpl->extensions : NULL; in OSSL_CRMF_CERTTEMPLATE_get0_extensions()
597 if (tmpl == NULL) { in OSSL_CRMF_CERTTEMPLATE_fill()
[all …]
/openssl/apps/
H A Dtestdsa.h222 OSSL_PARAM_BLD *tmpl = NULL; in get_dsa() local
251 if ((tmpl = OSSL_PARAM_BLD_new()) == NULL in get_dsa()
252 || !OSSL_PARAM_BLD_push_BN(tmpl, OSSL_PKEY_PARAM_FFC_P, in get_dsa()
254 || !OSSL_PARAM_BLD_push_BN(tmpl, OSSL_PKEY_PARAM_FFC_Q, in get_dsa()
256 || !OSSL_PARAM_BLD_push_BN(tmpl, OSSL_PKEY_PARAM_FFC_G, in get_dsa()
258 || !OSSL_PARAM_BLD_push_BN(tmpl, OSSL_PKEY_PARAM_PRIV_KEY, in get_dsa()
260 || !OSSL_PARAM_BLD_push_BN(tmpl, OSSL_PKEY_PARAM_PUB_KEY, in get_dsa()
262 || (params = OSSL_PARAM_BLD_to_param(tmpl)) == NULL) in get_dsa()
271 OSSL_PARAM_BLD_free(tmpl); in get_dsa()
H A Ddhparam.c376 OSSL_PARAM_BLD *tmpl = NULL; in dsa_to_dh() local
389 if ((tmpl = OSSL_PARAM_BLD_new()) == NULL in dsa_to_dh()
390 || !OSSL_PARAM_BLD_push_BN(tmpl, OSSL_PKEY_PARAM_FFC_P, in dsa_to_dh()
392 || !OSSL_PARAM_BLD_push_BN(tmpl, OSSL_PKEY_PARAM_FFC_Q, in dsa_to_dh()
394 || !OSSL_PARAM_BLD_push_BN(tmpl, OSSL_PKEY_PARAM_FFC_G, in dsa_to_dh()
396 || (params = OSSL_PARAM_BLD_to_param(tmpl)) == NULL) { in dsa_to_dh()
412 OSSL_PARAM_BLD_free(tmpl); in dsa_to_dh()
/openssl/doc/man3/
H A DOSSL_CRMF_MSG_get0_tmpl.pod23 *OSSL_CRMF_CERTTEMPLATE_get0_publicKey(const OSSL_CRMF_CERTTEMPLATE *tmpl);
25 *OSSL_CRMF_CERTTEMPLATE_get0_subject(const OSSL_CRMF_CERTTEMPLATE *tmpl);
27 *OSSL_CRMF_CERTTEMPLATE_get0_issuer(const OSSL_CRMF_CERTTEMPLATE *tmpl);
29 *OSSL_CRMF_CERTTEMPLATE_get0_serialNumber(const OSSL_CRMF_CERTTEMPLATE *tmpl);
31 *OSSL_CRMF_CERTTEMPLATE_get0_extensions(const OSSL_CRMF_CERTTEMPLATE *tmpl);
49 given certificate template I<tmpl>.
52 given certificate template I<tmpl>.
55 given certificate template I<tmpl>.
58 given certificate template I<tmpl>.
61 of the given certificate template I<tmpl>, or NULL if not present.
/openssl/test/helpers/
H A Dpredefined_dhparams.c22 OSSL_PARAM_BLD *tmpl = NULL; in get_dh_from_pg_bn() local
29 if ((tmpl = OSSL_PARAM_BLD_new()) == NULL in get_dh_from_pg_bn()
30 || !OSSL_PARAM_BLD_push_BN(tmpl, OSSL_PKEY_PARAM_FFC_P, p) in get_dh_from_pg_bn()
31 || !OSSL_PARAM_BLD_push_BN(tmpl, OSSL_PKEY_PARAM_FFC_G, g) in get_dh_from_pg_bn()
33 && !OSSL_PARAM_BLD_push_BN(tmpl, OSSL_PKEY_PARAM_FFC_Q, q))) in get_dh_from_pg_bn()
36 params = OSSL_PARAM_BLD_to_param(tmpl); in get_dh_from_pg_bn()
44 OSSL_PARAM_BLD_free(tmpl); in get_dh_from_pg_bn()
/openssl/crypto/ec/
H A Dec_backend.c210 if (tmpl != NULL || param != NULL) { in ec_group_explicit_todata()
225 if (tmpl != NULL || param != NULL) { in ec_group_explicit_todata()
226 if (!ossl_param_build_set_utf8_string(tmpl, params, in ec_group_explicit_todata()
235 if (tmpl != NULL || param != NULL) { in ec_group_explicit_todata()
258 if (tmpl != NULL || param != NULL) { in ec_group_explicit_todata()
262 && !ossl_param_build_set_bn(tmpl, params, in ec_group_explicit_todata()
270 if (tmpl != NULL || param != NULL) { in ec_group_explicit_todata()
306 tmpl, params, in ossl_ec_group_todata()
314 || !ossl_param_build_set_utf8_string(tmpl, params, in ossl_ec_group_todata()
321 if (!ossl_param_build_set_int(tmpl, params, in ossl_ec_group_todata()
[all …]
H A Dec_ameth.c480 OSSL_PARAM_BLD *tmpl; in ec_pkey_export_to() local
493 tmpl = OSSL_PARAM_BLD_new(); in ec_pkey_export_to()
494 if (tmpl == NULL) in ec_pkey_export_to()
507 if (!ossl_ec_group_todata(ecg, tmpl, NULL, libctx, propq, bnctx, &gen_buf)) in ec_pkey_export_to()
521 || !OSSL_PARAM_BLD_push_octet_string(tmpl, in ec_pkey_export_to()
572 if (!OSSL_PARAM_BLD_push_BN_pad(tmpl, in ec_pkey_export_to()
587 if (!OSSL_PARAM_BLD_push_int(tmpl, in ec_pkey_export_to()
594 params = OSSL_PARAM_BLD_to_param(tmpl); in ec_pkey_export_to()
600 OSSL_PARAM_BLD_free(tmpl); in ec_pkey_export_to()
/openssl/crypto/evp/
H A Dctrl_params_translate.c2627 if (tmpl->ctrl_num != 0) { in lookup_translation()
2720 tmpl.ctrl_num = cmd; in evp_pkey_ctx_ctrl_to_param()
2721 tmpl.keytype1 = tmpl.keytype2 = keytype; in evp_pkey_ctx_ctrl_to_param()
2722 tmpl.optype = optype; in evp_pkey_ctx_ctrl_to_param()
2788 tmpl.action_type = SET; in evp_pkey_ctx_ctrl_str_to_param()
2789 tmpl.keytype1 = tmpl.keytype2 = keytype; in evp_pkey_ctx_ctrl_str_to_param()
2790 tmpl.optype = optype; in evp_pkey_ctx_ctrl_str_to_param()
2791 tmpl.ctrl_str = name; in evp_pkey_ctx_ctrl_str_to_param()
2792 tmpl.ctrl_hexstr = name; in evp_pkey_ctx_ctrl_str_to_param()
2853 tmpl.keytype1 = tmpl.keytype2 = keytype; in evp_pkey_ctx_setget_params_to_ctrl()
[all …]
/openssl/providers/implementations/keymgmt/
H A Dtemplate_kmgmt.c135 static int key_to_params(void *key, OSSL_PARAM_BLD *tmpl, in key_to_params() argument
149 OSSL_PARAM_BLD *tmpl; in template_export() local
160 tmpl = OSSL_PARAM_BLD_new(); in template_export()
161 if (tmpl == NULL) in template_export()
167 if (!key_to_params(key, tmpl, NULL, include_private)) in template_export()
171 params = OSSL_PARAM_BLD_to_param(tmpl); in template_export()
178 OSSL_PARAM_BLD_free(tmpl); in template_export()
H A Dmac_legacy_kmgmt.c238 static int key_to_params(MAC_KEY *key, OSSL_PARAM_BLD *tmpl, in key_to_params() argument
245 && !ossl_param_build_set_octet_string(tmpl, params, in key_to_params()
251 && !ossl_param_build_set_utf8_string(tmpl, params, in key_to_params()
258 && !ossl_param_build_set_utf8_string(tmpl, params, in key_to_params()
271 OSSL_PARAM_BLD *tmpl; in mac_export() local
281 tmpl = OSSL_PARAM_BLD_new(); in mac_export()
282 if (tmpl == NULL) in mac_export()
286 && !key_to_params(key, tmpl, NULL)) in mac_export()
289 params = OSSL_PARAM_BLD_to_param(tmpl); in mac_export()
296 OSSL_PARAM_BLD_free(tmpl); in mac_export()
H A Dec_kmgmt.c145 if (tmpl == NULL) { in key_to_params()
151 if (p != NULL || tmpl != NULL) { in key_to_params()
178 && !ossl_param_build_set_bn(tmpl, px, in key_to_params()
182 && !ossl_param_build_set_bn(tmpl, py, in key_to_params()
230 if (!ossl_param_build_set_bn_pad(tmpl, params, in key_to_params()
269 && !ossl_param_build_set_int(tmpl, params, in otherparams_to_params()
275 return ossl_param_build_set_int(tmpl, params, in otherparams_to_params()
456 OSSL_PARAM_BLD *tmpl = NULL; in ec_export() local
484 tmpl = OSSL_PARAM_BLD_new(); in ec_export()
485 if (tmpl == NULL) in ec_export()
[all …]
H A Drsa_kmgmt.c208 OSSL_PARAM_BLD *tmpl; in rsa_export() local
218 tmpl = OSSL_PARAM_BLD_new(); in rsa_export()
219 if (tmpl == NULL) in rsa_export()
224 || ossl_rsa_pss_params_30_todata(pss_params, tmpl, NULL)); in rsa_export()
229 ok = ok && ossl_rsa_todata(rsa, tmpl, NULL, include_private); in rsa_export()
232 if (!ok || (params = OSSL_PARAM_BLD_to_param(tmpl)) == NULL) { in rsa_export()
240 OSSL_PARAM_BLD_free(tmpl); in rsa_export()
H A Ddsa_kmgmt.c222 OSSL_PARAM_BLD *tmpl; in dsa_export() local
232 tmpl = OSSL_PARAM_BLD_new(); in dsa_export()
233 if (tmpl == NULL) in dsa_export()
237 ok = ok && ossl_ffc_params_todata(ossl_dsa_get0_params(dsa), tmpl, NULL); in dsa_export()
242 ok = ok && dsa_key_todata(dsa, tmpl, NULL, include_private); in dsa_export()
245 if (!ok || (params = OSSL_PARAM_BLD_to_param(tmpl)) == NULL) { in dsa_export()
253 OSSL_PARAM_BLD_free(tmpl); in dsa_export()
/openssl/crypto/dh/
H A Ddh_ameth.c457 OSSL_PARAM_BLD *tmpl; in dh_pkey_export_to() local
469 tmpl = OSSL_PARAM_BLD_new(); in dh_pkey_export_to()
470 if (tmpl == NULL) in dh_pkey_export_to()
472 if (!OSSL_PARAM_BLD_push_BN(tmpl, OSSL_PKEY_PARAM_FFC_P, p) in dh_pkey_export_to()
473 || !OSSL_PARAM_BLD_push_BN(tmpl, OSSL_PKEY_PARAM_FFC_G, g)) in dh_pkey_export_to()
476 if (!OSSL_PARAM_BLD_push_BN(tmpl, OSSL_PKEY_PARAM_FFC_Q, q)) in dh_pkey_export_to()
481 if (!OSSL_PARAM_BLD_push_long(tmpl, OSSL_PKEY_PARAM_DH_PRIV_LEN, l)) in dh_pkey_export_to()
486 if (!OSSL_PARAM_BLD_push_BN(tmpl, OSSL_PKEY_PARAM_PUB_KEY, pub_key)) in dh_pkey_export_to()
491 if (!OSSL_PARAM_BLD_push_BN(tmpl, OSSL_PKEY_PARAM_PRIV_KEY, in dh_pkey_export_to()
497 if ((params = OSSL_PARAM_BLD_to_param(tmpl)) == NULL) in dh_pkey_export_to()
[all …]
/openssl/crypto/dsa/
H A Ddsa_ameth.c434 OSSL_PARAM_BLD *tmpl; in dsa_pkey_export_to() local
445 tmpl = OSSL_PARAM_BLD_new(); in dsa_pkey_export_to()
446 if (tmpl == NULL) in dsa_pkey_export_to()
449 if (!OSSL_PARAM_BLD_push_BN(tmpl, OSSL_PKEY_PARAM_FFC_P, p) in dsa_pkey_export_to()
450 || !OSSL_PARAM_BLD_push_BN(tmpl, OSSL_PKEY_PARAM_FFC_Q, q) in dsa_pkey_export_to()
451 || !OSSL_PARAM_BLD_push_BN(tmpl, OSSL_PKEY_PARAM_FFC_G, g)) in dsa_pkey_export_to()
455 if (!OSSL_PARAM_BLD_push_BN(tmpl, OSSL_PKEY_PARAM_PUB_KEY, in dsa_pkey_export_to()
461 if (!OSSL_PARAM_BLD_push_BN(tmpl, OSSL_PKEY_PARAM_PRIV_KEY, in dsa_pkey_export_to()
467 if ((params = OSSL_PARAM_BLD_to_param(tmpl)) == NULL) in dsa_pkey_export_to()
475 OSSL_PARAM_BLD_free(tmpl); in dsa_pkey_export_to()
/openssl/
H A Dconfigdata.pm.in135 my $tmpl;
138 $tmpl = OpenSSL::Template->new(TYPE => 'FILE',
140 $tmpl->fill_in(FILENAME => $_,
160 $tmpl = OpenSSL::Template->new(TYPE => 'FILE',
162 $tmpl->fill_in(FILENAME => $_,
352 my @tmpl = ($_);
353 unshift @tmpl, $here
355 print ' ',canonpath(catfile(@tmpl)),"\n";
H A DHACKING.md9 [Configurations/unix-Makefile.tmpl](Configurations/unix-Makefile.tmpl)
/openssl/include/openssl/
H A Dcrmf.h.in162 *OSSL_CRMF_CERTTEMPLATE_get0_publicKey(const OSSL_CRMF_CERTTEMPLATE *tmpl);
164 *OSSL_CRMF_CERTTEMPLATE_get0_subject(const OSSL_CRMF_CERTTEMPLATE *tmpl);
166 *OSSL_CRMF_CERTTEMPLATE_get0_issuer(const OSSL_CRMF_CERTTEMPLATE *tmpl);
168 *OSSL_CRMF_CERTTEMPLATE_get0_serialNumber(const OSSL_CRMF_CERTTEMPLATE *tmpl);
170 *OSSL_CRMF_CERTTEMPLATE_get0_extensions(const OSSL_CRMF_CERTTEMPLATE *tmpl);
175 int OSSL_CRMF_CERTTEMPLATE_fill(OSSL_CRMF_CERTTEMPLATE *tmpl,
/openssl/ssl/record/
H A Drec_layer_d1.c625 OSSL_RECORD_TEMPLATE tmpl; in do_dtls1_write() local
645 tmpl.type = type; in do_dtls1_write()
653 tmpl.version = DTLS1_VERSION; in do_dtls1_write()
655 tmpl.version = sc->version; in do_dtls1_write()
656 tmpl.buf = buf; in do_dtls1_write()
657 tmpl.buflen = len; in do_dtls1_write()
660 sc->rlayer.wrlmethod->write_records(sc->rlayer.wrl, &tmpl, 1)); in do_dtls1_write()
/openssl/dev/release-aux/
H A DREADME.md23 - openssl-announce-pre-release.tmpl and openssl-announce-release.tmpl

Completed in 52 milliseconds

123