summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@arm.com>2022-01-27 13:03:11 +0100
committerPauli <pauli@openssl.org>2022-02-02 04:02:09 +0100
commit27aca04e13ca8a9bead49de7bc380110ecb7064e (patch)
treefd5410fa063d6f12cc85f7ec303d4ff3429c9c54
parentUpdate the comment on ssl3_write_pending() (diff)
downloadopenssl-27aca04e13ca8a9bead49de7bc380110ecb7064e.tar.xz
openssl-27aca04e13ca8a9bead49de7bc380110ecb7064e.zip
apps/progs.pl: use SOURCE_DATE_EPOCH if defined for copyright year
As with 11d7d903, use SOURCE_DATE_EPOCH for the copyright year if it is defined, to avoid reproducibility problems. CLA: trivial Signed-off-by: Ross Burton <ross.burton@arm.com> Change-Id: I1bea19070411a69155c43de7082350fb2c499da3 Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/17601)
-rw-r--r--apps/progs.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/progs.pl b/apps/progs.pl
index 8a5759a961..77054902b4 100644
--- a/apps/progs.pl
+++ b/apps/progs.pl
@@ -21,7 +21,7 @@ die "Unrecognised option, must be -C or -H\n"
my %commands = ();
my $cmdre = qr/^\s*int\s+([a-z_][a-z0-9_]*)_main\(\s*int\s+argc\s*,/;
my $apps_openssl = shift @ARGV;
-my $YEAR = [localtime()]->[5] + 1900;
+my $YEAR = [gmtime($ENV{SOURCE_DATE_EPOCH} || time())]->[5] + 1900;
# because the program apps/openssl has object files as sources, and
# they then have the corresponding C files as source, we need to chain