version 1.28, 2015/12/04 16:41:28 |
version 1.29, 2015/12/10 17:08:40 |
|
|
sshbuf_free(cert->critical); |
sshbuf_free(cert->critical); |
if (cert->extensions != NULL) |
if (cert->extensions != NULL) |
sshbuf_free(cert->extensions); |
sshbuf_free(cert->extensions); |
if (cert->key_id != NULL) |
free(cert->key_id); |
free(cert->key_id); |
|
for (i = 0; i < cert->nprincipals; i++) |
for (i = 0; i < cert->nprincipals; i++) |
free(cert->principals[i]); |
free(cert->principals[i]); |
if (cert->principals != NULL) |
free(cert->principals); |
free(cert->principals); |
|
if (cert->signature_key != NULL) |
if (cert->signature_key != NULL) |
sshkey_free(cert->signature_key); |
sshkey_free(cert->signature_key); |
explicit_bzero(cert, sizeof(*cert)); |
explicit_bzero(cert, sizeof(*cert)); |
|
|
out: |
out: |
if (ret != 0) |
if (ret != 0) |
sshbuf_reset(cert); |
sshbuf_reset(cert); |
if (sig_blob != NULL) |
free(sig_blob); |
free(sig_blob); |
free(ca_blob); |
if (ca_blob != NULL) |
|
free(ca_blob); |
|
if (principals != NULL) |
if (principals != NULL) |
sshbuf_free(principals); |
sshbuf_free(principals); |
return ret; |
return ret; |
|
|
} |
} |
out: |
out: |
explicit_bzero(&ciphercontext, sizeof(ciphercontext)); |
explicit_bzero(&ciphercontext, sizeof(ciphercontext)); |
if (comment != NULL) |
free(comment); |
free(comment); |
|
if (prv != NULL) |
if (prv != NULL) |
sshkey_free(prv); |
sshkey_free(prv); |
if (copy != NULL) |
if (copy != NULL) |