diff options
| author | sthen <> | 2025-06-16 10:24:55 +0000 |
|---|---|---|
| committer | sthen <> | 2025-06-16 10:24:55 +0000 |
| commit | aebbc2857d6e27820eb817801ad5e98660e35cea (patch) | |
| tree | 5252a0a0de0ffa9544ac1cafd05deeb20b538a8d /src | |
| parent | 5f37d81f37a451ed3f9dc8f684e6e2df91f6e465 (diff) | |
| download | openbsd-aebbc2857d6e27820eb817801ad5e98660e35cea.tar.gz openbsd-aebbc2857d6e27820eb817801ad5e98660e35cea.tar.bz2 openbsd-aebbc2857d6e27820eb817801ad5e98660e35cea.zip | |
strip the temporary filename when displaying a verification error;
avoids unnecessary diff in output between runs
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libcrypto/format-pem.pl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/libcrypto/format-pem.pl b/src/lib/libcrypto/format-pem.pl index 5a96fe5b1d..fba3470344 100644 --- a/src/lib/libcrypto/format-pem.pl +++ b/src/lib/libcrypto/format-pem.pl | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | #!/usr/bin/perl | 1 | #!/usr/bin/perl |
| 2 | # $OpenBSD: format-pem.pl,v 1.7 2024/11/01 11:19:13 sthen Exp $ | 2 | # $OpenBSD: format-pem.pl,v 1.8 2025/06/16 10:24:55 sthen Exp $ |
| 3 | # | 3 | # |
| 4 | # Copyright (c) 2016 Stuart Henderson <sthen@openbsd.org> | 4 | # Copyright (c) 2016 Stuart Henderson <sthen@openbsd.org> |
| 5 | # | 5 | # |
| @@ -99,6 +99,7 @@ while(<>) { | |||
| 99 | 99 | ||
| 100 | my $verify = qx/openssl verify -CAfile $t $t 2>&1/; | 100 | my $verify = qx/openssl verify -CAfile $t $t 2>&1/; |
| 101 | if (not $verify =~ /^$t: OK$/) { | 101 | if (not $verify =~ /^$t: OK$/) { |
| 102 | $verify =~ s,$t: ,,; | ||
| 102 | print STDERR "ERROR: '$subj' cannot be verified with libressl\n---\n$verify---\n"; | 103 | print STDERR "ERROR: '$subj' cannot be verified with libressl\n---\n$verify---\n"; |
| 103 | $ca{$o}{$subj}{'valid'} = 0; | 104 | $ca{$o}{$subj}{'valid'} = 0; |
| 104 | } | 105 | } |
