Lines Matching refs:certptr
203 free_decoded_cert(KMF_X509_CERTIFICATE *certptr)
205 if (!certptr)
208 free_tbscert(&certptr->certificate);
210 free_algoid(&certptr->signature.algorithmIdentifier);
211 free_data(&certptr->signature.encrypted);
1521 KMF_X509_CERTIFICATE *certptr = NULL;
1538 certptr = malloc(sizeof (KMF_X509_CERTIFICATE));
1539 if (certptr == NULL) {
1543 (void) memset(certptr, 0, sizeof (KMF_X509_CERTIFICATE));
1549 certptr->certificate = *tbscert;
1557 &certptr->signature.algorithmIdentifier)) == KMF_OK) {
1574 certptr->signature.encrypted.Data =
1576 certptr->signature.encrypted.Length = size / 8;
1578 certptr->signature.encrypted.Data = NULL;
1579 certptr->signature.encrypted.Length = 0;
1582 (void) memset(&certptr->signature, 0,
1583 sizeof (certptr->signature));
1587 *signed_cert_ptr_ptr = certptr;
1590 if (certptr) {
1591 free_decoded_cert(certptr);
1592 free(certptr);