From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id DCF631F4BE for ; Mon, 24 Jun 2019 02:56:51 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 38/57] certs/create-certs.perl: fix cert validity on 32-bit Date: Mon, 24 Jun 2019 02:52:39 +0000 Message-Id: <20190624025258.25592-39-e@80x24.org> In-Reply-To: <20190624025258.25592-1-e@80x24.org> References: <20190624025258.25592-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: If I'm still alive, I won't be coding after 2038 :< --- certs/create-certs.perl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/certs/create-certs.perl b/certs/create-certs.perl index bfd8e5f1..476be4d7 100755 --- a/certs/create-certs.perl +++ b/certs/create-certs.perl @@ -8,7 +8,7 @@ use Net::SSLeay; my $dir = "./"; my $now = time(); -my $later = $now + 100*365*86400; +my $later = 0x7fffffff; # 2038 problems on 32-bit :< Net::SSLeay::SSLeay_add_ssl_algorithms(); my $sha256 = Net::SSLeay::EVP_get_digestbyname('sha256') or die; -- EW