/titanic_44/usr/src/lib/pkcs11/pkcs11_kernel/common/ |
H A D | kernelAttributeUtil.c | 259 kernel_validate_attr(CK_ATTRIBUTE_PTR template, CK_ULONG ulAttrNum, in kernel_validate_attr() argument 268 switch (template[i].type) { in kernel_validate_attr() 270 *class = *((CK_OBJECT_CLASS*)template[i].pValue); in kernel_validate_attr() 284 switch (template[i].type) { in kernel_validate_attr() 305 rv = kernel_lookup_attr(template[i].type); in kernel_validate_attr() 354 kernel_add_extra_attr(CK_ATTRIBUTE_PTR template, kernel_object_t *object_p) in kernel_add_extra_attr() argument 366 attrp->attr.type = template->type; in kernel_add_extra_attr() 367 attrp->attr.ulValueLen = template->ulValueLen; in kernel_add_extra_attr() 369 if ((template->pValue != NULL) && in kernel_add_extra_attr() 370 (template->ulValueLen > 0)) { in kernel_add_extra_attr() [all …]
|
/titanic_44/usr/src/lib/pkcs11/pkcs11_softtoken/common/ |
H A D | softAttributeUtil.c | 265 soft_validate_attr(CK_ATTRIBUTE_PTR template, CK_ULONG ulAttrNum, in soft_validate_attr() argument 274 switch (template[i].type) { in soft_validate_attr() 276 *class = *((CK_OBJECT_CLASS*)template[i].pValue); in soft_validate_attr() 290 switch (template[i].type) { in soft_validate_attr() 311 rv = soft_lookup_attr(template[i].type); in soft_validate_attr() 447 soft_add_extra_attr(CK_ATTRIBUTE_PTR template, soft_object_t *object_p) in soft_add_extra_attr() argument 459 attrp->attr.type = template->type; in soft_add_extra_attr() 460 attrp->attr.ulValueLen = template->ulValueLen; in soft_add_extra_attr() 462 if ((template->pValue != NULL) && in soft_add_extra_attr() 463 (template->ulValueLen > 0)) { in soft_add_extra_attr() [all …]
|
H A D | softEC.c | 150 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 D | softDH.c | 91 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()
|
/titanic_44/usr/src/lib/pkcs11/libpkcs11/common/ |
H A D | pkcs11SUNWExtensions.c | 290 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 …]
|
H A D | metaObjectManager.c | 885 CK_ATTRIBUTE template[WRAP_KEY_TEMPLATE_SIZE]; in create_wrap_unwrap_key() local 889 template[i].type = CKA_CLASS; in create_wrap_unwrap_key() 890 template[i].pValue = &objclass; in create_wrap_unwrap_key() 891 template[i].ulValueLen = sizeof (objclass); in create_wrap_unwrap_key() 895 template[i].type = CKA_KEY_TYPE; in create_wrap_unwrap_key() 896 template[i].pValue = &keytype; in create_wrap_unwrap_key() 897 template[i].ulValueLen = sizeof (keytype); in create_wrap_unwrap_key() 900 template[i].type = CKA_TOKEN; in create_wrap_unwrap_key() 901 template[i].pValue = &falsevalue; in create_wrap_unwrap_key() 902 template[i].ulValueLen = sizeof (falsevalue); in create_wrap_unwrap_key() [all …]
|
/titanic_44/usr/src/uts/common/gssapi/mechs/krb5/crypto/ |
H A D | encrypt.c | 118 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 …]
|
/titanic_44/usr/src/lib/libtsnet/common/ |
H A D | tsol_sgetrhent.c | 170 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 D | tsol_getrhent.c | 80 (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 D | tsol_sgettpent.c | 240 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()
|
/titanic_44/usr/src/cmd/Adm/ |
H A D | mime.types | 6 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 …]
|
H A D | mailcap | 6 application/vnd.oasis.opendocument.text-template; /usr/bin/soffice -view %s 10 application/vnd.sun.xml.writer.template; /usr/bin/soffice -view %s 21 application/vnd.oasis.opendocument.spreadsheet-template; /usr/bin/soffice -view %s 23 application/vnd.sun.xml.calc.template; /usr/bin/soffice -view %s 33 application/vnd.oasis.opendocument.presentation-template; /usr/bin/soffice -view %s 35 application/vnd.sun.xml.impress.template; /usr/bin/soffice -view %s 43 application/vnd.oasis.opendocument.graphics-template; /usr/bin/soffice -view %s 45 application/vnd.sun.xml.draw.template; /usr/bin/soffice -view %s
|
/titanic_44/usr/src/uts/common/gssapi/mechs/krb5/crypto/enc_provider/ |
H A D | arcfour_provider.c | 32 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 …]
|
/titanic_44/usr/src/lib/libc/port/gen/ |
H A D | mkdtemp.c | 37 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()
|
/titanic_44/usr/src/lib/nsswitch/ldap/common/ |
H A D | tsol_gettpent.c | 64 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 D | tsol_getrhent.c | 79 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()
|
/titanic_44/usr/src/lib/pkcs11/pkcs11_tpm/common/ |
H A D | object.c | 369 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 D | key_mgr.c | 149 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 …]
|
/titanic_44/usr/src/uts/common/sys/crypto/ |
H A D | impl.h | 604 #define KCF_PROV_CREATE_CTX_TEMPLATE(pd, mech, key, template, size, req) ( \ argument 607 (pd)->pd_prov_handle, mech, key, template, size, req) : \ 674 #define KCF_PROV_ENCRYPT_INIT(pd, ctx, mech, key, template, req) ( \ argument 676 KCF_PROV_CIPHER_OPS(pd)->encrypt_init(ctx, mech, key, template, \ 697 template, req) ( \ argument 701 template, req) : \ 704 #define KCF_PROV_DECRYPT_INIT(pd, ctx, mech, key, template, req) ( \ argument 706 KCF_PROV_CIPHER_OPS(pd)->decrypt_init(ctx, mech, key, template, \ 727 template, req) ( \ argument 731 template, req) : \ [all …]
|
/titanic_44/usr/src/cmd/fm/dicts/ |
H A D | FMNOTIFY.po | 32 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"
|
/titanic_44/usr/src/uts/common/os/ |
H A D | contract.c | 1184 contract_t template, *ct; in contract_lookup_common() local 1188 template.ct_id = current; in contract_lookup_common() 1189 ct = avl_find(tree, &template, &where); in contract_lookup_common() 1247 contract_t template, *ct; in contract_plookup() local 1251 template.ct_id = current; in contract_plookup() 1256 ct = avl_find(&contract_avl, &template, &where); in contract_plookup() 1267 ct = avl_find(&p->p_ct_held, &template, &where); in contract_plookup() 1287 contract_t template, *ct; in contract_ptr_common() local 1289 template.ct_id = id; in contract_ptr_common() 1290 ct = avl_find(tree, &template, NULL); in contract_ptr_common() [all …]
|
/titanic_44/usr/src/lib/gss_mechs/mech_krb5/support/ |
H A D | fake-addrinfo.c | 531 int port, const struct addrinfo *template) in fai_add_entry() argument 536 if (template->ai_family != AF_INET in fai_add_entry() 538 && template->ai_family != AF_INET6 in fai_add_entry() 542 *n = *template; in fai_add_entry() 543 if (template->ai_family == AF_INET) { in fai_add_entry() 558 if (template->ai_family == AF_INET6) { in fai_add_entry() 651 struct addrinfo *template, in fai_add_hosts_by_name() argument 761 template->ai_family = AF_INET6; in fai_add_hosts_by_name() 762 template->ai_addrlen = sizeof(struct sockaddr_in6); in fai_add_hosts_by_name() 764 r = fai_add_entry (result, &ce->addrs6[i], portnum, template); in fai_add_hosts_by_name() [all …]
|
/titanic_44/usr/src/cmd/cmd-crypto/digest/ |
H A D | digest.c | 617 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() 624 template[nattr].ulValueLen = sizeof (class); in execute_cmd() 627 template[nattr].type = CKA_KEY_TYPE; in execute_cmd() 628 template[nattr].pValue = &tmpl_keytype; in execute_cmd() 629 template[nattr].ulValueLen = sizeof (tmpl_keytype); in execute_cmd() 632 template[nattr].type = CKA_SIGN; in execute_cmd() 633 template[nattr].pValue = &true; in execute_cmd() 634 template[nattr].ulValueLen = sizeof (true); in execute_cmd() [all …]
|
/titanic_44/usr/src/cmd/svr4pkg/libinst/ |
H A D | copyf.c | 435 char template[PATH_MAX]; in openLocal() local 477 n = snprintf(template, sizeof (template), "%s%s%sXXXXXX", in openLocal() 479 if (n > sizeof (template)) { in openLocal() 486 tmpFd = mkstemp(template); in openLocal() 496 (void) unlink(template); in openLocal() 500 n = copyFile(fd, tmpFd, a_path, template, &statbuf, 0L); in openLocal()
|
/titanic_44/usr/src/lib/libinetutil/common/ |
H A D | ofmt.c | 131 split_fields(const ofmt_field_t *template, uint_t maxfields, uint_t maxcols) in split_fields() argument 145 cols += template[i].of_width; in split_fields() 153 sp->s_fields[sp->s_nfields++] = template[i].of_name; in split_fields() 178 ofmt_open(const char *str, const ofmt_field_t *template, uint_t flags, in ofmt_open() argument 208 if (template == NULL) in ofmt_open() 210 for (ofp = template; ofp->of_name != NULL; ofp++) in ofmt_open() 221 sp = split_fields(template, nfields, maxcols); in ofmt_open() 243 template[j].of_name) == 0) { in ofmt_open() 262 of[of_index].of_name = strdup(template[j].of_name); in ofmt_open() 270 of[of_index].of_width = template[j].of_width; in ofmt_open() [all …]
|