summaryrefslogtreecommitdiff
path: root/kexgex.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2001-06-09 01:42:01 +0000
committerBen Lindstrom <mouring@eviladmin.org>2001-06-09 01:42:01 +0000
commit664408d2a794806722aa3f321b92c7bdd667c42e (patch)
tree0dbce8250bc4d6325ed2f2b6950221a24d62dc2a /kexgex.c
parent9d0c06667eb4ca616ffa690e88b9dd7c438e3103 (diff)
- markus@cvs.openbsd.org 2001/06/07 20:23:05
[authfd.c authfile.c channels.c kexdh.c kexgex.c packet.c ssh.c sshconnect.c sshconnect1.c] use xxx_put_cstring()
Diffstat (limited to 'kexgex.c')
-rw-r--r--kexgex.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/kexgex.c b/kexgex.c
index 44f2f5c95..f21f310ee 100644
--- a/kexgex.c
+++ b/kexgex.c
@@ -24,7 +24,7 @@
24 */ 24 */
25 25
26#include "includes.h" 26#include "includes.h"
27RCSID("$OpenBSD: kexgex.c,v 1.5 2001/04/05 10:42:50 markus Exp $"); 27RCSID("$OpenBSD: kexgex.c,v 1.6 2001/06/07 20:23:04 markus Exp $");
28 28
29#include <openssl/bn.h> 29#include <openssl/bn.h>
30 30
@@ -57,8 +57,8 @@ kexgex_hash(
57 EVP_MD_CTX md; 57 EVP_MD_CTX md;
58 58
59 buffer_init(&b); 59 buffer_init(&b);
60 buffer_put_string(&b, client_version_string, strlen(client_version_string)); 60 buffer_put_cstring(&b, client_version_string);
61 buffer_put_string(&b, server_version_string, strlen(server_version_string)); 61 buffer_put_cstring(&b, server_version_string);
62 62
63 /* kexinit messages: fake header: len+SSH2_MSG_KEXINIT */ 63 /* kexinit messages: fake header: len+SSH2_MSG_KEXINIT */
64 buffer_put_int(&b, ckexinitlen+1); 64 buffer_put_int(&b, ckexinitlen+1);