Searched refs:convtime (Results 1 – 13 of 13) sorted by relevance
/openbsd/regress/usr.bin/ssh/unittests/misc/ |
H A D | test_convtime.c | 30 ASSERT_INT_EQ(convtime("0"), 0); in test_convtime() 31 ASSERT_INT_EQ(convtime("1"), 1); in test_convtime() 32 ASSERT_INT_EQ(convtime("2s"), 2); in test_convtime() 33 ASSERT_INT_EQ(convtime("3m"), 180); in test_convtime() 34 ASSERT_INT_EQ(convtime("1m30"), 90); in test_convtime() 35 ASSERT_INT_EQ(convtime("1m30s"), 90); in test_convtime() 36 ASSERT_INT_EQ(convtime("1h1s"), 3601); in test_convtime() 43 ASSERT_INT_EQ(convtime("-1"), -1); in test_convtime() 44 ASSERT_INT_EQ(convtime(""), -1); in test_convtime() 46 ASSERT_INT_EQ(convtime("-77"), -1); in test_convtime() [all …]
|
/openbsd/regress/usr.bin/ssh/unittests/conversion/ |
H A D | tests.c | 25 ASSERT_INT_EQ(convtime("0"), 0); in tests() 26 ASSERT_INT_EQ(convtime("1"), 1); in tests() 27 ASSERT_INT_EQ(convtime("1S"), 1); in tests() 29 ASSERT_INT_EQ(convtime("90m"), 5400); in tests() 30 ASSERT_INT_EQ(convtime("1h30m"), 5400); in tests() 31 ASSERT_INT_EQ(convtime("2d"), 172800); in tests() 32 ASSERT_INT_EQ(convtime("1w"), 604800); in tests() 35 ASSERT_INT_EQ(convtime("-7"), -1); in tests() 36 ASSERT_INT_EQ(convtime("-9d"), -1); in tests() 42 ASSERT_INT_EQ(convtime(buf), -1); in tests() [all …]
|
/openbsd/usr.bin/ssh/ |
H A D | misc.h | 82 int convtime(const char *);
|
H A D | sshd-auth.c | 519 if ((options.login_grace_time = convtime(optarg)) == -1) { in main()
|
H A D | ssh-keyscan.c | 679 timeout = convtime(optarg); in main()
|
H A D | readconf.c | 1160 else if ((value = convtime(arg)) == -1) { in process_config_line_depth() 1942 else if ((value2 = convtime(arg)) >= 0) in process_config_line_depth() 2291 if ((value2 = convtime(arg2)) == -1) { in process_config_line_depth() 2297 if ((value2 = convtime(arg)) == -1) { in process_config_line_depth()
|
H A D | ssh-add.c | 918 if ((lifetime = convtime(optarg)) == -1 || in main()
|
H A D | sshd-session.c | 842 if ((options.login_grace_time = convtime(optarg)) == -1) { in main()
|
H A D | misc.c | 565 convtime(const char *s) in convtime() function 2459 if ((secs = convtime(cp)) < 0) { in parse_pattern_interval()
|
H A D | sshd.c | 1232 if ((options.login_grace_time = convtime(optarg)) == -1) { in main()
|
H A D | servconf.c | 1345 if ((value = convtime(arg)) == -1) in process_server_config_line_depth() 2062 if (value == -1 && (value = convtime(p)) == -1) { in process_server_config_line_depth()
|
H A D | ssh-keygen.c | 1942 if ((secs = convtime(s + 1)) == -1) in parse_relative_time() 1973 if ((secs = convtime(timespec + 1)) == -1) in parse_cert_times()
|
H A D | ssh-agent.c | 2287 if ((lifetime = convtime(optarg)) == -1) { in main()
|