/osnet-11/usr/src/lib/pkcs11/pkcs11_softtoken/common/ |
H A D | softObject.c | 84 soft_object_t *old_object, *new_object = NULL; local 119 rv = soft_copy_object(old_object, &new_object, SOFT_COPY_OBJECT, 122 if ((rv != CKR_OK) || (new_object == NULL)) { 134 rv = soft_set_attribute(new_object, &pTemplate[i], B_TRUE); 140 rv = soft_pin_expired_check(new_object); 148 rv = soft_object_write_access_check(session_p, new_object); 157 if (IS_TOKEN_OBJECT(new_object)) { 158 new_object->version = 1; 162 rv = soft_put_object_to_keystore(new_object); 167 new_object 414 soft_object_t *new_object = NULL; local [all...] |
H A D | softObjectUtil.c | 102 soft_copy_object(soft_object_t *old_object, soft_object_t **new_object, argument 137 *new_object = new_objp; 217 soft_merge_object(soft_object_t *old_object, soft_object_t *new_object) argument 219 old_object->bool_attr_mask = new_object->bool_attr_mask; 221 old_object->extra_attrlistp = new_object->extra_attrlistp; 1114 soft_object_t *new_object; local 1117 new_object = calloc(1, sizeof (soft_object_t)); 1118 if (new_object == NULL) 1121 rv = soft_keystore_unpack_obj(new_object, ks_obj); 1123 soft_cleanup_object(new_object); [all...] |
H A D | softAttributeUtil.c | 1321 soft_object_t *new_object, CK_ULONG mode, CK_KEY_TYPE key_type) 1393 new_object); 1577 new_object->object_class_u.public_key = pbk; 1578 new_object->class = CKO_PUBLIC_KEY; 1601 new_object->key_type = keytype; 1825 rv = soft_add_extra_attr(¶m_tmp, new_object); 1837 new_object->object_type = object_type; 1838 new_object->bool_attr_mask = attr_mask; 1840 rv = soft_add_extra_attr(&string_tmp, new_object); 1865 soft_cleanup_object(new_object); 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 [all...] |
/osnet-11/usr/src/lib/pkcs11/pkcs11_kernel/common/ |
H A D | kernelObject.c | 86 kernel_object_t *new_object = NULL; local 129 rv = kernel_copy_object(old_object, &new_object, B_TRUE, 132 if ((rv != CKR_OK) || (new_object == NULL)) { 143 new_object->is_lib_obj = B_TRUE; 148 rv = kernel_set_attribute(new_object, &pTemplate[i], 152 kernel_cleanup_object(new_object); 165 kernel_add_object_to_session(new_object, session_p); 175 *phNewObject = (CK_ULONG)new_object; 182 new_object = calloc(1, sizeof (kernel_object_t)); 183 if (new_object 517 kernel_object_t *new_object = NULL; local [all...] |
H A D | kernelObjectUtil.c | 105 kernel_copy_object(kernel_object_t *old_object, kernel_object_t **new_object, argument 137 *new_object = new_objp; 193 kernel_merge_object(kernel_object_t *old_object, kernel_object_t *new_object) argument 196 old_object->bool_attr_mask = new_object->bool_attr_mask; 198 old_object->extra_attrlistp = new_object->extra_attrlistp;
|
H A D | kernelAttributeUtil.c | 1029 CK_ULONG ulAttrNum, kernel_object_t *new_object, kernel_session_t *sp, 1095 new_object); 1250 new_object->object_class_u.public_key = pbk; 1251 new_object->class = CKO_PUBLIC_KEY; 1257 new_object->key_type = keytype; 1338 rv = kernel_add_extra_attr(¶m_tmp, new_object); 1354 new_object->bool_attr_mask = attr_mask; 1356 rv = kernel_add_extra_attr(&string_tmp, new_object); 1381 kernel_cleanup_object(new_object); 1406 CK_ULONG ulAttrNum, kernel_object_t *new_object, kernel_session_ 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 [all...] |
/osnet-11/usr/src/lib/pkcs11/pkcs11_kms/common/ |
H A D | kmsObject.c | 86 kms_object_t *new_object = NULL; local 125 rv = kms_copy_object(old_object, &new_object, B_TRUE, 128 if ((rv != CKR_OK) || (new_object == NULL)) { 139 new_object->is_lib_obj = B_TRUE; 144 rv = kms_set_attribute(new_object, &pTemplate[i], 148 kms_cleanup_object(new_object); 156 kms_add_object_to_session(new_object, session_p); 166 *phNewObject = (CK_ULONG)new_object; 173 if (new_object != NULL) { 174 (void) kms_free_object(new_object); 347 kms_object_t *new_object = NULL; local [all...] |
H A D | kmsAttributeUtil.c | 640 CK_ULONG ulAttrNum, kms_object_t *new_object) 661 if (new_object->bool_attr_mask != 0) 662 attr_mask = new_object->bool_attr_mask; 673 new_object->object_class_u.secret_key = sck; 674 new_object->class = CKO_SECRET_KEY; 695 new_object); 819 new_object->key_type = keytype; 849 new_object->bool_attr_mask = attr_mask; 851 rv = kms_add_extra_attr(&string_tmp, new_object); 868 kms_cleanup_object(new_object); 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 [all...] |
H A D | kmsObjectUtil.c | 133 kms_copy_object(kms_object_t *old_object, kms_object_t **new_object, argument 164 *new_object = new_objp; 193 *new_object = NULL; 207 kms_merge_object(kms_object_t *old_object, kms_object_t *new_object) argument 209 old_object->bool_attr_mask = new_object->bool_attr_mask; 211 old_object->extra_attrlistp = new_object->extra_attrlistp;
|
/osnet-11/usr/src/lib/pkcs11/libpkcs11/common/ |
H A D | metaObjectManager.c | 229 meta_object_t *new_object; local 233 new_object = calloc(1, sizeof (meta_object_t)); 234 if (new_object == NULL) 239 new_object->clones = calloc(num_slots, sizeof (slot_object_t *)); 240 if (new_object->clones == NULL) { 241 free(new_object); 245 new_object->tried_create_clone = calloc(num_slots, sizeof (boolean_t)); 246 if (new_object->tried_create_clone == NULL) { 247 free(new_object->clones); 248 free(new_object); 417 meta_object_activate(meta_object_t *new_object) argument 628 slot_object_t *new_object; local [all...] |