mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-11-27 13:21:11 +03:00
wrapper: Move dh cleanup into dh.c
Signed-off-by: Aris Adamantiadis <aris@0xbadc0de.be> Reviewed-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
committed by
Andreas Schneider
parent
9407065879
commit
40faa98c5e
@@ -165,10 +165,7 @@ void crypto_free(struct ssh_crypto_struct *crypto)
|
||||
cipher_free(crypto->in_cipher);
|
||||
cipher_free(crypto->out_cipher);
|
||||
|
||||
bignum_safe_free(crypto->e);
|
||||
bignum_safe_free(crypto->f);
|
||||
bignum_safe_free(crypto->x);
|
||||
bignum_safe_free(crypto->y);
|
||||
ssh_dh_cleanup(crypto);
|
||||
bignum_safe_free(crypto->k);
|
||||
#ifdef HAVE_ECDH
|
||||
SAFE_FREE(crypto->ecdh_client_pubkey);
|
||||
|
||||
Reference in New Issue
Block a user