/illumos-gate/usr/src/lib/libldap5/sources/ldap/common/ |
H A D | disptmpl.c | 174 *tmpllistp = tmpl; in ldap_init_templates_buf() 178 prevtmpl = tmpl; in ldap_init_templates_buf() 279 NSLDAPI_FREE( tmpl ); in free_disptmpl() 297 return( tmpl == NULLDISPTMPL ? tmpl : tmpl->dt_next ); in ldap_next_disptmpl() 494 free_disptmpl( tmpl ); in read_next_tmpl() 505 free_disptmpl( tmpl ); in read_next_tmpl() 516 free_disptmpl( tmpl ); in read_next_tmpl() 547 free_disptmpl( tmpl ); in read_next_tmpl() 556 free_disptmpl( tmpl ); in read_next_tmpl() 571 free_disptmpl( tmpl ); in read_next_tmpl() [all …]
|
H A D | tmplout.c | 86 struct ldap_disptmpl *tmpl, in ldap_entry2text() argument 111 struct ldap_disptmpl *tmpl, in ldap_entry2html() argument 140 struct ldap_disptmpl *tmpl, in do_entry2text() argument 191 ( tmpl == NULL ) ? "Entry" : tmpl->dt_name ); in do_entry2text() 195 eol, eol, ( tmpl == NULL ) ? "Entry" : tmpl->dt_name ); in do_entry2text() 249 labelwidth = max_label_len( tmpl ) + 3; in do_entry2text() 256 if ( tmpl == NULL ) { in do_entry2text() 300 for ( rowp = ldap_first_tmplrow( tmpl ); in do_entry2text() 452 struct ldap_disptmpl *tmpl; in do_entry2text_search() local 475 tmpl = NULL; in do_entry2text_search() [all …]
|
/illumos-gate/usr/src/lib/pkcs11/pkcs11_tpm/common/ |
H A D | template.c | 397 tmpl)); in template_add_default_attributes() 400 tmpl)); in template_add_default_attributes() 477 tmpl, mode)); in template_check_required_attributes() 720 if (! tmpl) { in template_unflatten() 830 if (! tmpl) in template_free() 838 tmpl->attribute_list = dlist_remove_node(tmpl->attribute_list, in template_free() 842 free(tmpl); in template_free() 881 if (tmpl == NULL) in template_get_count() 892 if (tmpl == NULL) in template_get_size() 912 if (tmpl == NULL) in template_get_compressed_size() [all …]
|
H A D | key.c | 376 key_object_validate_attribute(TEMPLATE *tmpl, in key_object_validate_attribute() argument 496 publ_key_validate_attribute(TEMPLATE *tmpl, in publ_key_validate_attribute() argument 653 priv_key_unwrap(TEMPLATE *tmpl, in priv_key_unwrap() argument 669 rc = rsa_priv_unwrap(tmpl, data, data_len); in priv_key_unwrap() 707 (void) template_update_attribute(tmpl, local); in priv_key_unwrap() 948 secret_key_unwrap(TEMPLATE *tmpl, in secret_key_unwrap() argument 1084 return (key_object_validate_attribute(tmpl, in secret_key_validate_attribute() 1430 rsa_priv_wrap_get_data(TEMPLATE *tmpl, in rsa_priv_wrap_get_data() argument 1481 rsa_priv_unwrap(TEMPLATE *tmpl, in rsa_priv_unwrap() argument 1645 if (! tmpl || ! data_len) { in generic_secret_wrap_get_data() [all …]
|
H A D | hwf_obj.c | 318 found = template_attribute_find(tmpl, CKA_VALUE, &attr); in clock_check_required_attributes() 334 found = template_attribute_find(tmpl, CKA_VALUE, &attr); in counter_check_required_attributes() 367 return (template_validate_base_attribute(tmpl, in hwf_validate_attribute() 379 return (hwf_validate_attribute(tmpl, attr, mode)); in clock_validate_attribute() 395 return (hwf_validate_attribute(tmpl, attr, mode)); in counter_validate_attribute() 401 clock_set_default_attributes(TEMPLATE *tmpl) in clock_set_default_attributes() argument 415 (void) template_update_attribute(tmpl, value_attr); in clock_set_default_attributes() 421 counter_set_default_attributes(TEMPLATE *tmpl) in counter_set_default_attributes() argument 457 (void) template_update_attribute(tmpl, value_attr); in counter_set_default_attributes() 458 (void) template_update_attribute(tmpl, hasreset_attr); in counter_set_default_attributes() [all …]
|
H A D | cert.c | 310 if (! tmpl) in cert_check_required_attributes() 314 found = template_attribute_find(tmpl, in cert_check_required_attributes() 362 return (cert_check_required_attributes(tmpl, mode)); in cert_x509_check_required_attributes() 408 (void) template_update_attribute(tmpl, id_attr); in cert_x509_set_default_attributes() 409 (void) template_update_attribute(tmpl, issuer_attr); in cert_x509_set_default_attributes() 410 (void) template_update_attribute(tmpl, serial_attr); in cert_x509_set_default_attributes() 416 cert_x509_validate_attribute(TEMPLATE *tmpl, in cert_x509_validate_attribute() argument 438 return (cert_validate_attribute(tmpl, attr, mode)); in cert_x509_validate_attribute() 445 return (cert_check_required_attributes(tmpl, mode)); in cert_vendor_check_required_attributes() 449 cert_vendor_validate_attribute(TEMPLATE *tmpl, in cert_vendor_validate_attribute() argument [all …]
|
H A D | object.c | 429 TEMPLATE * tmpl = NULL; in object_copy() local 499 o->template = tmpl; in object_copy() 504 if (tmpl) in object_copy() 505 (void) template_free(tmpl); in object_copy() 757 TEMPLATE * tmpl = NULL; in object_restore() local 789 obj->template = tmpl; in object_restore() 804 if (tmpl) in object_restore() 805 (void) template_free(tmpl); in object_restore() 820 TEMPLATE * tmpl = NULL; in object_create_skel() local 878 o->template = tmpl; in object_create_skel() [all …]
|
H A D | data_obj.c | 297 data_object_check_required_attributes(TEMPLATE *tmpl, CK_ULONG mode) in data_object_check_required_attributes() argument 299 return (template_check_required_base_attributes(tmpl, mode)); in data_object_check_required_attributes() 312 data_object_set_default_attributes(TEMPLATE *tmpl, CK_ULONG mode) in data_object_set_default_attributes() argument 346 (void) template_update_attribute(tmpl, class_attr); in data_object_set_default_attributes() 347 (void) template_update_attribute(tmpl, app_attr); in data_object_set_default_attributes() 348 (void) template_update_attribute(tmpl, value_attr); in data_object_set_default_attributes() 354 data_object_validate_attribute(TEMPLATE *tmpl, CK_ATTRIBUTE *attr, in data_object_validate_attribute() argument 366 return (template_validate_base_attribute(tmpl, attr, mode)); in data_object_validate_attribute()
|
/illumos-gate/usr/src/cmd/mktemp/ |
H A D | mktemp.c | 53 char *tmpl; in main() local 89 tmpl = template; in main() 93 tmpl = argv[0]; in main() 103 if (strchr(tmpl, '/') != NULL) { in main() 123 tmpl = tmp; in main() 127 if (mkdtemp(tmpl) == NULL) { in main() 136 (void) rmdir(tmpl); in main() 138 if (mkstemp(tmpl) < 0) { in main() 142 "%s\n"), tmpl); in main() 147 (void) unlink(tmpl); in main() [all …]
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/crypto/ |
H A D | pbkdf2.c | 60 CK_ATTRIBUTE tmpl[3]; in krb5int_pbkdf2_hmac_sha1() local 70 tmpl[attrs].type = CKA_CLASS; in krb5int_pbkdf2_hmac_sha1() 71 tmpl[attrs].pValue = &class; in krb5int_pbkdf2_hmac_sha1() 79 tmpl[attrs].type = CKA_KEY_TYPE; in krb5int_pbkdf2_hmac_sha1() 80 tmpl[attrs].pValue = &keytype; in krb5int_pbkdf2_hmac_sha1() 94 tmpl[attrs].type = CKA_VALUE_LEN; in krb5int_pbkdf2_hmac_sha1() 97 tmpl[attrs].pValue = &outlen; in krb5int_pbkdf2_hmac_sha1() 121 tmpl[0].type = CKA_VALUE; in krb5int_pbkdf2_hmac_sha1() 122 tmpl[0].pValue = out->data; in krb5int_pbkdf2_hmac_sha1() 123 tmpl[0].ulValueLen = out->length; in krb5int_pbkdf2_hmac_sha1() [all …]
|
/illumos-gate/usr/src/cmd/ldap/common/ |
H A D | tmpltest.c | 20 void dump_tmpl( struct ldap_disptmpl *tmpl ); 115 dump_tmpl( struct ldap_disptmpl *tmpl ) in dump_tmpl() argument 124 NULLSTRINGIFNULL( tmpl->dt_name ), in dump_tmpl() 125 NULLSTRINGIFNULL( tmpl->dt_pluralname ), in dump_tmpl() 126 NULLSTRINGIFNULL( tmpl->dt_iconname )); in dump_tmpl() 139 if ( tmpl->dt_options == 0L ) { in dump_tmpl() 151 tmpl->dt_authattrname : "<default>" ); in dump_tmpl() 154 tmpl->dt_defrdnattrname : "NONE" ); in dump_tmpl() 157 tmpl->dt_defaddlocation : "NONE" ); in dump_tmpl() 199 rowp = ldap_next_tmplrow( tmpl, rowp )) { in dump_tmpl() [all …]
|
/illumos-gate/usr/src/cmd/fs.d/nfs/lib/ |
H A D | nfslogtab.c | 210 struct logtab_ent_list *head = NULL, *tail = NULL, *tmpl; in logtab_rement() local 231 tmpl = (struct logtab_ent_list *) in logtab_rement() 233 if (tmpl == NULL) { in logtab_rement() 238 tmpl->lel_le = lep; in logtab_rement() 239 tmpl->lel_next = NULL; in logtab_rement() 244 head = tail = tmpl; in logtab_rement() 250 tail->lel_next = tmpl; in logtab_rement() 251 tail = tmpl; /* remember the last element */ in logtab_rement() 271 for (tmpl = head; tmpl != NULL; tmpl = tmpl->lel_next) in logtab_rement() 272 (void) logtab_putent(fd, tmpl->lel_le); in logtab_rement()
|
/illumos-gate/usr/src/uts/common/contract/ |
H A D | process.c | 291 tmpl->ctmpl_ev_info |= (tmpl->ctmpl_ev_crit & ~SAFE_EV); in ctmpl_process_set() 292 tmpl->ctmpl_ev_crit &= SAFE_EV; in ctmpl_process_set() 325 tmpl->ctmpl_ev_crit = param_value; in ctmpl_process_set() 341 tmpl->ctmpl_ev_info |= (tmpl->ctmpl_ev_crit & ~allowed); in ctmpl_process_set() 342 tmpl->ctmpl_ev_crit &= allowed; in ctmpl_process_set() 818 ASSERT(tmpl != NULL); in contract_process_create() 846 if (tmpl->ctp_svc_fmri == NULL) { in contract_process_create() 859 if (tmpl->ctp_svc_aux == NULL) { in contract_process_create() 881 if (tmpl->ctp_subsume && tmpl->ctp_subsume->ct_owner == parent) { in contract_process_create() 1013 ct_template_t *tmpl; in contract_process_fork() local [all …]
|
/illumos-gate/usr/src/uts/common/crypto/api/ |
H A D | kcf_cipher.c | 149 &lmech, key, tmpl, KCF_SWFP_RHNDL(crq)); in crypto_cipher_init_prov() 154 &lmech, key, tmpl, KCF_SWFP_RHNDL(crq)); in crypto_cipher_init_prov() 199 mech, key, NULL, NULL, tmpl); in crypto_cipher_init_prov() 203 mech, key, NULL, NULL, tmpl); in crypto_cipher_init_prov() 230 crypto_ctx_template_t tmpl, crypto_context_t *ctxp, in crypto_cipher_init() argument 340 plaintext, ciphertext, tmpl); in crypto_encrypt_prov() 432 crypto_ctx_template_t tmpl, crypto_context_t *ctxp, in crypto_encrypt_init_prov() argument 446 crypto_ctx_template_t tmpl, crypto_context_t *ctxp, in crypto_encrypt_init() argument 449 return (crypto_cipher_init(mech, key, tmpl, ctxp, crq, in crypto_encrypt_init() 621 ciphertext, plaintext, tmpl); in crypto_decrypt_prov() [all …]
|
H A D | kcf_sign.c | 75 key, NULL, NULL, tmpl); in crypto_sign_init_prov() 118 ((ctx_tmpl = (kcf_ctx_template_t *)tmpl) != NULL)) { in crypto_sign_init() 229 crypto_ctx_template_t tmpl, crypto_data_t *signature, in crypto_sign_prov() argument 248 key, data, signature, tmpl); in crypto_sign_prov() 286 ((ctx_tmpl = (kcf_ctx_template_t *)tmpl) != NULL)) { in sign_sr_atomic_common() 339 crypto_ctx_template_t tmpl, crypto_data_t *signature, in crypto_sign() argument 342 return (sign_sr_atomic_common(mech, key, data, tmpl, signature, crq, in crypto_sign() 349 crypto_ctx_template_t tmpl, crypto_data_t *signature, in crypto_sign_recover_prov() argument 368 key, data, signature, tmpl); in crypto_sign_recover_prov() 381 return (sign_sr_atomic_common(mech, key, data, tmpl, signature, crq, in crypto_sign_recover() [all …]
|
H A D | kcf_verify.c | 47 crypto_mechanism_t *mech, crypto_key_t *key, crypto_ctx_template_t tmpl, in crypto_verify_init_prov() argument 75 key, NULL, NULL, tmpl); in crypto_verify_init_prov() 119 ((ctx_tmpl = (kcf_ctx_template_t *)tmpl) != NULL)) { in crypto_verify_init() 231 crypto_ctx_template_t tmpl, crypto_data_t *signature, in crypto_verify_prov() argument 250 key, data, signature, tmpl); in crypto_verify_prov() 288 ((ctx_tmpl = (kcf_ctx_template_t *)tmpl) != NULL)) { in verify_vr_atomic_common() 342 crypto_ctx_template_t tmpl, crypto_data_t *signature, in crypto_verify() argument 345 return (verify_vr_atomic_common(mech, key, data, tmpl, signature, crq, in crypto_verify() 370 sid, mech, key, data, signature, tmpl); in crypto_verify_recover_prov() 383 return (verify_vr_atomic_common(mech, key, data, tmpl, signature, crq, in crypto_verify_recover() [all …]
|
H A D | kcf_mac.c | 97 crypto_ctx_template_t tmpl, crypto_data_t *mac, crypto_call_req_t *crq) in crypto_mac_prov() argument 116 data, mac, tmpl); in crypto_mac_prov() 130 crypto_key_t *key, crypto_ctx_template_t tmpl, crypto_data_t *mac, in crypto_mac() argument 158 ((ctx_tmpl = (kcf_ctx_template_t *)tmpl) != NULL)) { in crypto_mac() 240 key, data, mac, tmpl); in crypto_mac_verify_prov() 254 crypto_key_t *key, crypto_ctx_template_t tmpl, crypto_data_t *mac, in crypto_mac_verify() argument 282 ((ctx_tmpl = (kcf_ctx_template_t *)tmpl) != NULL)) { in crypto_mac_verify() 405 rv = KCF_PROV_MAC_INIT(real_provider, ctx, &lmech, key, tmpl, in crypto_mac_init_prov() 410 NULL, NULL, tmpl); in crypto_mac_init_prov() 435 crypto_ctx_template_t tmpl, crypto_context_t *ctxp, in crypto_mac_init() argument [all …]
|
/illumos-gate/usr/src/uts/common/sys/crypto/ |
H A D | api.h | 65 crypto_key_t *key, crypto_ctx_template_t *tmpl, int kmflag); 66 extern void crypto_destroy_ctx_template(crypto_ctx_template_t tmpl); 89 crypto_key_t *key, crypto_ctx_template_t tmpl, crypto_data_t *mac, 95 crypto_key_t *key, crypto_ctx_template_t tmpl, crypto_data_t *mac, 114 crypto_data_t *data, crypto_ctx_template_t tmpl, 130 crypto_ctx_template_t tmpl, crypto_context_t *, crypto_call_req_t *); 132 crypto_data_t *data, crypto_ctx_template_t tmpl, crypto_data_t *signature, 158 crypto_ctx_template_t tmpl, crypto_context_t *, crypto_call_req_t *); 170 crypto_key_t *key, crypto_ctx_template_t tmpl, crypto_data_t *ciphertext, 190 crypto_key_t *key, crypto_ctx_template_t tmpl, crypto_data_t *plaintext, [all …]
|
/illumos-gate/usr/src/lib/libldap5/include/ldap/ |
H A D | disptmpl.h | 293 struct ldap_disptmpl *tmpl ); 305 ldap_tmplattrs( struct ldap_disptmpl *tmpl, char **includeattrs, int exclude, 310 ldap_first_tmplrow( struct ldap_disptmpl *tmpl ); 314 ldap_next_tmplrow( struct ldap_disptmpl *tmpl, struct ldap_tmplitem *row ); 318 ldap_first_tmplcol( struct ldap_disptmpl *tmpl, struct ldap_tmplitem *row ); 322 ldap_next_tmplcol( struct ldap_disptmpl *tmpl, struct ldap_tmplitem *row, 328 struct ldap_disptmpl *tmpl, char **defattrs, char ***defvals, 348 struct ldap_disptmpl *tmpl, char **defattrs, char ***defvals,
|
/illumos-gate/usr/src/cmd/cmd-inet/etc/ppp/ |
H A D | Makefile | 30 ETCPROG= options.tmpl options.ttya.tmpl myisp-chat.tmpl 31 ETCPEERS= myisp.tmpl
|
/illumos-gate/usr/src/tools/ctf/stabs/common/ |
H A D | ctfstabs.c | 183 process_ifile(FILE *tmpl, proc_ops_t *ops) in process_ifile() argument 190 for (lineno = skipping = 0; (line = readline(tmpl)) != NULL; lineno++) { in process_ifile() 238 FILE *tmpl; in main() local 271 tmpl = stdin; in main() 272 else if ((tmpl = fopen(tmplfile, "r")) == NULL) in main() 294 (process_ifile(tmpl, ops) < 0) || in main()
|
/illumos-gate/usr/src/data/hwdata/ |
H A D | Makefile | 40 THIRDPARTYLICENSE.pciids: pci.ids THIRDPARTYLICENSE.pciids.tmpl 43 $(CAT) THIRDPARTYLICENSE.pciids.tmpl >> $@ 45 THIRDPARTYLICENSE.efifixes: efi.fixes THIRDPARTYLICENSE.efifixes.tmpl 48 $(CAT) THIRDPARTYLICENSE.efifixes.tmpl >> $@
|
/illumos-gate/usr/src/lib/pkcs11/pkcs11_softtoken/common/ |
H A D | softKeystore.c | 1997 CK_ATTRIBUTE tmpl[5]; in soft_gen_crypt_key() local 2012 tmpl[attrs].type = CKA_CLASS; in soft_gen_crypt_key() 2013 tmpl[attrs].pValue = &class; in soft_gen_crypt_key() 2018 tmpl[attrs].pValue = &keytype; in soft_gen_crypt_key() 2033 tmpl[attrs].pValue = &keylen; in soft_gen_crypt_key() 2119 CK_ATTRIBUTE tmpl[5]; in soft_gen_hmac_key() local 2134 tmpl[attrs].type = CKA_CLASS; in soft_gen_hmac_key() 2135 tmpl[attrs].pValue = &class; in soft_gen_hmac_key() 2140 tmpl[attrs].pValue = &keytype; in soft_gen_hmac_key() 2144 tmpl[attrs].type = CKA_SIGN; in soft_gen_hmac_key() [all …]
|
/illumos-gate/usr/src/cmd/svc/startd/ |
H A D | method.c | 353 int tmpl, err, istrans, iswait, ret; in method_ready_contract() local 367 tmpl = open64(CTFS_ROOT "/process/template", O_RDWR); in method_ready_contract() 368 if (tmpl == -1) in method_ready_contract() 376 err = ct_pr_tmpl_set_param(tmpl, CT_PR_INHERIT | CT_PR_REGENT | in method_ready_contract() 392 err = ct_tmpl_set_critical(tmpl, cevents); in method_ready_contract() 395 err = ct_tmpl_set_informative(tmpl, 0); in method_ready_contract() 397 err = ct_pr_tmpl_set_fatal(tmpl, fevents); in method_ready_contract() 427 err = ct_pr_tmpl_set_svc_fmri(tmpl, inst->ri_i.i_fmri); in method_ready_contract() 429 err = ct_pr_tmpl_set_svc_aux(tmpl, method_names[type]); in method_ready_contract() 432 err = ct_tmpl_activate(tmpl); in method_ready_contract() [all …]
|
/illumos-gate/usr/src/uts/common/fs/smbsrv/ |
H A D | smb3_encrypt_kcf.c | 146 crypto_ctx_template_t tmpl = NULL; // todo in smb3_encrypt_uio() local 161 &ctxp->ckey, tmpl, &out_cd, NULL); in smb3_encrypt_uio() 176 crypto_ctx_template_t tmpl = NULL; // todo in smb3_decrypt_uio() local 193 &ctxp->ckey, tmpl, &out_cd, NULL); in smb3_decrypt_uio()
|