logo

live-bootstrap

Mirror of <https://github.com/fosslinux/live-bootstrap>

timeless-mk-ca-bundle.patch (982B)


  1. # SPDX-FileCopyrightText: 2023 Eduardo Sánchez Muñoz <eduardosm-dev@e64.io>
  2. #
  3. # SPDX-License-Identifier: curl
  4. Disables checking current date in mk-ca-bundle script, so it produces
  5. reproducible bundles.
  6. diff -ru scripts/mk-ca-bundle.pl scripts/mk-ca-bundle.pl
  7. --- curl-8.12.1/scripts/mk-ca-bundle.pl
  8. +++ curl-8.12.1/scripts/mk-ca-bundle.pl
  9. @@ -499,19 +499,7 @@
  10. if($main_block) {
  11. push @precert, $_ if not /^#$/;
  12. if(/^# Not Valid After : (.*)/) {
  13. - my $stamp = $1;
  14. - use Time::Piece;
  15. - # Not Valid After : Thu Sep 30 14:01:15 2021
  16. - my $t = Time::Piece->strptime($stamp, "%a %b %d %H:%M:%S %Y");
  17. - my $delta = ($t->epoch - time()); # negative means no longer valid
  18. - if($delta < 0) {
  19. - $skipnum++;
  20. - report "Skipping: $main_block_name is not valid anymore" if ($opt_v);
  21. - $valid = 0;
  22. - }
  23. - else {
  24. - $valid = 1;
  25. - }
  26. + $valid = 1;
  27. }
  28. }
  29. next;