summaryrefslogtreecommitdiff
path: root/kex.c
diff options
context:
space:
mode:
authordjm <djm>2002-02-05 00:54:07 +0000
committerdjm <djm>2002-02-05 00:54:07 +0000
commit2b1d07f662b23086ab42cb42d81a3de0d9b4528f (patch)
treef8d17c9303cf620219db55706a43583d09a6eadc /kex.c
parentdcdf4e04d2680af1399e73f16325e2a8f7991179 (diff)
downloadopenssh-2b1d07f662b23086ab42cb42d81a3de0d9b4528f.tar.gz
- markus@cvs.openbsd.org 2002/01/25 22:07:40
[kex.c kexdh.c kexgex.c key.c mac.c] use EVP_MD_size(evp_md) and not evp_md->md_size; ok steveks@
Diffstat (limited to 'kex.c')
-rw-r--r--kex.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kex.c b/kex.c
index c74f1e4a..b58b12f4 100644
--- a/kex.c
+++ b/kex.c
@@ -23,7 +23,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: kex.c,v 1.42 2002/01/11 13:39:36 markus Exp $");
+RCSID("$OpenBSD: kex.c,v 1.43 2002/01/25 22:07:40 markus Exp $");
#include <openssl/crypto.h>
@@ -363,7 +363,7 @@ derive_key(Kex *kex, int id, int need, u_char *hash, BIGNUM *shared_secret)
EVP_MD_CTX md;
char c = id;
int have;
- int mdsz = evp_md->md_size;
+ int mdsz = EVP_MD_size(evp_md);
u_char *digest = xmalloc(roundup(need, mdsz));
buffer_init(&b);