Home
last modified time | relevance | path

Searched refs:new_key (Results 1 – 8 of 8) sorted by relevance

/illumos-gate/usr/src/lib/libresolv2/common/dst/
H A Ddst_api.c163 new_key = (DST_KEY *) malloc(sizeof(*new_key)); in dst_s_get_key_struct()
164 if (new_key == NULL) in dst_s_get_key_struct()
167 memset(new_key, 0, sizeof(*new_key)); in dst_s_get_key_struct()
170 free(new_key); in dst_s_get_key_struct()
173 new_key->dk_alg = alg; in dst_s_get_key_struct()
179 return (new_key); in dst_s_get_key_struct()
966 return (new_key); in dst_generate_key()
967 if (new_key->dk_func == NULL || new_key->dk_func->generate == NULL) { in dst_generate_key()
972 if (new_key->dk_func->generate(new_key, exp) <= 0) { in dst_generate_key()
974 new_key->dk_key_name, new_key->dk_alg, in dst_generate_key()
[all …]
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/krb5/krb/
H A Dcopy_key.c95 krb5_keyblock *new_key; local
97 if (!(new_key = (krb5_keyblock *) MALLOC(sizeof(krb5_keyblock))))
100 if (!(new_key->contents = (krb5_octet *)MALLOC(from->length))) {
101 FREE(new_key, sizeof(krb5_keyblock));
105 ret = krb5_copy_keyblock_data(context, from, new_key);
107 krb5_free_keyblock(context, new_key);
111 *to = new_key;
/illumos-gate/usr/src/lib/libldap5/sources/ldap/common/
H A Dsortctrl.c244 LDAPsortkey *new_key = NULL; in read_next_token() local
318 new_key = (LDAPsortkey*)NSLDAPI_MALLOC(sizeof(LDAPsortkey)); in read_next_token()
319 if (0 == new_key) { in read_next_token()
324 new_key->sk_attrtype = (char *)NSLDAPI_MALLOC(attrdesc_size + 1); in read_next_token()
326 new_key->sk_matchruleoid = (char *)NSLDAPI_MALLOC( in read_next_token()
329 new_key->sk_matchruleoid = NULL; in read_next_token()
332 memcpy(new_key->sk_attrtype,attrdesc_source,attrdesc_size); in read_next_token()
333 *(new_key->sk_attrtype + attrdesc_size) = '\0'; in read_next_token()
336 *(new_key->sk_matchruleoid + matchrule_size) = '\0'; in read_next_token()
339 new_key->sk_reverseorder = reverse; in read_next_token()
[all …]
/illumos-gate/usr/src/lib/udapl/libdat/common/
H A Ddat_dictionary.c79 DAT_PROVIDER_INFO *new_key);
433 DAT_PROVIDER_INFO *new_key) in dat_dictionary_key_dup() argument
436 dat_os_assert(NULL != new_key); in dat_dictionary_key_dup()
438 (void) dat_os_strncpy(new_key->ia_name, old_key->ia_name, in dat_dictionary_key_dup()
440 new_key->dapl_version_major = old_key->dapl_version_major; in dat_dictionary_key_dup()
441 new_key->dapl_version_minor = old_key->dapl_version_minor; in dat_dictionary_key_dup()
442 new_key->is_thread_safe = old_key->is_thread_safe; in dat_dictionary_key_dup()
/illumos-gate/usr/src/lib/libcommputil/common/
H A Dsdp_parse.c749 sdp_key_t *new_key; in sdp_parse_key() local
758 new_key = calloc(1, sizeof (sdp_key_t)); in sdp_parse_key()
759 if (new_key == NULL) { in sdp_parse_key()
769 COMMP_COPY_STR(new_key->k_method, begin, current - begin); in sdp_parse_key()
770 if (new_key->k_method == NULL) { in sdp_parse_key()
771 sdp_free_key(new_key); in sdp_parse_key()
781 COMMP_COPY_STR(new_key->k_enckey, current, end - current); in sdp_parse_key()
782 if (new_key->k_enckey == NULL) { in sdp_parse_key()
783 sdp_free_key(new_key); in sdp_parse_key()
788 *key = new_key; in sdp_parse_key()
[all …]
/illumos-gate/usr/src/uts/common/crypto/api/
H A Dkcf_keys.c201 crypto_object_id_t *new_key, crypto_call_req_t *crq) in crypto_key_derive() argument
221 attrs, count, new_key, KCF_SWFP_RHNDL(crq)); in crypto_key_derive()
225 attrs, count, new_key, NULL, 0, NULL, base_key, NULL, NULL); in crypto_key_derive()
/illumos-gate/usr/src/lib/smbsrv/libmlsvc/common/
H A Dwinreg_svc.c430 goto new_key; in winreg_s_CreateKey()
449 new_key: in winreg_s_CreateKey()
/illumos-gate/usr/src/lib/libzfs/common/
H A Dlibzfs_crypto.c259 boolean_t new_key, const char *fsname, in libzfs_getpassphrase() argument
287 new_key ? "new " : "", in libzfs_getpassphrase()