Home
last modified time | relevance | path

Searched refs:new_objp (Results 1 – 5 of 5) sorted by relevance

/titanic_44/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftObjectUtil.c107 soft_object_t *new_objp = NULL; in soft_copy_object() local
111 new_objp = calloc(1, sizeof (soft_object_t)); in soft_copy_object()
112 if (new_objp == NULL) in soft_copy_object()
115 new_objp->class = old_object->class; in soft_copy_object()
116 new_objp->bool_attr_mask = old_object->bool_attr_mask; in soft_copy_object()
117 new_objp->cert_type = old_object->cert_type; in soft_copy_object()
118 new_objp->object_type = old_object->object_type; in soft_copy_object()
128 rv = soft_copy_extra_attr(attrp, new_objp); in soft_copy_object()
130 soft_cleanup_extra_attr(new_objp); in soft_copy_object()
131 free(new_objp); in soft_copy_object()
[all …]
H A DsoftKeysUtil.c69 soft_object_t *new_objp = NULL; in soft_gen_keyobject() local
71 new_objp = calloc(1, sizeof (soft_object_t)); in soft_gen_keyobject()
72 if (new_objp == NULL) { in soft_gen_keyobject()
76 new_objp->extra_attrlistp = NULL; in soft_gen_keyobject()
82 rv = soft_build_key(pTemplate, ulCount, new_objp, class, key_type, in soft_gen_keyobject()
93 rv = soft_pin_expired_check(new_objp); in soft_gen_keyobject()
98 rv = soft_object_write_access_check(sp, new_objp); in soft_gen_keyobject()
105 (void) pthread_mutex_init(&new_objp->object_mutex, NULL); in soft_gen_keyobject()
106 new_objp->magic_marker = SOFTTOKEN_OBJECT_MAGIC; in soft_gen_keyobject()
109 if (IS_TOKEN_OBJECT(new_objp)) { in soft_gen_keyobject()
[all …]
H A DsoftKeystore.c1916 soft_object_t *new_objp = NULL; in soft_get_token_objects_from_keystore() local
1926 new_objp = calloc(1, sizeof (soft_object_t)); in soft_get_token_objects_from_keystore()
1927 if (new_objp == NULL) { in soft_get_token_objects_from_keystore()
1932 rv = soft_keystore_unpack_obj(new_objp, ks_obj); in soft_get_token_objects_from_keystore()
1934 if (new_objp->class == CKO_CERTIFICATE) in soft_get_token_objects_from_keystore()
1935 soft_cleanup_cert_object(new_objp); in soft_get_token_objects_from_keystore()
1937 soft_cleanup_object(new_objp); in soft_get_token_objects_from_keystore()
1941 soft_add_token_object_to_slot(new_objp); in soft_get_token_objects_from_keystore()
/titanic_44/usr/src/lib/pkcs11/pkcs11_kernel/common/
H A DkernelObjectUtil.c109 kernel_object_t *new_objp = NULL; in kernel_copy_object() local
113 new_objp = calloc(1, sizeof (kernel_object_t)); in kernel_copy_object()
114 if (new_objp == NULL) in kernel_copy_object()
117 new_objp->class = old_object->class; in kernel_copy_object()
118 new_objp->bool_attr_mask = old_object->bool_attr_mask; in kernel_copy_object()
128 rv = kernel_copy_extra_attr(attrp, new_objp); in kernel_copy_object()
130 kernel_cleanup_extra_attr(new_objp); in kernel_copy_object()
131 free(new_objp); in kernel_copy_object()
137 *new_object = new_objp; in kernel_copy_object()
149 new_objp->key_type = old_object->key_type; in kernel_copy_object()
[all …]
H A DkernelKeys.c249 crypto_mech_type_t k_mech_type, kernel_object_t *new_objp) in key_gen_by_value() argument
340 new_objp, session_p, KERNEL_GEN_KEY); in key_gen_by_value()
344 new_objp->is_lib_obj = B_TRUE; in key_gen_by_value()
345 new_objp->session_handle = (CK_SESSION_HANDLE)session_p; in key_gen_by_value()
370 kernel_object_t *new_objp = NULL; in C_GenerateKey() local
403 new_objp = calloc(1, sizeof (kernel_object_t)); in C_GenerateKey()
404 if (new_objp == NULL) { in C_GenerateKey()
417 k_mech_type, new_objp); in C_GenerateKey()
471 new_objp->k_handle = obj_gk.gk_handle; in C_GenerateKey()
472 new_objp->is_lib_obj = B_FALSE; in C_GenerateKey()
[all …]