/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | mkdtemp.c | 37 mkdtemp(char *template) argument 42 /* Save template */ 43 t = strdupa(template); 45 r = mktemp(template); 50 if (mkdir(template, 0700) == 0) 57 /* Reset template */ 58 (void) strcpy(template, t);
|
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/ |
H A D | encrypt.c | 56 * Create an template to improve HMAC performance later. 118 CK_ATTRIBUTE template[6]; local 138 template[0].type = CKA_CLASS; 139 template[0].pValue = &class; 140 template[0].ulValueLen = sizeof (class); 141 template[1].type = CKA_KEY_TYPE; 142 template[1].pValue = &keyType; 143 template[1].ulValueLen = sizeof (keyType); 144 template[2].type = CKA_TOKEN; 145 template[ [all...] |
/illumos-gate/usr/src/lib/pkcs11/pkcs11_kernel/common/ |
H A D | kernelAttributeUtil.c | 259 kernel_validate_attr(CK_ATTRIBUTE_PTR template, CK_ULONG ulAttrNum, argument 268 switch (template[i].type) { 270 *class = *((CK_OBJECT_CLASS*)template[i].pValue); 284 switch (template[i].type) { 305 rv = kernel_lookup_attr(template[i].type); 354 kernel_add_extra_attr(CK_ATTRIBUTE_PTR template, kernel_object_t *object_p) argument 366 attrp->attr.type = template->type; 367 attrp->attr.ulValueLen = template->ulValueLen; 369 if ((template->pValue != NULL) && 370 (template 452 get_extra_attr_from_object(kernel_object_t *object_p, CK_ATTRIBUTE_PTR template) argument 510 set_extra_attr_to_object(kernel_object_t *object_p, CK_ATTRIBUTE_TYPE type, CK_ATTRIBUTE_PTR template) argument 568 get_bigint_attr_from_template(biginteger_t *big, CK_ATTRIBUTE_PTR template) argument 596 get_bigint_attr_from_object(biginteger_t *big, CK_ATTRIBUTE_PTR template) argument 634 get_bool_attr_from_object(kernel_object_t *object_p, CK_ULONG bool_flag, CK_ATTRIBUTE_PTR template) argument 670 set_bool_attr_to_object(kernel_object_t *object_p, CK_ULONG bool_flag, CK_ATTRIBUTE_PTR template) argument 688 get_ulong_attr_from_object(CK_ULONG value, CK_ATTRIBUTE_PTR template) argument 720 get_ulong_attr_from_template(CK_ULONG *value, CK_ATTRIBUTE_PTR template) argument 788 string_attr_cleanup(CK_ATTRIBUTE_PTR template) argument 929 kernel_parse_common_attrs(CK_ATTRIBUTE_PTR template, kernel_session_t *sp, uint64_t *attr_mask_p) argument 999 kernel_build_public_key_object(CK_ATTRIBUTE_PTR template, CK_ULONG ulAttrNum, kernel_object_t *new_object, kernel_session_t *sp, uint_t mode) argument 1367 kernel_build_private_key_object(CK_ATTRIBUTE_PTR template, CK_ULONG ulAttrNum, kernel_object_t *new_object, kernel_session_t *sp, uint_t mode) argument 1841 kernel_build_secret_key_object(CK_ATTRIBUTE_PTR template, CK_ULONG ulAttrNum, kernel_object_t *new_object, kernel_session_t *sp) argument 2137 kernel_build_object(CK_ATTRIBUTE_PTR template, CK_ULONG ulAttrNum, kernel_object_t *new_object, kernel_session_t *sp, uint_t mode) argument 2194 kernel_get_common_attrs(kernel_object_t *object_p, CK_ATTRIBUTE_PTR template) argument 2265 kernel_get_common_key_attrs(kernel_object_t *object_p, CK_ATTRIBUTE_PTR template) argument 2309 kernel_get_public_key_attribute(kernel_object_t *object_p, CK_ATTRIBUTE_PTR template) argument 2463 kernel_get_private_key_attribute(kernel_object_t *object_p, CK_ATTRIBUTE_PTR template) argument 2708 kernel_get_secret_key_attribute(kernel_object_t *object_p, CK_ATTRIBUTE_PTR template) argument 2846 kernel_get_attribute(kernel_object_t *object_p, CK_ATTRIBUTE_PTR template) argument 2885 kernel_set_common_key_attribute(kernel_object_t *object_p, CK_ATTRIBUTE_PTR template, boolean_t copy, kernel_session_t *sp) argument 2972 kernel_set_public_key_attribute(kernel_object_t *object_p, CK_ATTRIBUTE_PTR template, boolean_t copy, kernel_session_t *sp) argument 3038 kernel_set_private_key_attribute(kernel_object_t *object_p, CK_ATTRIBUTE_PTR template, boolean_t copy, kernel_session_t *sp) argument 3136 kernel_set_secret_key_attribute(kernel_object_t *object_p, CK_ATTRIBUTE_PTR template, boolean_t copy, kernel_session_t *sp) argument 3230 kernel_set_attribute(kernel_object_t *object_p, CK_ATTRIBUTE_PTR template, boolean_t copy, kernel_session_t *sp) argument 3700 kernel_find_match_attrs(kernel_object_t *obj, CK_OBJECT_CLASS *pclasses, CK_ULONG num_pclasses, CK_ATTRIBUTE *template, CK_ULONG num_attr) argument [all...] |
/illumos-gate/usr/src/lib/pkcs11/pkcs11_softtoken/common/ |
H A D | softAttributeUtil.c | 265 soft_validate_attr(CK_ATTRIBUTE_PTR template, CK_ULONG ulAttrNum, argument 274 switch (template[i].type) { 276 *class = *((CK_OBJECT_CLASS*)template[i].pValue); 290 switch (template[i].type) { 311 rv = soft_lookup_attr(template[i].type); 447 soft_add_extra_attr(CK_ATTRIBUTE_PTR template, soft_object_t *object_p) argument 459 attrp->attr.type = template->type; 460 attrp->attr.ulValueLen = template->ulValueLen; 462 if ((template->pValue != NULL) && 463 (template 586 get_extra_attr_from_object(soft_object_t *object_p, CK_ATTRIBUTE_PTR template) argument 644 set_extra_attr_to_object(soft_object_t *object_p, CK_ATTRIBUTE_TYPE type, CK_ATTRIBUTE_PTR template) argument 702 get_bigint_attr_from_template(biginteger_t *big, CK_ATTRIBUTE_PTR template) argument 730 get_bigint_attr_from_object(biginteger_t *big, CK_ATTRIBUTE_PTR template) argument 768 get_bool_attr_from_object(soft_object_t *object_p, CK_ULONG bool_flag, CK_ATTRIBUTE_PTR template) argument 804 set_bool_attr_to_object(soft_object_t *object_p, CK_ULONG bool_flag, CK_ATTRIBUTE_PTR template) argument 822 get_ulong_attr_from_object(CK_ULONG value, CK_ATTRIBUTE_PTR template) argument 855 get_ulong_attr_from_template(CK_ULONG *value, CK_ATTRIBUTE_PTR template) argument 964 get_cert_attr_from_object(cert_attr_t *src, CK_ATTRIBUTE_PTR template) argument 988 string_attr_cleanup(CK_ATTRIBUTE_PTR template) argument 1216 soft_parse_common_attrs(CK_ATTRIBUTE_PTR template, uchar_t *object_type) argument 1284 soft_build_public_key_object(CK_ATTRIBUTE_PTR template, CK_ULONG ulAttrNum, soft_object_t *new_object, CK_ULONG mode, CK_KEY_TYPE key_type) argument 1850 soft_build_private_key_object(CK_ATTRIBUTE_PTR template, CK_ULONG ulAttrNum, soft_object_t *new_object, CK_ULONG mode, CK_KEY_TYPE key_type) argument 2518 soft_build_secret_key_object(CK_ATTRIBUTE_PTR template, CK_ULONG ulAttrNum, soft_object_t *new_object, CK_ULONG mode, CK_ULONG key_len, CK_KEY_TYPE key_type) argument 3173 soft_build_domain_parameters_object(CK_ATTRIBUTE_PTR template, CK_ULONG ulAttrNum, soft_object_t *new_object) argument 3399 soft_build_certificate_object(CK_ATTRIBUTE_PTR template, CK_ULONG ulAttrNum, soft_object_t *new_object, CK_CERTIFICATE_TYPE cert_type) argument 3594 soft_build_object(CK_ATTRIBUTE_PTR template, CK_ULONG ulAttrNum, soft_object_t *new_object) argument 3662 soft_build_key(CK_ATTRIBUTE_PTR template, CK_ULONG ulAttrNum, soft_object_t *new_object, CK_OBJECT_CLASS class, CK_KEY_TYPE key_type, CK_ULONG key_len, CK_ULONG mode) argument 3755 soft_get_common_attrs(soft_object_t *object_p, CK_ATTRIBUTE_PTR template, uchar_t object_type) argument 3823 soft_get_common_key_attrs(soft_object_t *object_p, CK_ATTRIBUTE_PTR template) argument 3865 soft_get_public_key_attribute(soft_object_t *object_p, CK_ATTRIBUTE_PTR template) argument 4038 soft_get_private_key_attribute(soft_object_t *object_p, CK_ATTRIBUTE_PTR template) argument 4308 soft_get_secret_key_attribute(soft_object_t *object_p, CK_ATTRIBUTE_PTR template) argument 4422 soft_get_domain_parameters_attribute(soft_object_t *object_p, CK_ATTRIBUTE_PTR template) argument 4540 soft_get_certificate_attribute(soft_object_t *object_p, CK_ATTRIBUTE_PTR template) argument 4595 soft_set_certificate_attribute(soft_object_t *object_p, CK_ATTRIBUTE_PTR template, boolean_t copy) argument 4653 soft_get_attribute(soft_object_t *object_p, CK_ATTRIBUTE_PTR template) argument 4695 soft_set_common_storage_attribute(soft_object_t *object_p, CK_ATTRIBUTE_PTR template, boolean_t copy) argument 4771 soft_set_common_key_attribute(soft_object_t *object_p, CK_ATTRIBUTE_PTR template, boolean_t copy) argument 4822 soft_set_public_key_attribute(soft_object_t *object_p, CK_ATTRIBUTE_PTR template, boolean_t copy) argument 4894 soft_set_private_key_attribute(soft_object_t *object_p, CK_ATTRIBUTE_PTR template, boolean_t copy) argument 5002 soft_set_secret_key_attribute(soft_object_t *object_p, CK_ATTRIBUTE_PTR template, boolean_t copy) argument 5098 soft_set_attribute(soft_object_t *object_p, CK_ATTRIBUTE_PTR template, boolean_t copy) argument 6484 soft_find_match_attrs(soft_object_t *obj, CK_OBJECT_CLASS *pclasses, CK_ULONG num_pclasses, CK_ATTRIBUTE *template, CK_ULONG num_attr) argument [all...] |
H A D | softEC.c | 150 CK_ATTRIBUTE template; local 166 template.type = CKA_EC_PARAMS; 167 template.pValue = param_buffer; 168 template.ulValueLen = sizeof (param_buffer); 169 rv = soft_get_public_key_attribute(pubkey, &template); 173 paramlen = template.ulValueLen; 176 rv = set_extra_attr_to_object(prikey, CKA_EC_PARAMS, &template); 217 CK_ATTRIBUTE template; local 234 template.type = CKA_VALUE; 235 template 335 CK_ATTRIBUTE template; local 537 CK_ATTRIBUTE template; local [all...] |
H A D | softDH.c | 91 CK_ATTRIBUTE template; local 112 template.pValue = malloc(sizeof (CK_ULONG)); 113 if (template.pValue == NULL) { 116 template.ulValueLen = sizeof (CK_ULONG); 118 &template); 120 free(template.pValue); 126 value_bits = (uint32_t)(*((CK_ULONG *)(template.pValue))); 128 value_bits = *((CK_ULONG *)(template.pValue)); 131 free(template.pValue);
|
/illumos-gate/usr/src/lib/pkcs11/libpkcs11/common/ |
H A D | pkcs11SUNWExtensions.c | 289 /* template for creating generic secret key object */ 290 CK_ATTRIBUTE template[NUM_SECRETKEY_ATTRS]; local 317 template[i].type = CKA_CLASS; 318 template[i].pValue = &objclass; 319 template[i].ulValueLen = sizeof (objclass); 328 template[i].type = CKA_KEY_TYPE; 329 template[i].pValue = &keytype; 330 template[i].ulValueLen = sizeof (keytype); 342 template[i].type = mapping[j].attr; 343 template[ 387 CK_ATTRIBUTE template[NUM_SECRETKEY_ATTRS]; local 511 CK_ATTRIBUTE template; local [all...] |
/illumos-gate/usr/src/lib/nsswitch/ldap/common/ |
H A D | tsol_gettpent.c | 64 char **attrs, **template; local 70 template = __ns_ldap_getAttr(result->entry, _TNRHTP_NAME); 71 if (template == NULL || template[0] == NULL || 72 (strlen(template[0]) < 1)) { 82 /* "template:attrs" */ 83 len = strlen(template[0]) + strlen(attrs[0]) + 2; 95 (void) snprintf(buffer, len, "%s:%s", template[0], attrs[0]);
|
H A D | tsol_getrhent.c | 79 char **addr, **template, *addr_out; local 102 template = __ns_ldap_getAttr(result->entry, _TNRHDB_TNAME); 103 if (template == NULL || template[0] == NULL || 104 (strlen(template[0]) < 1)) { 108 /* "addr:template" */ 109 len = strlen(addr_out) + strlen(template[0]) + 2; 121 (void) snprintf(buffer, len, "%s:%s", addr_out, template[0]);
|
/illumos-gate/usr/src/lib/libtsnet/common/ |
H A D | tsol_sgetrhent.c | 30 * template to use (from tnrhtp). 170 char *template = rhstrp->template; local 188 if (template && *template != '\0' && *template != '#' && 189 *template != '\n') 190 *errstrp = template; 197 if (template && *template ! [all...] |
H A D | tsol_getrhent.c | 80 (char *)addrp, rhstrp ? rhstrp->template : "NULL"); 121 rhstrp ? rhstrp->template : "NULL"); 196 rhstrp->template = _strtok_escape(NULL, sep, &last); 197 if (rhstrp->template != NULL) { 198 len = strlen(rhstrp->template); 199 if (rhstrp->template[len - 1] == '\n') 200 rhstrp->template[len - 1] = '\0'; 213 rhstrp->template ? rhstrp->template : "NULL");
|
H A D | tsol_sgettpent.c | 27 * These functions parse entries in the "tnrhtp" (remote host template) file. 29 * field is the template name. The second is a list of "key=value" attributes, 33 * colon in a line, nor any unescaped '=' or ';' characters in the template 240 char *template = tpstrp->template; local 255 *errstrp = template; 257 if (template == NULL || *template == '#' || *template == '\n') { 261 else if (template [all...] |
H A D | tsol_gettpent.c | 74 name, tpstrp ? tpstrp->template : "NULL"); 115 tpstrp ? tpstrp->template : "NULL"); 181 tpstrp->template = _strtok_escape(buffer, sep, &last); 192 instr, tpstrp->template ? tpstrp->template : "NULL",
|
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/enc_provider/ |
H A D | arcfour_provider.c | 32 CK_ATTRIBUTE template[5]; local 40 template[0].type = CKA_CLASS; 41 template[0].pValue = &class; 42 template[0].ulValueLen = sizeof (class); 43 template[1].type = CKA_KEY_TYPE; 44 template[1].pValue = &keyType; 45 template[1].ulValueLen = sizeof (keyType); 46 template[2].type = CKA_TOKEN; 47 template[2].pValue = &false; 48 template[ [all...] |
/illumos-gate/usr/src/cmd/passmgmt/ |
H A D | Makefile | 51 # datemsk is generated from datemsk.template because of a side-effect of 53 # SCCS confuses for ID keywords. datemsk.template should quote the "%" 57 datemsk: datemsk.template 58 @while read i; do echo $$i; done < datemsk.template > $@
|
/illumos-gate/usr/src/lib/pkcs11/pkcs11_tpm/common/ |
H A D | object.c | 369 rc = template_attribute_find(o->template, CKA_SENSITIVE, &attr); 383 rc = template_attribute_find(o->template, CKA_EXTRACTABLE, 398 (void) template_update_attribute(o->template, sensitive); 399 (void) template_update_attribute(o->template, extractable); 417 // object's attribute template plus any additional attributes that are 453 // copy the original object's attribute template 455 rc = template_copy(tmpl, old_obj->template); 483 // of the old template. 499 o->template = tmpl; 528 count = template_get_count(obj->template); [all...] |
H A D | key_mgr.c | 149 publ_key_obj->template, 150 priv_key_obj->template); 167 flag = template_attribute_find(priv_key_obj->template, 177 (void) template_update_attribute(priv_key_obj->template, 186 flag = template_attribute_find(priv_key_obj->template, 199 (void) template_update_attribute(priv_key_obj->template, 263 rc = template_attribute_find(key2_obj->template, 274 rc = template_attribute_find(key2_obj->template, CKA_CLASS, &attr); 291 rc = template_attribute_find(key2_obj->template, 300 rc = rsa_priv_wrap_get_data(key2_obj->template, length_onl [all...] |
H A D | sign_mgr.c | 56 rc = template_attribute_find(key_obj->template, CKA_SIGN, &attr); 69 rc = template_attribute_find(key_obj->template, 82 flag = template_attribute_find(key_obj->template, 102 rc = template_attribute_find(key_obj->template, 115 flag = template_attribute_find(key_obj->template, 142 rc = template_attribute_find(key_obj->template, 179 rc = template_attribute_find(key_obj->template,
|
H A D | verify_mgr.c | 60 rc = template_attribute_find(key_obj->template, CKA_VERIFY, &attr); 73 rc = template_attribute_find(key_obj->template, 84 flag = template_attribute_find(key_obj->template, 104 rc = template_attribute_find(key_obj->template, 115 flag = template_attribute_find(key_obj->template, 140 rc = template_attribute_find(key_obj->template, 175 rc = template_attribute_find(key_obj->template,
|
/illumos-gate/usr/src/cmd/lms/SyncLib/Include/ |
H A D | SPtr.h | 46 template 58 template<class X> 98 template<class X> 183 template 189 template
|
/illumos-gate/usr/src/cmd/ldap/ns_ldap/ |
H A D | ldapaddtsol.c | 61 data.template = ecol[1].ec_value.ec_value_val; 111 data.template = ecol[0].ec_value.ec_value_val; 115 (void) printf(gettext("Adding entry : %s\n"), data.template);
|
/illumos-gate/usr/src/cmd/cmd-inet/etc/ |
H A D | Makefile | 77 # datemsk.ndpd is generated from datemsk.template because of a side-effect of 79 # SCCS confuses for ID keywords. datemsk.template should quote the "%" 83 datemsk.ndpd: datemsk.template 84 @while read i; do echo $$i; done < datemsk.template > $@
|
/illumos-gate/usr/src/uts/common/sys/crypto/ |
H A D | impl.h | 604 #define KCF_PROV_CREATE_CTX_TEMPLATE(pd, mech, key, template, size, req) ( \ 607 (pd)->pd_prov_handle, mech, key, template, size, req) : \ 674 #define KCF_PROV_ENCRYPT_INIT(pd, ctx, mech, key, template, req) ( \ 676 KCF_PROV_CIPHER_OPS(pd)->encrypt_init(ctx, mech, key, template, \ 697 template, req) ( \ 701 template, req) : \ 704 #define KCF_PROV_DECRYPT_INIT(pd, ctx, mech, key, template, req) ( \ 706 KCF_PROV_CIPHER_OPS(pd)->decrypt_init(ctx, mech, key, template, \ 727 template, req) ( \ 731 template, re [all...] |
/illumos-gate/usr/src/uts/common/os/ |
H A D | contract.c | 56 * A contract template is represented by a ct_template_t, which, like a 57 * contract, points to an encapsulating contract-type specific template 58 * object. A ct_template_t contains the template's terms. 1184 contract_t template, *ct; local 1188 template.ct_id = current; 1189 ct = avl_find(tree, &template, &where); 1247 contract_t template, *ct; local 1251 template.ct_id = current; 1256 ct = avl_find(&contract_avl, &template, &where); 1267 ct = avl_find(&p->p_ct_held, &template, 1287 contract_t template, *ct; local 1501 ctmpl_free(ct_template_t *template) argument 1513 ctmpl_dup(ct_template_t *template) argument 1536 ctmpl_set(ct_template_t *template, ct_kparam_t *kparam, const cred_t *cr) argument 1606 ctmpl_get(ct_template_t *template, ct_kparam_t *kparam) argument 1649 ctmpl_makecurrent(ct_template_t *template, ct_template_t *new) argument 1671 ctmpl_activate(ct_template_t *template) argument 1683 ctmpl_clear(ct_template_t *template) argument 1694 ctmpl_create(ct_template_t *template, ctid_t *ctidp) argument 1745 ctmpl_create_inval(ct_template_t *template, ctid_t *ctidp) argument [all...] |
/illumos-gate/usr/src/cmd/svr4pkg/libinst/ |
H A D | copyf.c | 435 char template[PATH_MAX]; local 477 n = snprintf(template, sizeof (template), "%s%s%sXXXXXX", 479 if (n > sizeof (template)) { 486 tmpFd = mkstemp(template); 496 (void) unlink(template); 500 n = copyFile(fd, tmpFd, a_path, template, &statbuf, 0L);
|