diff options
Diffstat (limited to 'kexdh.c')
-rw-r--r-- | kexdh.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -23,7 +23,7 @@ | |||
23 | */ | 23 | */ |
24 | 24 | ||
25 | #include "includes.h" | 25 | #include "includes.h" |
26 | RCSID("$OpenBSD: kexdh.c,v 1.8 2001/12/27 18:22:16 markus Exp $"); | 26 | RCSID("$OpenBSD: kexdh.c,v 1.9 2001/12/27 19:37:22 markus Exp $"); |
27 | 27 | ||
28 | #include <openssl/crypto.h> | 28 | #include <openssl/crypto.h> |
29 | #include <openssl/bn.h> | 29 | #include <openssl/bn.h> |
@@ -171,7 +171,7 @@ kexdh_client(Kex *kex) | |||
171 | shared_secret | 171 | shared_secret |
172 | ); | 172 | ); |
173 | xfree(server_host_key_blob); | 173 | xfree(server_host_key_blob); |
174 | BN_free(dh_server_pub); | 174 | BN_clear_free(dh_server_pub); |
175 | DH_free(dh); | 175 | DH_free(dh); |
176 | 176 | ||
177 | if (key_verify(server_host_key, signature, slen, hash, 20) != 1) | 177 | if (key_verify(server_host_key, signature, slen, hash, 20) != 1) |
@@ -262,7 +262,7 @@ kexdh_server(Kex *kex) | |||
262 | dh->pub_key, | 262 | dh->pub_key, |
263 | shared_secret | 263 | shared_secret |
264 | ); | 264 | ); |
265 | BN_free(dh_client_pub); | 265 | BN_clear_free(dh_client_pub); |
266 | 266 | ||
267 | /* save session id := H */ | 267 | /* save session id := H */ |
268 | /* XXX hashlen depends on KEX */ | 268 | /* XXX hashlen depends on KEX */ |