Home
last modified time | relevance | path

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

/titanic_44/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftAttributeUtil.c336 copy_cert_attr(cert_attr_t *src_attr, cert_attr_t **dest_attr) in copy_cert_attr() argument
340 if (src_attr == NULL || dest_attr == NULL) in copy_cert_attr()
347 if (*dest_attr != NULL) { in copy_cert_attr()
348 if ((*dest_attr)->value != (CK_BYTE *)NULL) in copy_cert_attr()
349 free((*dest_attr)->value); in copy_cert_attr()
351 *dest_attr = malloc(sizeof (cert_attr_t)); in copy_cert_attr()
352 if (*dest_attr == NULL) in copy_cert_attr()
356 (*dest_attr)->value = NULL; in copy_cert_attr()
357 (*dest_attr)->length = 0; in copy_cert_attr()
360 (*dest_attr)->value = malloc(src_attr->length); in copy_cert_attr()
[all …]