summaryrefslogtreecommitdiff
path: root/sshd.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2001-06-05 19:59:08 +0000
committerBen Lindstrom <mouring@eviladmin.org>2001-06-05 19:59:08 +0000
commit1bda4c835e2fb1c8a9088f9d1011ae404ab8cd85 (patch)
tree8324d761b353f64cc150e28c51e96b27c351c0ed /sshd.c
parentbd0e2de8e59b4588a45a27c168e70bba95db9969 (diff)
- stevesk@cvs.openbsd.org 2001/05/19 19:43:57
[misc.c misc.h servconf.c sshd.8 sshd.c] sshd command-line arguments and configuration file options that specify time may be expressed using a sequence of the form: time[qualifier], where time is a positive integer value and qualifier is one of the following: <none>,s,m,h,d,w Examples: 600 600 seconds (10 minutes) 10m 10 minutes 1h30m 1 hour 30 minutes (90 minutes) ok markus@
Diffstat (limited to 'sshd.c')
-rw-r--r--sshd.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/sshd.c b/sshd.c
index a20b81cca..135c08bb0 100644
--- a/sshd.c
+++ b/sshd.c
@@ -40,7 +40,7 @@
40 */ 40 */
41 41
42#include "includes.h" 42#include "includes.h"
43RCSID("$OpenBSD: sshd.c,v 1.196 2001/05/18 14:13:29 markus Exp $"); 43RCSID("$OpenBSD: sshd.c,v 1.197 2001/05/19 19:43:57 stevesk Exp $");
44 44
45#include <openssl/dh.h> 45#include <openssl/dh.h>
46#include <openssl/bn.h> 46#include <openssl/bn.h>
@@ -618,10 +618,16 @@ main(int ac, char **av)
618 } 618 }
619 break; 619 break;
620 case 'g': 620 case 'g':
621 options.login_grace_time = atoi(optarg); 621 if ((options.login_grace_time = convtime(optarg)) == -1) {
622 fprintf(stderr, "Invalid login grace time.\n");
623 exit(1);
624 }
622 break; 625 break;
623 case 'k': 626 case 'k':
624 options.key_regeneration_time = atoi(optarg); 627 if ((options.key_regeneration_time = convtime(optarg)) == -1) {
628 fprintf(stderr, "Invalid key regeneration interval.\n");
629 exit(1);
630 }
625 break; 631 break;
626 case 'h': 632 case 'h':
627 if (options.num_host_key_files >= MAX_HOSTKEYS) { 633 if (options.num_host_key_files >= MAX_HOSTKEYS) {