Home
last modified time | relevance | path

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

123456

/illumos-gate/usr/src/lib/pkcs11/pkcs11_kernel/common/
H A DkernelAttributeUtil.c1131 &template[i]); in kernel_build_public_key_object()
1139 &template[i]); in kernel_build_public_key_object()
1147 &template[i]); in kernel_build_public_key_object()
2203 template)); in kernel_get_common_attrs()
2246 template)); in kernel_get_common_attrs()
2273 template)); in kernel_get_common_key_attrs()
2282 template)); in kernel_get_common_key_attrs()
2295 template)); in kernel_get_common_key_attrs()
2324 template)); in kernel_get_public_key_attribute()
2500 template)); in kernel_get_private_key_attribute()
[all …]
/illumos-gate/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftAttributeUtil.c987 freezero(template->pValue, template->ulValueLen); in string_attr_cleanup()
3754 template));
3793 template));
3819 template));
3828 template));
3841 template));
3869 template));
4064 template));
4609 template->type, template));
4616 template->type, template));
[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()
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()
245 template.type = CKA_EC_PARAMS; in soft_ec_key_derive()
246 template.pValue = params; in soft_ec_key_derive()
335 CK_ATTRIBUTE template; in soft_ecc_sign_verify_init_common() local
375 template.pValue = params; in soft_ecc_sign_verify_init_common()
537 CK_ATTRIBUTE template; in soft_ecc_verify() local
[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()
/illumos-gate/usr/src/lib/pkcs11/libpkcs11/common/
H A Dpkcs11SUNWExtensions.c317 template[i].type = CKA_CLASS; in SUNW_C_KeyToObject()
353 template[i].type = CKA_TOKEN; in SUNW_C_KeyToObject()
359 template[i].type = CKA_VALUE; in SUNW_C_KeyToObject()
453 template[i].type = CKA_CLASS; in pkcs11_PasswdToPBKD2Object()
511 CK_ATTRIBUTE template; in pkcs11_ObjectToKey() local
520 template.type = CKA_VALUE; in pkcs11_ObjectToKey()
521 template.pValue = NULL; in pkcs11_ObjectToKey()
522 template.ulValueLen = 0; in pkcs11_ObjectToKey()
530 template.pValue = malloc(template.ulValueLen); in pkcs11_ObjectToKey()
538 free(template.pValue); in pkcs11_ObjectToKey()
[all …]
H A DmetaObjectManager.c893 template[i].type = CKA_CLASS; in create_wrap_unwrap_key()
894 template[i].pValue = &objclass; in create_wrap_unwrap_key()
900 template[i].pValue = &keytype; in create_wrap_unwrap_key()
904 template[i].type = CKA_TOKEN; in create_wrap_unwrap_key()
911 template[i].type = CKA_VALUE; in create_wrap_unwrap_key()
912 template[i].pValue = key_data; in create_wrap_unwrap_key()
916 template[i].type = CKA_WRAP; in create_wrap_unwrap_key()
921 template[i].type = CKA_UNWRAP; in create_wrap_unwrap_key()
928 template[i].pValue = Modulus; in create_wrap_unwrap_key()
935 template[i].pValue = PubExpo; in create_wrap_unwrap_key()
[all …]
/illumos-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()
142 template[1].pValue = &keyType; in init_key_uef()
144 template[2].type = CKA_TOKEN; in init_key_uef()
145 template[2].pValue = &false; in init_key_uef()
147 template[3].type = CKA_ENCRYPT; in init_key_uef()
148 template[3].pValue = &true; in init_key_uef()
150 template[4].type = CKA_DECRYPT; in init_key_uef()
151 template[4].pValue = &true; in init_key_uef()
[all …]
/illumos-gate/usr/src/lib/libtsnet/common/
H A Dtsol_sgetrhent.c168 char *template = rhstrp->template; in rhstr_to_ent() local
186 if (template && *template != '\0' && *template != '#' && in rhstr_to_ent()
187 *template != '\n') in rhstr_to_ent()
188 *errstrp = template; in rhstr_to_ent()
195 if (template && *template != '\0' && *template != '#' && in rhstr_to_ent()
196 *template != '\n') in rhstr_to_ent()
197 *errstrp = template; in rhstr_to_ent()
200 if (template == NULL || *template == '#' || *template == '\n' || in rhstr_to_ent()
201 *template == '\0') { in rhstr_to_ent()
234 if (strlcpy(rhentp->rh_template, template, in rhstr_to_ent()
[all …]
H A Dtsol_getrhent.c78 (char *)addrp, rhstrp ? rhstrp->template : "NULL"); in tsol_getrhbyaddr()
119 rhstrp ? rhstrp->template : "NULL"); in tsol_getrhent()
194 rhstrp->template = _strtok_escape(NULL, sep, &last); in str_to_rhstr()
195 if (rhstrp->template != NULL) { in str_to_rhstr()
196 len = strlen(rhstrp->template); in str_to_rhstr()
197 if (rhstrp->template[len - 1] == '\n') in str_to_rhstr()
198 rhstrp->template[len - 1] = '\0'; in str_to_rhstr()
211 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()
/illumos-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
40 application/vnd.ms-word.template.macroenabled.12 dotm
44 application/vnd.ms-excel.template.macroenabled.12 xltm
[all …]
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/enc_provider/
H A Darcfour_provider.c31 CK_ATTRIBUTE template[5]; in setup_arcfour_crypto() local
39 template[0].type = CKA_CLASS; in setup_arcfour_crypto()
40 template[0].pValue = &class; in setup_arcfour_crypto()
42 template[1].type = CKA_KEY_TYPE; in setup_arcfour_crypto()
43 template[1].pValue = &keyType; in setup_arcfour_crypto()
45 template[2].type = CKA_TOKEN; in setup_arcfour_crypto()
46 template[2].pValue = &false; in setup_arcfour_crypto()
48 template[3].type = CKA_ENCRYPT; in setup_arcfour_crypto()
49 template[3].pValue = &true; in setup_arcfour_crypto()
51 template[4].type = CKA_VALUE; in setup_arcfour_crypto()
[all …]
/illumos-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()
/illumos-gate/usr/src/lib/pkcs11/pkcs11_tpm/common/
H A Dobject.c455 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()
551 rc = template_flatten(obj->template, buf + offset); in object_flatten()
566 (void) template_free(obj->template); in object_free()
631 found = template_attribute_find(obj->template, in object_is_token_object()
673 obj_tmpl = obj->template; in object_get_attribute_values()
744 rc = template_merge(obj->template, &new_tmpl); in object_set_attribute_values()
789 obj->template = tmpl; in object_restore()
794 (void) template_free((*new_obj)->template); in object_restore()
[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()
291 rc = template_attribute_find(key2_obj->template, in key_mgr_wrap_key()
308 rc = generic_secret_wrap_get_data(key2_obj->template, in key_mgr_wrap_key()
478 rc = secret_key_unwrap(key_obj->template, keytype, data, in key_mgr_unwrap_key()
[all …]
/illumos-gate/usr/src/lib/nsswitch/ldap/common/
H A Dtsol_gettpent.c62 char **attrs, **template; in _nss_ldap_tnrhtp2str() local
68 template = __ns_ldap_getAttr(result->entry, _TNRHTP_NAME); in _nss_ldap_tnrhtp2str()
69 if (template == NULL || template[0] == NULL || in _nss_ldap_tnrhtp2str()
70 (strlen(template[0]) < 1)) { in _nss_ldap_tnrhtp2str()
81 len = strlen(template[0]) + strlen(attrs[0]) + 2; in _nss_ldap_tnrhtp2str()
93 (void) snprintf(buffer, len, "%s:%s", template[0], attrs[0]); in _nss_ldap_tnrhtp2str()
H A Dtsol_getrhent.c77 char **addr, **template, *addr_out; in _nss_ldap_tnrhdb2str() local
100 template = __ns_ldap_getAttr(result->entry, _TNRHDB_TNAME); in _nss_ldap_tnrhdb2str()
101 if (template == NULL || template[0] == NULL || in _nss_ldap_tnrhdb2str()
102 (strlen(template[0]) < 1)) { in _nss_ldap_tnrhdb2str()
107 len = strlen(addr_out) + strlen(template[0]) + 2; in _nss_ldap_tnrhdb2str()
119 (void) snprintf(buffer, len, "%s:%s", addr_out, template[0]); in _nss_ldap_tnrhdb2str()
/illumos-gate/usr/src/uts/common/sys/crypto/
H A Dimpl.h697 template, req) ( \ argument
701 template, req) : \
727 template, req) ( \ argument
731 template, req) : \
771 template, req) ( \ argument
864 template, req) : CRYPTO_NOT_SUPPORTED)
877 template, data, req) ( \ argument
1078 session, object, template, count, new_object, req) : \
1136 session, mech, template, count, object, req) : \
1156 wrapped_key_len, template, count, key, req) ( \ argument
[all …]
/illumos-gate/usr/src/test/os-tests/tests/syscall/
H A Dfchmodat.c34 char template[MAXPATHLEN]; in main() local
40 if (strlcpy(template, "/tmp/XXXXXX", sizeof (template)) in main()
41 >= sizeof (template)) { in main()
47 if ((path = mkdtemp(template)) == NULL) { in main()
/illumos-gate/usr/src/cmd/bhyve/test/tests/mevent/
H A Dvnode_file.c122 char *template = strdup("/tmp/mevent.vnode.XXXXXX"); in main() local
123 ASSERT_PTR_NEQ(("strdup"), template, NULL); in main()
124 fd = mkstemp(template); in main()
128 VERBOSE(("Opened temporary file at '%s'", template)); in main()
146 unlink(template); in main()
147 free(template); in main()
H A Dvnode_zvol.c134 char *template, *pool, *vol, *backend; in main() local
149 template = strdup("/tmp/mevent.vnode.zvol.XXXXXX"); in main()
150 ASSERT_PTR_NEQ(("strdup"), template, NULL); in main()
151 fd = mkstemp(template); in main()
154 VERBOSE(("Opened temporary file at '%s'", template)); in main()
175 create_zpool(zfshdl, pool, template); in main()
253 (void) unlink(template); in main()
/illumos-gate/usr/src/uts/common/os/
H A Dcontract.c1187 contract_t template, *ct; in contract_lookup_common() local
1191 template.ct_id = current; in contract_lookup_common()
1250 contract_t template, *ct; in contract_plookup() local
1292 template.ct_id = id; in contract_ptr_common()
1507 template->ctmpl_ops->ctop_free(template); in ctmpl_free()
1520 if (template == NULL) in ctmpl_dup()
1523 new = template->ctmpl_ops->ctop_dup(template); in ctmpl_dup()
1586 result = template->ctmpl_ops->ctop_set(template, kparam, cr); in ctmpl_set()
1643 result = template->ctmpl_ops->ctop_get(template, kparam); in ctmpl_get()
1681 ctmpl_makecurrent(template, ctmpl_dup(template)); in ctmpl_activate()
[all …]
/illumos-gate/usr/src/cmd/fm/dicts/
H A DFMNOTIFY.po32 msgid "smtp-notify-subject-template"
41 msgid "smtp-notify-smf-subject-template"
50 msgid "smtp-notify-fm-subject-template"
54 # Generic message template for raw software events
56 msgid "ireport-msg-template"
60 # default email message template for SMF service state transition events
62 msgid "ireport.os.smf-msg-template"
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/support/
H A Dfake-addrinfo.c538 && template->ai_family != AF_INET6 in fai_add_entry()
542 *n = *template; in fai_add_entry()
651 struct addrinfo *template, in fai_add_hosts_by_name() argument
770 template->ai_family = AF_INET; in fai_add_hosts_by_name()
831 struct addrinfo template; in fake_getaddrinfo() local
883 template.ai_family = AF_INET; in fake_getaddrinfo()
886 template.ai_protocol = 0; in fake_getaddrinfo()
887 template.ai_flags = 0; in fake_getaddrinfo()
888 template.ai_canonname = 0; in fake_getaddrinfo()
889 template.ai_next = 0; in fake_getaddrinfo()
[all …]
/illumos-gate/usr/src/cmd/cmd-crypto/digest/
H A Ddigest.c617 CK_ATTRIBUTE template[5]; in execute_cmd() local
622 template[nattr].type = CKA_CLASS; in execute_cmd()
623 template[nattr].pValue = &class; in execute_cmd()
627 template[nattr].type = CKA_KEY_TYPE; in execute_cmd()
632 template[nattr].type = CKA_SIGN; in execute_cmd()
633 template[nattr].pValue = &true; in execute_cmd()
637 template[nattr].type = CKA_TOKEN; in execute_cmd()
638 template[nattr].pValue = &false; in execute_cmd()
642 template[nattr].type = CKA_VALUE; in execute_cmd()
643 template[nattr].pValue = pkeydata; in execute_cmd()
[all …]

123456