summaryrefslogtreecommitdiff
path: root/kex.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2005-07-17 17:02:09 +1000
committerDamien Miller <djm@mindrot.org>2005-07-17 17:02:09 +1000
commit46d38de48b1018c74040d2399bafbedf50247529 (patch)
tree48255e4d9fc4bbd22615a35f4f5d4537873cba68 /kex.c
parent4f1adad4f65d63645689d2d947876848b0813390 (diff)
- djm@cvs.openbsd.org 2005/07/16 01:35:24
[auth1.c channels.c cipher.c clientloop.c kex.c session.c ssh.c] [sshconnect.c] spacing
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 8736aa286..32c6d03ea 100644
--- a/kex.c
+++ b/kex.c
@@ -23,7 +23,7 @@
23 */ 23 */
24 24
25#include "includes.h" 25#include "includes.h"
26RCSID("$OpenBSD: kex.c,v 1.61 2005/06/17 02:44:32 djm Exp $"); 26RCSID("$OpenBSD: kex.c,v 1.62 2005/07/16 01:35:24 djm Exp $");
27 27
28#include <openssl/crypto.h> 28#include <openssl/crypto.h>
29 29
@@ -411,7 +411,7 @@ derive_key(Kex *kex, int id, u_int need, u_char *hash, BIGNUM *shared_secret)
411 u_int have; 411 u_int have;
412 int mdsz = EVP_MD_size(evp_md); 412 int mdsz = EVP_MD_size(evp_md);
413 u_char *digest; 413 u_char *digest;
414 414
415 if (mdsz < 0) 415 if (mdsz < 0)
416 fatal("derive_key: mdsz < 0"); 416 fatal("derive_key: mdsz < 0");
417 digest = xmalloc(roundup(need, mdsz)); 417 digest = xmalloc(roundup(need, mdsz));