Searched defs:template (Results 1 - 25 of 27) sorted by relevance

12

/osnet-11/usr/src/lib/libc/port/gen/
H A Dmkdtemp.c37 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);
H A Dmktemp.c231 mktemp(char *template) argument
233 return (libc_mktemps(template, 0));
/osnet-11/usr/src/lib/libtsnet/common/
H A Dtsol_sgetrhent.c31 * template to use (from tnrhtp).
169 char *template = rhstrp->rhstr_template; local
187 if (template && *template != '\0' && *template != '#' &&
188 *template != '\n')
189 *errstrp = template;
196 if (template && *template != '\0' && *template !
[all...]
H A Dtsol_sgettpent.c26 * These functions parse entries in the "tnrhtp" (remote host template) file.
28 * field is the template name. The second is a list of "key=value" attributes,
32 * colon in a line, nor any unescaped '=' or ';' characters in the template
304 char *template = tpstrp->tpstr_template; local
319 *errstrp = template;
321 if (template == NULL || *template == '#' || *template == '\n') {
325 else if (template == NULL)
329 if (*template
[all...]
/osnet-11/usr/src/lib/nsswitch/ldap/common/
H A Dtsol_gettpent.c64 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 Dtsol_getrhent.c79 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]);
/osnet-11/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftDH.c91 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);
H A DsoftEC.c153 CK_ATTRIBUTE template; local
169 template.type = CKA_EC_PARAMS;
170 template.pValue = param_buffer;
171 template.ulValueLen = sizeof (param_buffer);
172 rv = soft_get_public_key_attribute(pubkey, &template);
176 paramlen = template.ulValueLen;
179 rv = set_extra_attr_to_object(prikey, CKA_EC_PARAMS, &template);
221 CK_ATTRIBUTE template; local
238 template.type = CKA_VALUE;
239 template
345 CK_ATTRIBUTE template; local
547 CK_ATTRIBUTE template; local
[all...]
H A DsoftKeystore.c437 CK_ATTRIBUTE template; local
473 (void) memset(&template, 0, sizeof (CK_ATTRIBUTE));
474 template.type = (CK_ATTRIBUTE_TYPE)(SWAP64(attr_hdr->type));
475 template.ulValueLen = (CK_ULONG)(SWAP64(attr_hdr->ulValueLen));
478 if (template.ulValueLen > 0) {
479 template.pValue = malloc(template.ulValueLen);
480 if (template.pValue == NULL) {
483 (void) memcpy(template.pValue, buf,
484 template
539 CK_ATTRIBUTE template; local
[all...]
H A DsoftRSA.c828 CK_ATTRIBUTE template; local
851 template.pValue = malloc(sizeof (CK_ULONG));
852 if (template.pValue == NULL) {
855 template.ulValueLen = sizeof (CK_ULONG);
858 &template);
860 free(template.pValue);
866 modulus_len = (uint32_t)(*((CK_ULONG *)(template.pValue)));
868 modulus_len = *((CK_ULONG *)(template.pValue));
871 free(template.pValue);
909 * Add modulus in public template, an
[all...]
H A DsoftAttributeUtil.c264 soft_validate_attr(CK_ATTRIBUTE_PTR template, CK_ULONG ulAttrNum, argument
273 switch (template[i].type) {
275 *class = *((CK_OBJECT_CLASS*)template[i].pValue);
289 switch (template[i].type) {
310 rv = soft_lookup_attr(template[i].type);
446 soft_add_extra_attr(CK_ATTRIBUTE_PTR template, soft_object_t *object_p) argument
458 attrp->attr.type = template->type;
459 attrp->attr.ulValueLen = template->ulValueLen;
461 if ((template->pValue != NULL) &&
462 (template
590 get_extra_attr_from_object(soft_object_t *object_p, CK_ATTRIBUTE_PTR template) argument
648 set_extra_attr_to_object(soft_object_t *object_p, CK_ATTRIBUTE_TYPE type, CK_ATTRIBUTE_PTR template) argument
706 get_bigint_attr_from_template(biginteger_t *big, CK_ATTRIBUTE_PTR template) argument
734 get_bigint_attr_from_object(biginteger_t *big, CK_ATTRIBUTE_PTR template) argument
772 get_bool_attr_from_object(soft_object_t *object_p, CK_ULONG bool_flag, CK_ATTRIBUTE_PTR template) argument
808 set_bool_attr_to_object(soft_object_t *object_p, CK_ULONG bool_flag, CK_ATTRIBUTE_PTR template) argument
826 get_ulong_attr_from_object(CK_ULONG value, CK_ATTRIBUTE_PTR template) argument
859 get_ulong_attr_from_template(CK_ULONG *value, CK_ATTRIBUTE_PTR template) argument
999 get_cert_attr_from_object(cert_attr_t *src, CK_ATTRIBUTE_PTR template) argument
1023 string_attr_cleanup(CK_ATTRIBUTE_PTR template) argument
1252 soft_parse_common_attrs(CK_ATTRIBUTE_PTR template, uchar_t *object_type) argument
1320 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
1889 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
2566 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
3224 soft_build_domain_parameters_object(CK_ATTRIBUTE_PTR template, CK_ULONG ulAttrNum, soft_object_t *new_object) argument
3450 soft_build_certificate_object(CK_ATTRIBUTE_PTR template, CK_ULONG ulAttrNum, soft_object_t *new_object, CK_CERTIFICATE_TYPE cert_type) argument
3647 soft_build_object(CK_ATTRIBUTE_PTR template, CK_ULONG ulAttrNum, soft_object_t *new_object) argument
3715 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
3808 soft_get_common_attrs(soft_object_t *object_p, CK_ATTRIBUTE_PTR template, uchar_t object_type) argument
3876 soft_get_common_key_attrs(soft_object_t *object_p, CK_ATTRIBUTE_PTR template) argument
3918 soft_get_public_key_attribute(soft_object_t *object_p, CK_ATTRIBUTE_PTR template) argument
4091 soft_get_private_key_attribute(soft_object_t *object_p, CK_ATTRIBUTE_PTR template) argument
4361 soft_get_secret_key_attribute(soft_object_t *object_p, CK_ATTRIBUTE_PTR template) argument
4475 soft_get_domain_parameters_attribute(soft_object_t *object_p, CK_ATTRIBUTE_PTR template) argument
4593 soft_get_certificate_attribute(soft_object_t *object_p, CK_ATTRIBUTE_PTR template) argument
4654 soft_set_certificate_attribute(soft_object_t *object_p, CK_ATTRIBUTE_PTR template, boolean_t copy) argument
4718 soft_get_attribute(soft_object_t *object_p, CK_ATTRIBUTE_PTR template) argument
4760 soft_set_common_storage_attribute(soft_object_t *object_p, CK_ATTRIBUTE_PTR template, boolean_t copy) argument
4836 soft_set_common_key_attribute(soft_object_t *object_p, CK_ATTRIBUTE_PTR template, boolean_t copy) argument
4887 soft_set_public_key_attribute(soft_object_t *object_p, CK_ATTRIBUTE_PTR template, boolean_t copy) argument
4959 soft_set_private_key_attribute(soft_object_t *object_p, CK_ATTRIBUTE_PTR template, boolean_t copy) argument
5067 soft_set_secret_key_attribute(soft_object_t *object_p, CK_ATTRIBUTE_PTR template, boolean_t copy) argument
5163 soft_set_attribute(soft_object_t *object_p, CK_ATTRIBUTE_PTR template, boolean_t copy) argument
6549 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...]
/osnet-11/usr/src/lib/libshell/common/sh/
H A Dsuid_exec.c472 * create a unique name into the <template>
475 static void maketemp(char *template) argument
477 register char *cp = template;
/osnet-11/usr/src/grub/grub2/grub-core/gfxmenu/
H A Dgui_label.c49 char *template; member in struct:grub_gui_label
64 grub_free (self->template);
163 self->text = grub_xasprintf (self->template ? : "%d", self->value);
173 grub_free (self->template);
176 self->template = NULL;
181 self->template = grub_strdup (value);
H A Dgui_progress_bar.c41 char *template; member in struct:grub_gui_progress_bar
161 if (self->template)
169 text = grub_xasprintf (self->template,
247 if (self->template)
249 text_width = grub_font_get_string_width (self->font, self->template);
279 grub_free (self->template);
294 self->template = grub_strdup (value);
/osnet-11/usr/src/lib/pkcs11/libpkcs11/common/
H A DmetaAttrManager.c103 * the supplied object template. The template is only used to determine the
109 CK_ATTRIBUTE *template, CK_ULONG template_size,
116 found = get_template_ulong(CKA_CLASS, template, template_size, &class);
124 template, template_size, &subtype);
128 template, template_size, &subtype);
135 template, template_size, &subtype);
390 /* Determine the appropriate master template needed. */
396 /* Duplicate the master template. */
424 /* Secret keys share a common template, s
108 get_master_attributes_by_template( CK_ATTRIBUTE *template, CK_ULONG template_size, generic_attr_t **attributes, size_t *num_attributes) argument
[all...]
H A Dpkcs11SUNWExtensions.c289 /* 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...]
H A DmetaUtil.c1329 CK_ATTRIBUTE *template, CK_ULONG template_size,
1401 template, template_size, &hUnwrappedKey);
1326 meta_unwrap_key(meta_session_t *session, CK_MECHANISM *pMechanism, meta_object_t *unwrapping_key, CK_BYTE *wrapped_key, CK_ULONG wrapped_key_len, CK_ATTRIBUTE *template, CK_ULONG template_size, meta_object_t *unwrapped_key) argument
H A DmetaObjectManager.c35 /* Size of the template for creating key used for wrap/unwrap */
752 * first, get the master template of all the attributes
879 * The same template will be used for all wrapping/unwrapping keys all
892 CK_ATTRIBUTE template[WRAP_KEY_TEMPLATE_SIZE]; local
896 template[i].type = CKA_CLASS;
897 template[i].pValue = &objclass;
898 template[i].ulValueLen = sizeof (objclass);
902 template[i].type = CKA_KEY_TYPE;
903 template[i].pValue = &keytype;
904 template[
[all...]
/osnet-11/usr/src/lib/libinetutil/common/
H A Dofmt.c131 split_fields(const ofmt_field_t *template, uint_t maxfields, uint_t maxcols) argument
145 cols += template[i].of_width;
153 sp->s_fields[sp->s_nfields++] = template[i].of_name;
178 ofmt_open(const char *str, const ofmt_field_t *template, uint_t flags, argument
208 if (template == NULL)
210 for (ofp = template; ofp->of_name != NULL; ofp++)
221 sp = split_fields(template, nfields, maxcols);
238 * nfields is the number of fields in template.
243 template[j].of_name) == 0) {
262 of[of_index].of_name = strdup(template[
[all...]
/osnet-11/usr/src/lib/pkcs11/pkcs11_kms/common/
H A DkmsAttributeUtil.c150 kms_validate_attr(CK_ATTRIBUTE_PTR template, CK_ULONG ulAttrNum, argument
159 switch (template[i].type) {
161 *class = *((CK_OBJECT_CLASS*)template[i].pValue);
175 switch (template[i].type) {
196 rv = kms_lookup_attr(template[i].type);
247 kms_add_extra_attr(CK_ATTRIBUTE_PTR template, kms_object_t *object_p) argument
259 attrp->attr.type = template->type;
260 attrp->attr.ulValueLen = template->ulValueLen;
262 if ((template->pValue != NULL) &&
263 (template
343 get_extra_attr_from_object(kms_object_t *object_p, CK_ATTRIBUTE_PTR template) argument
399 set_extra_attr_to_object(kms_object_t *object_p, CK_ATTRIBUTE_TYPE type, CK_ATTRIBUTE_PTR template) argument
456 get_bool_attr_from_object(kms_object_t *object_p, CK_ULONG bool_flag, CK_ATTRIBUTE_PTR template) argument
492 set_bool_attr_to_object(kms_object_t *object_p, CK_ULONG bool_flag, CK_ATTRIBUTE_PTR template) argument
510 get_ulong_attr_from_object(CK_ULONG value, CK_ATTRIBUTE_PTR template) argument
562 string_attr_cleanup(CK_ATTRIBUTE_PTR template) argument
578 kms_parse_common_attrs(CK_ATTRIBUTE_PTR template, uint64_t *attr_mask_p) argument
639 kms_build_secret_key_object(CK_ATTRIBUTE_PTR template, CK_ULONG ulAttrNum, kms_object_t *new_object) argument
882 kms_build_object(CK_ATTRIBUTE_PTR template, CK_ULONG ulAttrNum, kms_object_t *new_object) argument
931 kms_get_common_attrs(kms_object_t *object_p, CK_ATTRIBUTE_PTR template) argument
999 kms_get_common_key_attrs(kms_object_t *object_p, CK_ATTRIBUTE_PTR template) argument
1045 kms_get_secret_key_attribute(kms_object_t *object_p, CK_ATTRIBUTE_PTR template) argument
1180 kms_get_attribute(kms_object_t *object_p, CK_ATTRIBUTE_PTR template) argument
1212 kms_set_common_key_attribute(kms_object_t *object_p, CK_ATTRIBUTE_PTR template, boolean_t copy) argument
1297 kms_set_secret_key_attribute(kms_object_t *object_p, CK_ATTRIBUTE_PTR template, boolean_t copy) argument
1390 kms_set_attribute(kms_object_t *object_p, CK_ATTRIBUTE_PTR template, boolean_t copy) argument
1507 kms_find_match_attrs(kms_object_t *obj, CK_OBJECT_CLASS *pclasses, CK_ULONG num_pclasses, CK_ATTRIBUTE *template, CK_ULONG num_attr) argument
[all...]
H A DkmsKeystoreUtil.c653 CK_ATTRIBUTE template[] = { local
667 template[0].pValue = &bTrue;
668 template[1].pValue = label;
669 template[1].ulValueLen = strlen(label);
670 template[2].pValue = &keytype;
671 template[3].pValue = &class;
672 template[4].pValue = pKey->m_acKey;
673 template[4].ulValueLen = pKey->m_iKeyLength;
674 template[5].pValue = &keylen;
675 template[
[all...]
/osnet-11/usr/src/lib/gss_mechs/mech_krb5/support/
H A Dfake-addrinfo.c549 int port, const struct addrinfo *template)
554 if (template->ai_family != AF_INET
556 && template->ai_family != AF_INET6
560 *n = *template;
561 if (template->ai_family == AF_INET) {
576 if (template->ai_family == AF_INET6) {
671 struct addrinfo *template,
781 template->ai_family = AF_INET6;
782 template->ai_addrlen = sizeof(struct sockaddr_in6);
784 r = fai_add_entry (result, &ce->addrs6[i], portnum, template);
548 fai_add_entry(struct addrinfo **result, void *addr, int port, const struct addrinfo *template) argument
670 fai_add_hosts_by_name(const char *name, struct addrinfo *template, int portnum, int flags, struct addrinfo **result) argument
851 struct addrinfo template; local
[all...]
/osnet-11/usr/src/grub/grub2/util/
H A Dgetroot.c645 const char *template = "%s/r%s"; local
648 const char *template = "%s/%s"; local
653 sprintf (res, template, cwd, ent->d_name);
/osnet-11/usr/src/lib/pkcs11/pkcs11_kernel/common/
H A DkernelAttributeUtil.c257 kernel_validate_attr(CK_ATTRIBUTE_PTR template, CK_ULONG ulAttrNum, argument
266 switch (template[i].type) {
268 *class = *((CK_OBJECT_CLASS*)template[i].pValue);
282 switch (template[i].type) {
303 rv = kernel_lookup_attr(template[i].type);
352 kernel_add_extra_attr(CK_ATTRIBUTE_PTR template, kernel_object_t *object_p) argument
364 attrp->attr.type = template->type;
365 attrp->attr.ulValueLen = template->ulValueLen;
367 if ((template->pValue != NULL) &&
368 (template
450 get_extra_attr_from_object(kernel_object_t *object_p, CK_ATTRIBUTE_PTR template) argument
508 set_extra_attr_to_object(kernel_object_t *object_p, CK_ATTRIBUTE_TYPE type, CK_ATTRIBUTE_PTR template) argument
566 get_bigint_attr_from_template(biginteger_t *big, CK_ATTRIBUTE_PTR template) argument
594 get_bigint_attr_from_object(biginteger_t *big, CK_ATTRIBUTE_PTR template) argument
632 get_bool_attr_from_object(kernel_object_t *object_p, CK_ULONG bool_flag, CK_ATTRIBUTE_PTR template) argument
668 set_bool_attr_to_object(kernel_object_t *object_p, CK_ULONG bool_flag, CK_ATTRIBUTE_PTR template) argument
686 get_ulong_attr_from_object(CK_ULONG value, CK_ATTRIBUTE_PTR template) argument
718 get_ulong_attr_from_template(CK_ULONG *value, CK_ATTRIBUTE_PTR template) argument
817 string_attr_cleanup(CK_ATTRIBUTE_PTR template) argument
958 kernel_parse_common_attrs(CK_ATTRIBUTE_PTR template, kernel_session_t *sp, uint64_t *attr_mask_p) argument
1028 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
1405 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
1890 kernel_build_secret_key_object(CK_ATTRIBUTE_PTR template, CK_ULONG ulAttrNum, kernel_object_t *new_object, kernel_session_t *sp, int mode) argument
2192 kernel_build_object(CK_ATTRIBUTE_PTR template, CK_ULONG ulAttrNum, kernel_object_t *new_object, kernel_session_t *sp, uint_t mode) argument
2249 kernel_get_common_attrs(kernel_object_t *object_p, CK_ATTRIBUTE_PTR template) argument
2322 kernel_get_common_key_attrs(kernel_object_t *object_p, CK_ATTRIBUTE_PTR template) argument
2366 kernel_get_public_key_attribute(kernel_object_t *object_p, CK_ATTRIBUTE_PTR template) argument
2520 kernel_get_private_key_attribute(kernel_object_t *object_p, CK_ATTRIBUTE_PTR template) argument
2765 kernel_get_secret_key_attribute(kernel_object_t *object_p, CK_ATTRIBUTE_PTR template) argument
2903 kernel_get_attribute(kernel_object_t *object_p, CK_ATTRIBUTE_PTR template) argument
2942 kernel_set_common_key_attribute(kernel_object_t *object_p, CK_ATTRIBUTE_PTR template, boolean_t copy, kernel_session_t *sp) argument
3029 kernel_set_public_key_attribute(kernel_object_t *object_p, CK_ATTRIBUTE_PTR template, boolean_t copy, kernel_session_t *sp) argument
3095 kernel_set_private_key_attribute(kernel_object_t *object_p, CK_ATTRIBUTE_PTR template, boolean_t copy, kernel_session_t *sp) argument
3193 kernel_set_secret_key_attribute(kernel_object_t *object_p, CK_ATTRIBUTE_PTR template, boolean_t copy, kernel_session_t *sp) argument
3287 kernel_set_attribute(kernel_object_t *object_p, CK_ATTRIBUTE_PTR template, boolean_t copy, kernel_session_t *sp) argument
3757 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...]
/osnet-11/usr/src/cmd/sendmail/src/
H A Ddeliver.c4492 char *template = UnixFromLine; local
4534 template = xbuf;
4537 expand(template, buf, sizeof(buf), e);

Completed in 150 milliseconds

12