summaryrefslogtreecommitdiff
path: root/sshconnect2.c
diff options
context:
space:
mode:
Diffstat (limited to 'sshconnect2.c')
-rw-r--r--sshconnect2.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sshconnect2.c b/sshconnect2.c
index 215f76ca2..703d0721f 100644
--- a/sshconnect2.c
+++ b/sshconnect2.c
@@ -23,7 +23,7 @@
23 */ 23 */
24 24
25#include "includes.h" 25#include "includes.h"
26RCSID("$OpenBSD: sshconnect2.c,v 1.105 2002/06/23 03:30:17 deraadt Exp $"); 26RCSID("$OpenBSD: sshconnect2.c,v 1.107 2002/07/01 19:48:46 markus Exp $");
27 27
28#include "ssh.h" 28#include "ssh.h"
29#include "ssh2.h" 29#include "ssh2.h"
@@ -95,10 +95,10 @@ ssh_kex2(char *host, struct sockaddr *hostaddr)
95 compat_cipher_proposal(myproposal[PROPOSAL_ENC_ALGS_STOC]); 95 compat_cipher_proposal(myproposal[PROPOSAL_ENC_ALGS_STOC]);
96 if (options.compression) { 96 if (options.compression) {
97 myproposal[PROPOSAL_COMP_ALGS_CTOS] = 97 myproposal[PROPOSAL_COMP_ALGS_CTOS] =
98 myproposal[PROPOSAL_COMP_ALGS_STOC] = "zlib"; 98 myproposal[PROPOSAL_COMP_ALGS_STOC] = "zlib,none";
99 } else { 99 } else {
100 myproposal[PROPOSAL_COMP_ALGS_CTOS] = 100 myproposal[PROPOSAL_COMP_ALGS_CTOS] =
101 myproposal[PROPOSAL_COMP_ALGS_STOC] = "none"; 101 myproposal[PROPOSAL_COMP_ALGS_STOC] = "none,zlib";
102 } 102 }
103 if (options.macs != NULL) { 103 if (options.macs != NULL) {
104 myproposal[PROPOSAL_MAC_ALGS_CTOS] = 104 myproposal[PROPOSAL_MAC_ALGS_CTOS] =
@@ -422,7 +422,7 @@ input_userauth_pk_ok(int type, u_int32_t seq, void *ctxt)
422 clear_auth_state(authctxt); 422 clear_auth_state(authctxt);
423 dispatch_set(SSH2_MSG_USERAUTH_PK_OK, NULL); 423 dispatch_set(SSH2_MSG_USERAUTH_PK_OK, NULL);
424 424
425 /* try another method if we did not send a packet*/ 425 /* try another method if we did not send a packet */
426 if (sent == 0) 426 if (sent == 0)
427 userauth(authctxt, NULL); 427 userauth(authctxt, NULL);
428 428
@@ -947,9 +947,9 @@ ssh_keysign(Key *key, u_char **sigp, u_int *lenp,
947 buffer_init(&b); 947 buffer_init(&b);
948 buffer_put_int(&b, packet_get_connection_in()); /* send # of socket */ 948 buffer_put_int(&b, packet_get_connection_in()); /* send # of socket */
949 buffer_put_string(&b, data, datalen); 949 buffer_put_string(&b, data, datalen);
950 msg_send(to[1], version, &b); 950 ssh_msg_send(to[1], version, &b);
951 951
952 if (msg_recv(from[0], &b) < 0) { 952 if (ssh_msg_recv(from[0], &b) < 0) {
953 error("ssh_keysign: no reply"); 953 error("ssh_keysign: no reply");
954 buffer_clear(&b); 954 buffer_clear(&b);
955 return -1; 955 return -1;