summaryrefslogtreecommitdiff
path: root/sshconnect2.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2001-02-15 03:01:59 +0000
committerBen Lindstrom <mouring@eviladmin.org>2001-02-15 03:01:59 +0000
commit06b33aa0e83163f3dcd679317afec1ee95910512 (patch)
treeeae5cbd1cd71619bdd1e5d4a28e6bb96057f4479 /sshconnect2.c
parent4272ed803ff309f1fdb9c149b9cf083769f53744 (diff)
- markus@cvs.openbsd.org 2001/02/11 12:59:25
[Makefile.in sshd.8 sshconnect2.c readconf.h readconf.c packet.c sshd.c ssh.c ssh.1 servconf.h servconf.c myproposal.h kex.h kex.c] 1) clean up the MAC support for SSH-2 2) allow you to specify the MAC with 'ssh -m' 3) or the 'MACs' keyword in ssh(d)_config 4) add hmac-{md5,sha1}-96 ok stevesk@, provos@
Diffstat (limited to 'sshconnect2.c')
-rw-r--r--sshconnect2.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/sshconnect2.c b/sshconnect2.c
index 031f719ba..9681ca2d4 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.46 2001/02/10 12:09:21 markus Exp $"); 26RCSID("$OpenBSD: sshconnect2.c,v 1.47 2001/02/11 12:59:25 markus Exp $");
27 27
28#include <openssl/bn.h> 28#include <openssl/bn.h>
29#include <openssl/md5.h> 29#include <openssl/md5.h>
@@ -84,12 +84,16 @@ ssh_kex2(char *host, struct sockaddr *hostaddr)
84 myproposal[PROPOSAL_ENC_ALGS_STOC] = options.ciphers; 84 myproposal[PROPOSAL_ENC_ALGS_STOC] = options.ciphers;
85 } 85 }
86 if (options.compression) { 86 if (options.compression) {
87 myproposal[PROPOSAL_COMP_ALGS_CTOS] = "zlib"; 87 myproposal[PROPOSAL_COMP_ALGS_CTOS] =
88 myproposal[PROPOSAL_COMP_ALGS_STOC] = "zlib"; 88 myproposal[PROPOSAL_COMP_ALGS_STOC] = "zlib";
89 } else { 89 } else {
90 myproposal[PROPOSAL_COMP_ALGS_CTOS] = "none"; 90 myproposal[PROPOSAL_COMP_ALGS_CTOS] =
91 myproposal[PROPOSAL_COMP_ALGS_STOC] = "none"; 91 myproposal[PROPOSAL_COMP_ALGS_STOC] = "none";
92 } 92 }
93 if (options.macs != NULL) {
94 myproposal[PROPOSAL_MAC_ALGS_CTOS] =
95 myproposal[PROPOSAL_MAC_ALGS_STOC] = options.macs;
96 }
93 97
94 /* buffers with raw kexinit messages */ 98 /* buffers with raw kexinit messages */
95 server_kexinit = xmalloc(sizeof(*server_kexinit)); 99 server_kexinit = xmalloc(sizeof(*server_kexinit));