diff options
author | djm <djm> | 2002-01-22 12:10:33 +0000 |
---|---|---|
committer | djm <djm> | 2002-01-22 12:10:33 +0000 |
commit | 5b12ac31703c48aa3caacbdc498f75928609119e (patch) | |
tree | 3971fa0b70df103d450f69d19015792744afbf48 /kexdh.c | |
parent | f17e93d410915dc0f08432af511730b38692cbd7 (diff) | |
download | openssh-5b12ac31703c48aa3caacbdc498f75928609119e.tar.gz |
- markus@cvs.openbsd.org 2001/12/27 19:37:23
[dh.c kexdh.c kexgex.c]
always use BN_clear_free instead of BN_free
Diffstat (limited to 'kexdh.c')
-rw-r--r-- | kexdh.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -23,7 +23,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: kexdh.c,v 1.8 2001/12/27 18:22:16 markus Exp $"); +RCSID("$OpenBSD: kexdh.c,v 1.9 2001/12/27 19:37:22 markus Exp $"); #include <openssl/crypto.h> #include <openssl/bn.h> @@ -171,7 +171,7 @@ kexdh_client(Kex *kex) shared_secret ); xfree(server_host_key_blob); - BN_free(dh_server_pub); + BN_clear_free(dh_server_pub); DH_free(dh); if (key_verify(server_host_key, signature, slen, hash, 20) != 1) @@ -262,7 +262,7 @@ kexdh_server(Kex *kex) dh->pub_key, shared_secret ); - BN_free(dh_client_pub); + BN_clear_free(dh_client_pub); /* save session id := H */ /* XXX hashlen depends on KEX */ |