[openssh-commits] [openssh] 01/02: Skip 2038 key expiry test on 64 bit time_t systems.

git+noreply at mindrot.org git+noreply at mindrot.org
Fri Dec 6 17:44:49 AEDT 2024


This is an automated email from the git hooks/post-receive script.

dtucker pushed a commit to branch master
in repository openssh.

commit 1a0cac2f3411a22d69ae6918eff48456b805e73b
Author: Alexander Kanavin <alex at linutronix.de>
AuthorDate: Thu Dec 5 16:26:46 2024 +0100

    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 at linutronix.de>
---
 regress/key-options.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/regress/key-options.sh b/regress/key-options.sh
index c98dafc3..7f9b45fc 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

-- 
To stop receiving notification emails like this one, please contact
djm at mindrot.org.


More information about the openssh-commits mailing list