From 1508918e80651ee730ca6fb899e35c1ef92bd6f9 Mon Sep 17 00:00:00 2001 From: sthen <> Date: Mon, 16 Jun 2025 10:24:55 +0000 Subject: strip the temporary filename when displaying a verification error; avoids unnecessary diff in output between runs --- src/lib/libcrypto/format-pem.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/lib/libcrypto') 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 @@ #!/usr/bin/perl -# $OpenBSD: format-pem.pl,v 1.7 2024/11/01 11:19:13 sthen Exp $ +# $OpenBSD: format-pem.pl,v 1.8 2025/06/16 10:24:55 sthen Exp $ # # Copyright (c) 2016 Stuart Henderson # @@ -99,6 +99,7 @@ while(<>) { my $verify = qx/openssl verify -CAfile $t $t 2>&1/; if (not $verify =~ /^$t: OK$/) { + $verify =~ s,$t: ,,; print STDERR "ERROR: '$subj' cannot be verified with libressl\n---\n$verify---\n"; $ca{$o}{$subj}{'valid'} = 0; } -- cgit v1.2.3-55-g6feb