version 1.29, 2015/12/10 17:08:40 |
version 1.30, 2015/12/11 02:31:47 |
|
|
for (i = 0; i < cert->nprincipals; i++) |
for (i = 0; i < cert->nprincipals; i++) |
free(cert->principals[i]); |
free(cert->principals[i]); |
free(cert->principals); |
free(cert->principals); |
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)); |
free(cert); |
free(cert); |
} |
} |
|
|
out: |
out: |
if (copy != NULL) |
if (copy != NULL) |
sshbuf_free(copy); |
sshbuf_free(copy); |
if (pub != NULL) |
sshkey_free(pub); |
sshkey_free(pub); |
|
return r; |
return r; |
} |
} |
|
|
|
|
out: |
out: |
explicit_bzero(&ciphercontext, sizeof(ciphercontext)); |
explicit_bzero(&ciphercontext, sizeof(ciphercontext)); |
free(comment); |
free(comment); |
if (prv != NULL) |
sshkey_free(prv); |
sshkey_free(prv); |
|
if (copy != NULL) |
if (copy != NULL) |
sshbuf_free(copy); |
sshbuf_free(copy); |
if (decrypted != NULL) |
if (decrypted != NULL) |
|
|
BIO_free(bio); |
BIO_free(bio); |
if (pk != NULL) |
if (pk != NULL) |
EVP_PKEY_free(pk); |
EVP_PKEY_free(pk); |
if (prv != NULL) |
sshkey_free(prv); |
sshkey_free(prv); |
|
return r; |
return r; |
} |
} |
#endif /* WITH_OPENSSL */ |
#endif /* WITH_OPENSSL */ |