diff options
author | Alexander Kanavin <alex@linutronix.de> | 2024-12-05 16:26:46 +0100 |
---|---|---|
committer | Darren Tucker <dtucker@dtucker.net> | 2024-12-06 07:38:22 +0100 |
commit | 1a0cac2f3411a22d69ae6918eff48456b805e73b (patch) | |
tree | f27df1b11c156700c47fa40a5108188d0d4da9f8 | |
parent | Skip 64bit expiry time test on 32bit time_t. (diff) | |
download | openssh-1a0cac2f3411a22d69ae6918eff48456b805e73b.tar.xz openssh-1a0cac2f3411a22d69ae6918eff48456b805e73b.zip |
Skip 2038 key expiry test on 64 bit time_t systems.
This allows testing Y2038 with system time set to after that (i.e. 2040),
so that actual Y2038 issues can be exposed, and not masked by key expiry
errors.
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
-rw-r--r-- | regress/key-options.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/regress/key-options.sh b/regress/key-options.sh index c98dafc3f..7f9b45fc0 100644 --- a/regress/key-options.sh +++ b/regress/key-options.sh @@ -120,7 +120,8 @@ check_valid_before() { check_valid_before "default" "" "pass" check_valid_before "invalid" 'expiry-time="INVALID"' "fail" check_valid_before "expired" 'expiry-time="19990101"' "fail" +if config_defined "SIZEOF_TIME_T 4"; then check_valid_before "valid" 'expiry-time="20380101"' "pass" -if ! config_defined "SIZEOF_TIME_T 4"; then +else check_valid_before "valid-64b" 'expiry-time="25250101"' "pass" fi |