summaryrefslogtreecommitdiff
path: root/kexdh.c
diff options
context:
space:
mode:
Diffstat (limited to 'kexdh.c')
-rw-r--r--kexdh.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/kexdh.c b/kexdh.c
index 43a14f558..226b81bc9 100644
--- a/kexdh.c
+++ b/kexdh.c
@@ -23,7 +23,7 @@
23 */ 23 */
24 24
25#include "includes.h" 25#include "includes.h"
26RCSID("$OpenBSD: kexdh.c,v 1.10 2001/12/28 12:14:27 markus Exp $"); 26RCSID("$OpenBSD: kexdh.c,v 1.11 2001/12/28 13:57:33 markus Exp $");
27 27
28#include <openssl/crypto.h> 28#include <openssl/crypto.h>
29#include <openssl/bn.h> 29#include <openssl/bn.h>
@@ -97,7 +97,7 @@ kexdh_client(Kex *kex)
97 u_char *server_host_key_blob = NULL, *signature = NULL; 97 u_char *server_host_key_blob = NULL, *signature = NULL;
98 u_char *kbuf, *hash; 98 u_char *kbuf, *hash;
99 u_int klen, kout, slen, sbloblen; 99 u_int klen, kout, slen, sbloblen;
100 int dlen, plen; 100 int plen;
101 101
102 /* generate and send 'e', client DH public key */ 102 /* generate and send 'e', client DH public key */
103 dh = dh_new_group1(); 103 dh = dh_new_group1();
@@ -131,7 +131,7 @@ kexdh_client(Kex *kex)
131 /* DH paramter f, server public DH key */ 131 /* DH paramter f, server public DH key */
132 if ((dh_server_pub = BN_new()) == NULL) 132 if ((dh_server_pub = BN_new()) == NULL)
133 fatal("dh_server_pub == NULL"); 133 fatal("dh_server_pub == NULL");
134 packet_get_bignum2(dh_server_pub, &dlen); 134 packet_get_bignum2(dh_server_pub);
135 135
136#ifdef DEBUG_KEXDH 136#ifdef DEBUG_KEXDH
137 fprintf(stderr, "dh_server_pub= "); 137 fprintf(stderr, "dh_server_pub= ");
@@ -201,7 +201,7 @@ kexdh_server(Kex *kex)
201 Key *server_host_key; 201 Key *server_host_key;
202 u_char *kbuf, *hash, *signature = NULL, *server_host_key_blob = NULL; 202 u_char *kbuf, *hash, *signature = NULL, *server_host_key_blob = NULL;
203 u_int sbloblen, klen, kout; 203 u_int sbloblen, klen, kout;
204 int dlen, slen, plen; 204 int slen, plen;
205 205
206 /* generate server DH public key */ 206 /* generate server DH public key */
207 dh = dh_new_group1(); 207 dh = dh_new_group1();
@@ -219,7 +219,7 @@ kexdh_server(Kex *kex)
219 /* key, cert */ 219 /* key, cert */
220 if ((dh_client_pub = BN_new()) == NULL) 220 if ((dh_client_pub = BN_new()) == NULL)
221 fatal("dh_client_pub == NULL"); 221 fatal("dh_client_pub == NULL");
222 packet_get_bignum2(dh_client_pub, &dlen); 222 packet_get_bignum2(dh_client_pub);
223 223
224#ifdef DEBUG_KEXDH 224#ifdef DEBUG_KEXDH
225 fprintf(stderr, "dh_client_pub= "); 225 fprintf(stderr, "dh_client_pub= ");