mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-11-27 13:21:11 +03:00
ed25519: ADd OpenSSH encrypted container import
Signed-off-by: Aris Adamantiadis <aris@0xbadc0de.be> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
committed by
Andreas Schneider
parent
61e2c8f0f7
commit
423fa6818b
@@ -103,7 +103,7 @@ static struct ssh_cipher_struct *cipher_new(int offset) {
|
||||
return cipher;
|
||||
}
|
||||
|
||||
static void cipher_free(struct ssh_cipher_struct *cipher) {
|
||||
void ssh_cipher_clear(struct ssh_cipher_struct *cipher){
|
||||
#ifdef HAVE_LIBGCRYPT
|
||||
unsigned int i;
|
||||
#endif
|
||||
@@ -123,6 +123,10 @@ static void cipher_free(struct ssh_cipher_struct *cipher) {
|
||||
#endif
|
||||
SAFE_FREE(cipher->key);
|
||||
}
|
||||
}
|
||||
|
||||
static void cipher_free(struct ssh_cipher_struct *cipher) {
|
||||
ssh_cipher_clear(cipher);
|
||||
SAFE_FREE(cipher);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user