summaryrefslogtreecommitdiff
path: root/ssh.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 /ssh.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 'ssh.c')
-rw-r--r--ssh.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/ssh.c b/ssh.c
index 4ca1e7bf8..1b022402d 100644
--- a/ssh.c
+++ b/ssh.c
@@ -39,7 +39,7 @@
39 */ 39 */
40 40
41#include "includes.h" 41#include "includes.h"
42RCSID("$OpenBSD: ssh.c,v 1.94 2001/02/10 01:46:28 markus Exp $"); 42RCSID("$OpenBSD: ssh.c,v 1.95 2001/02/11 12:59:25 markus Exp $");
43 43
44#include <openssl/evp.h> 44#include <openssl/evp.h>
45#include <openssl/err.h> 45#include <openssl/err.h>
@@ -65,6 +65,8 @@ RCSID("$OpenBSD: ssh.c,v 1.94 2001/02/10 01:46:28 markus Exp $");
65#include "tildexpand.h" 65#include "tildexpand.h"
66#include "dispatch.h" 66#include "dispatch.h"
67#include "misc.h" 67#include "misc.h"
68#include "kex.h"
69#include "mac.h"
68 70
69#ifdef HAVE___PROGNAME 71#ifdef HAVE___PROGNAME
70extern char *__progname; 72extern char *__progname;
@@ -305,7 +307,7 @@ main(int ac, char **av)
305 opt = av[optind][1]; 307 opt = av[optind][1];
306 if (!opt) 308 if (!opt)
307 usage(); 309 usage();
308 if (strchr("eilcpLRo", opt)) { /* options with arguments */ 310 if (strchr("eilcmpLRo", opt)) { /* options with arguments */
309 optarg = av[optind] + 2; 311 optarg = av[optind] + 2;
310 if (strcmp(optarg, "") == 0) { 312 if (strcmp(optarg, "") == 0) {
311 if (optind >= ac - 1) 313 if (optind >= ac - 1)
@@ -434,6 +436,14 @@ main(int ac, char **av)
434 } 436 }
435 } 437 }
436 break; 438 break;
439 case 'm':
440 if (mac_valid(optarg))
441 options.macs = xstrdup(optarg);
442 else {
443 fprintf(stderr, "Unknown mac type '%s'\n", optarg);
444 exit(1);
445 }
446 break;
437 case 'p': 447 case 'p':
438 options.port = atoi(optarg); 448 options.port = atoi(optarg);
439 break; 449 break;