Home
last modified time | relevance | path

Searched refs:convtime (Results 1 – 13 of 13) sorted by relevance

/openbsd/regress/usr.bin/ssh/unittests/misc/
H A Dtest_convtime.c30 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 Dtests.c25 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 Dmisc.h82 int convtime(const char *);
H A Dsshd-auth.c519 if ((options.login_grace_time = convtime(optarg)) == -1) { in main()
H A Dssh-keyscan.c679 timeout = convtime(optarg); in main()
H A Dreadconf.c1160 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 Dssh-add.c918 if ((lifetime = convtime(optarg)) == -1 || in main()
H A Dsshd-session.c842 if ((options.login_grace_time = convtime(optarg)) == -1) { in main()
H A Dmisc.c565 convtime(const char *s) in convtime() function
2459 if ((secs = convtime(cp)) < 0) { in parse_pattern_interval()
H A Dsshd.c1232 if ((options.login_grace_time = convtime(optarg)) == -1) { in main()
H A Dservconf.c1345 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 Dssh-keygen.c1942 if ((secs = convtime(s + 1)) == -1) in parse_relative_time()
1973 if ((secs = convtime(timespec + 1)) == -1) in parse_cert_times()
H A Dssh-agent.c2287 if ((lifetime = convtime(optarg)) == -1) { in main()