summaryrefslogtreecommitdiff
path: root/kexdh.c
diff options
context:
space:
mode:
authordjm <djm>2002-01-22 12:10:33 +0000
committerdjm <djm>2002-01-22 12:10:33 +0000
commit5b12ac31703c48aa3caacbdc498f75928609119e (patch)
tree3971fa0b70df103d450f69d19015792744afbf48 /kexdh.c
parentf17e93d410915dc0f08432af511730b38692cbd7 (diff)
downloadopenssh-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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/kexdh.c b/kexdh.c
index 1e9f3583..059b41c4 100644
--- a/kexdh.c
+++ b/kexdh.c
@@ -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 */