Home
last modified time | relevance | path

Searched refs:template (Results 1 – 25 of 208) sorted by relevance

123456789

/onnv-gate/usr/src/lib/pkcs11/pkcs11_kms/common/
H A DkmsAttributeUtil.c150 kms_validate_attr(CK_ATTRIBUTE_PTR template, CK_ULONG ulAttrNum, in kms_validate_attr() argument
159 switch (template[i].type) { in kms_validate_attr()
161 *class = *((CK_OBJECT_CLASS*)template[i].pValue); in kms_validate_attr()
175 switch (template[i].type) { in kms_validate_attr()
196 rv = kms_lookup_attr(template[i].type); in kms_validate_attr()
247 kms_add_extra_attr(CK_ATTRIBUTE_PTR template, kms_object_t *object_p) in kms_add_extra_attr() argument
259 attrp->attr.type = template->type; in kms_add_extra_attr()
260 attrp->attr.ulValueLen = template->ulValueLen; in kms_add_extra_attr()
262 if ((template->pValue != NULL) && in kms_add_extra_attr()
263 (template->ulValueLen > 0)) { in kms_add_extra_attr()
[all …]
/onnv-gate/usr/src/lib/pkcs11/pkcs11_kernel/common/
H A DkernelAttributeUtil.c258 kernel_validate_attr(CK_ATTRIBUTE_PTR template, CK_ULONG ulAttrNum, in kernel_validate_attr() argument
267 switch (template[i].type) { in kernel_validate_attr()
269 *class = *((CK_OBJECT_CLASS*)template[i].pValue); in kernel_validate_attr()
283 switch (template[i].type) { in kernel_validate_attr()
304 rv = kernel_lookup_attr(template[i].type); in kernel_validate_attr()
353 kernel_add_extra_attr(CK_ATTRIBUTE_PTR template, kernel_object_t *object_p) in kernel_add_extra_attr() argument
365 attrp->attr.type = template->type; in kernel_add_extra_attr()
366 attrp->attr.ulValueLen = template->ulValueLen; in kernel_add_extra_attr()
368 if ((template->pValue != NULL) && in kernel_add_extra_attr()
369 (template->ulValueLen > 0)) { in kernel_add_extra_attr()
[all …]
/onnv-gate/usr/src/cmd/perl/5.8.4/distrib/lib/File/
H A DTemp.pm311 my $template = shift;
312 if (ref($template)) {
339 my $start = length($template) - 1 - $options{"suffixlen"};
347 if (substr($template, $start - MINX + 1, MINX) ne 'X' x MINX) {
359 my $path = _replace_XX($template, $options{"suffixlen"});
562 $path = _replace_XX($template, $options{"suffixlen"});
570 …me different to the previous value $MAX_GUESS times.\nSomething wrong with template?? ($template)";
963 my @template = ( exists $args{TEMPLATE} ? $args{TEMPLATE} : () );
970 my ($fh, $path) = tempfile( @template, %args );
1126 my $template = (scalar(@_) % 2 == 1 ? shift(@_) : undef);
[all …]
/onnv-gate/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftAttributeUtil.c264 soft_validate_attr(CK_ATTRIBUTE_PTR template, CK_ULONG ulAttrNum, in soft_validate_attr() argument
273 switch (template[i].type) { in soft_validate_attr()
275 *class = *((CK_OBJECT_CLASS*)template[i].pValue); in soft_validate_attr()
289 switch (template[i].type) { in soft_validate_attr()
310 rv = soft_lookup_attr(template[i].type); in soft_validate_attr()
446 soft_add_extra_attr(CK_ATTRIBUTE_PTR template, soft_object_t *object_p) in soft_add_extra_attr() argument
458 attrp->attr.type = template->type; in soft_add_extra_attr()
459 attrp->attr.ulValueLen = template->ulValueLen; in soft_add_extra_attr()
461 if ((template->pValue != NULL) && in soft_add_extra_attr()
462 (template->ulValueLen > 0)) { in soft_add_extra_attr()
[all …]
H A DsoftEC.c150 CK_ATTRIBUTE template; in soft_ec_genkey_pair() local
166 template.type = CKA_EC_PARAMS; in soft_ec_genkey_pair()
167 template.pValue = param_buffer; in soft_ec_genkey_pair()
168 template.ulValueLen = sizeof (param_buffer); in soft_ec_genkey_pair()
169 rv = soft_get_public_key_attribute(pubkey, &template); in soft_ec_genkey_pair()
173 paramlen = template.ulValueLen; in soft_ec_genkey_pair()
176 rv = set_extra_attr_to_object(prikey, CKA_EC_PARAMS, &template); in soft_ec_genkey_pair()
217 CK_ATTRIBUTE template; in soft_ec_key_derive() local
234 template.type = CKA_VALUE; in soft_ec_key_derive()
235 template.pValue = value; in soft_ec_key_derive()
[all …]
H A DsoftDH.c91 CK_ATTRIBUTE template; in soft_dh_genkey_pair() local
112 template.pValue = malloc(sizeof (CK_ULONG)); in soft_dh_genkey_pair()
113 if (template.pValue == NULL) { in soft_dh_genkey_pair()
116 template.ulValueLen = sizeof (CK_ULONG); in soft_dh_genkey_pair()
118 &template); in soft_dh_genkey_pair()
120 free(template.pValue); in soft_dh_genkey_pair()
126 value_bits = (uint32_t)(*((CK_ULONG *)(template.pValue))); in soft_dh_genkey_pair()
128 value_bits = *((CK_ULONG *)(template.pValue)); in soft_dh_genkey_pair()
131 free(template.pValue); in soft_dh_genkey_pair()
/onnv-gate/usr/src/lib/pkcs11/libpkcs11/common/
H A Dpkcs11SUNWExtensions.c290 CK_ATTRIBUTE template[NUM_SECRETKEY_ATTRS]; in SUNW_C_KeyToObject() local
317 template[i].type = CKA_CLASS; in SUNW_C_KeyToObject()
318 template[i].pValue = &objclass; in SUNW_C_KeyToObject()
319 template[i].ulValueLen = sizeof (objclass); in SUNW_C_KeyToObject()
328 template[i].type = CKA_KEY_TYPE; in SUNW_C_KeyToObject()
329 template[i].pValue = &keytype; in SUNW_C_KeyToObject()
330 template[i].ulValueLen = sizeof (keytype); in SUNW_C_KeyToObject()
342 template[i].type = mapping[j].attr; in SUNW_C_KeyToObject()
343 template[i].ulValueLen = sizeof (falsevalue); in SUNW_C_KeyToObject()
345 template[i].pValue = &truevalue; in SUNW_C_KeyToObject()
[all …]
/onnv-gate/usr/src/cmd/perl/5.8.4/distrib/lib/File/Temp/t/
H A Dmktemp.t20 my $template = File::Spec->catfile(File::Spec->tmpdir, 'wowserXXXX');
22 (my $fh, $template) = mkstemp($template);
24 print "# MKSTEMP: FH is $fh File is $template fileno=".fileno($fh)."\n";
26 ok( (-e $template) );
54 my $status = unlink0($fh, $template);
65 $template = "suffixXXXXXX";
68 ($fh, my $fname) = mkstemps($template, $suffix);
70 print "# MKSTEMPS: File is $template -> $fname fileno=".fileno($fh)."\n";
87 $template = File::Spec->catdir(File::Spec->tmpdir, 'tmpdirXXXXXX');
89 my $tmpdir = mkdtemp($template);
[all …]
/onnv-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/
H A Dencrypt.c118 CK_ATTRIBUTE template[6]; in init_key_uef() local
138 template[0].type = CKA_CLASS; in init_key_uef()
139 template[0].pValue = &class; in init_key_uef()
140 template[0].ulValueLen = sizeof (class); in init_key_uef()
141 template[1].type = CKA_KEY_TYPE; in init_key_uef()
142 template[1].pValue = &keyType; in init_key_uef()
143 template[1].ulValueLen = sizeof (keyType); in init_key_uef()
144 template[2].type = CKA_TOKEN; in init_key_uef()
145 template[2].pValue = &false; in init_key_uef()
146 template[2].ulValueLen = sizeof (false); in init_key_uef()
[all …]
/onnv-gate/usr/src/lib/libtsnet/common/
H A Dtsol_sgetrhent.c170 char *template = rhstrp->template; in rhstr_to_ent() local
188 if (template && *template != '\0' && *template != '#' && in rhstr_to_ent()
189 *template != '\n') in rhstr_to_ent()
190 *errstrp = template; in rhstr_to_ent()
197 if (template && *template != '\0' && *template != '#' && in rhstr_to_ent()
198 *template != '\n') in rhstr_to_ent()
199 *errstrp = template; in rhstr_to_ent()
202 if (template == NULL || *template == '#' || *template == '\n' || in rhstr_to_ent()
203 *template == '\0') { in rhstr_to_ent()
236 if (strlcpy(rhentp->rh_template, template, in rhstr_to_ent()
[all …]
H A Dtsol_getrhent.c80 (char *)addrp, rhstrp ? rhstrp->template : "NULL"); in tsol_getrhbyaddr()
121 rhstrp ? rhstrp->template : "NULL"); in tsol_getrhent()
196 rhstrp->template = _strtok_escape(NULL, sep, &last); in str_to_rhstr()
197 if (rhstrp->template != NULL) { in str_to_rhstr()
198 len = strlen(rhstrp->template); in str_to_rhstr()
199 if (rhstrp->template[len - 1] == '\n') in str_to_rhstr()
200 rhstrp->template[len - 1] = '\0'; in str_to_rhstr()
213 rhstrp->template ? rhstrp->template : "NULL"); in str_to_rhstr()
H A Dtsol_sgettpent.c240 char *template = tpstrp->template; in tpstr_to_ent() local
255 *errstrp = template; in tpstr_to_ent()
257 if (template == NULL || *template == '#' || *template == '\n') { in tpstr_to_ent()
261 else if (template == NULL) in tpstr_to_ent()
265 if (*template == '\0') { in tpstr_to_ent()
280 if ((strlcpy(tpentp->name, template, sizeof (tpentp->name)) >= in tpstr_to_ent()
/onnv-gate/usr/src/cmd/Adm/
H A Dmime.types6 application/vnd.oasis.opendocument.text-template ott
10 application/vnd.oasis.opendocument.graphics-template otg
12 application/vnd.oasis.opendocument.presentation-template otp
14 application/vnd.oasis.opendocument.spreadsheet-template ots
19 application/vnd.sun.xml.writer.template stw
24 application/vnd.sun.xml.calc.template stc
28 application/vnd.sun.xml.impress.template sti
31 application/vnd.sun.xml.draw.template std
39 application/vnd.openxmlformats-officedocument.wordprocessingml.template dotx
40 application/vnd.ms-word.template.macroenabled.12 dotm
[all …]
/onnv-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/enc_provider/
H A Darcfour_provider.c32 CK_ATTRIBUTE template[5]; in setup_arcfour_crypto() local
40 template[0].type = CKA_CLASS; in setup_arcfour_crypto()
41 template[0].pValue = &class; in setup_arcfour_crypto()
42 template[0].ulValueLen = sizeof (class); in setup_arcfour_crypto()
43 template[1].type = CKA_KEY_TYPE; in setup_arcfour_crypto()
44 template[1].pValue = &keyType; in setup_arcfour_crypto()
45 template[1].ulValueLen = sizeof (keyType); in setup_arcfour_crypto()
46 template[2].type = CKA_TOKEN; in setup_arcfour_crypto()
47 template[2].pValue = &false; in setup_arcfour_crypto()
48 template[2].ulValueLen = sizeof (false); in setup_arcfour_crypto()
[all …]
/onnv-gate/usr/src/cmd/perl/5.8.4/distrib/t/op/
H A Dpack.t370 my ($what, $template, $in, $out) = @$_;
371 my $got = $what eq 'u' ? (unpack $template, $in) : (pack $template, $in);
374 print "# ${un}pack ('$template', "._qq($in).') gave '._qq($out).
734 my ($template, @in) = @$_;
736 my $got = eval {pack $template, @in};
739 printf "# pack ('$template', %s) gave %s expected %s\n",
754 my ($template, $in, @out) = @$_;
755 my @got = eval {unpack $template, $in};
758 printf "# list unpack ('$template', %s) gave %s expected %s\n",
761 my $got = eval {unpack $template, $in};
[all …]
/onnv-gate/usr/src/lib/libc/port/gen/
H A Dmkdtemp.c37 mkdtemp(char *template) in mkdtemp() argument
43 t = strdupa(template); in mkdtemp()
45 r = mktemp(template); in mkdtemp()
50 if (mkdir(template, 0700) == 0) in mkdtemp()
58 (void) strcpy(template, t); in mkdtemp()
/onnv-gate/usr/src/cmd/perl/5.8.4/distrib/utils/
H A Dc2ph.PL292 %template = (
585 &build_template($name) unless defined $template{&psou($name)} ||
616 $template{$fname} = &scrunch($template{$fname}) if $perl;
677 print "\$${mname}'typedef = '" . &scrunch($template{$fname})
724 print '$',&munge($name),"'typedef = '", $template{$name}, "';\n";
849 local($template);
885 $template{$sname} .= 'X' x $revpad . ' ' if $revpad;
887 $template{$sname} .= 'x' x $pad . ' ' if $pad;
891 $template = &fetch_template($type);
892 &repeat_template($template,$count);
[all …]
/onnv-gate/usr/src/cmd/man/src/util/nsgmls.src/include/
H A DCharMap.h16 template<class T>
28 template<class T>
42 template<class T>
62 template<class T>
71 template<class T>
87 template<class T>
111 template<class T>
118 template<class T>
126 template<class T>
H A DRangeMap.h29 template < class From, class To >
36 template < class From, class To > class RangeMapIter;
37 template < class From, class To > class RangeMap;
39 template < class From, class To >
54 template < class From, class To >
H A DNamedTable.h22 template<class T> class NamedTableIter;
23 template<class T> class ConstNamedTableIter;
25 template<class T>
44 template<class T>
53 template<class T>
/onnv-gate/usr/src/lib/nsswitch/ldap/common/
H A Dtsol_gettpent.c64 char **attrs, **template; in _nss_ldap_tnrhtp2str() local
70 template = __ns_ldap_getAttr(result->entry, _TNRHTP_NAME); in _nss_ldap_tnrhtp2str()
71 if (template == NULL || template[0] == NULL || in _nss_ldap_tnrhtp2str()
72 (strlen(template[0]) < 1)) { in _nss_ldap_tnrhtp2str()
83 len = strlen(template[0]) + strlen(attrs[0]) + 2; in _nss_ldap_tnrhtp2str()
95 (void) snprintf(buffer, len, "%s:%s", template[0], attrs[0]); in _nss_ldap_tnrhtp2str()
H A Dtsol_getrhent.c79 char **addr, **template, *addr_out; in _nss_ldap_tnrhdb2str() local
102 template = __ns_ldap_getAttr(result->entry, _TNRHDB_TNAME); in _nss_ldap_tnrhdb2str()
103 if (template == NULL || template[0] == NULL || in _nss_ldap_tnrhdb2str()
104 (strlen(template[0]) < 1)) { in _nss_ldap_tnrhdb2str()
109 len = strlen(addr_out) + strlen(template[0]) + 2; in _nss_ldap_tnrhdb2str()
121 (void) snprintf(buffer, len, "%s:%s", addr_out, template[0]); in _nss_ldap_tnrhdb2str()
/onnv-gate/usr/src/lib/pkcs11/pkcs11_tpm/common/
H A Dobject.c369 rc = template_attribute_find(o->template, CKA_SENSITIVE, &attr); in object_create()
383 rc = template_attribute_find(o->template, CKA_EXTRACTABLE, in object_create()
398 (void) template_update_attribute(o->template, sensitive); in object_create()
399 (void) template_update_attribute(o->template, extractable); in object_create()
455 rc = template_copy(tmpl, old_obj->template); in object_copy()
499 o->template = tmpl; in object_copy()
528 count = template_get_count(obj->template); in object_flatten()
529 tmpl_len = template_get_compressed_size(obj->template); in object_flatten()
551 rc = template_flatten(obj->template, buf + offset); in object_flatten()
566 (void) template_free(obj->template); in object_free()
[all …]
H A Dkey_mgr.c149 publ_key_obj->template, in key_mgr_generate_key_pair()
150 priv_key_obj->template); in key_mgr_generate_key_pair()
167 flag = template_attribute_find(priv_key_obj->template, in key_mgr_generate_key_pair()
177 (void) template_update_attribute(priv_key_obj->template, in key_mgr_generate_key_pair()
186 flag = template_attribute_find(priv_key_obj->template, in key_mgr_generate_key_pair()
199 (void) template_update_attribute(priv_key_obj->template, in key_mgr_generate_key_pair()
263 rc = template_attribute_find(key2_obj->template, in key_mgr_wrap_key()
274 rc = template_attribute_find(key2_obj->template, CKA_CLASS, &attr); in key_mgr_wrap_key()
291 rc = template_attribute_find(key2_obj->template, in key_mgr_wrap_key()
300 rc = rsa_priv_wrap_get_data(key2_obj->template, length_only, in key_mgr_wrap_key()
[all …]
/onnv-gate/usr/src/uts/common/sys/crypto/
H A Dimpl.h611 #define KCF_PROV_CREATE_CTX_TEMPLATE(pd, mech, key, template, size, req) ( \ argument
614 (pd)->pd_prov_handle, mech, key, template, size, req) : \
681 #define KCF_PROV_ENCRYPT_INIT(pd, ctx, mech, key, template, req) ( \ argument
683 KCF_PROV_CIPHER_OPS(pd)->encrypt_init(ctx, mech, key, template, \
704 template, req) ( \ argument
708 template, req) : \
711 #define KCF_PROV_DECRYPT_INIT(pd, ctx, mech, key, template, req) ( \ argument
713 KCF_PROV_CIPHER_OPS(pd)->decrypt_init(ctx, mech, key, template, \
734 template, req) ( \ argument
738 template, req) : \
[all …]

123456789