From: Alexander Kanavin Date: Thu, 5 Dec 2024 15:26:46 +0000 (+0100) Subject: Skip 2038 key expiry test on 64 bit time_t systems. X-Git-Tag: V_10_0_P1~106 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1a0cac2f3411a22d69ae6918eff48456b805e73b;p=thirdparty%2Fopenssh-portable.git 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 --- 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