Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit399a9e0

Browse files
committed
Fix thinko in commit7d129ba.
The revised logic in 001_ssltests.pl would fail if openssldoesn't work or if Perl is a 32-bit build, because it hadalready overwritten $serialno with something inappropriateto use in the eventual match. We could go back to theprevious code layout, but it seems best to introduce aseparate variable for the output of openssl.Per failure on buildfarm member mamba, which has a 32-bit Perl.
1 parentaa1fcd0 commit399a9e0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎src/test/ssl/t/001_ssltests.pl‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -754,7 +754,7 @@ sub switch_server_cert
754754

755755
if ($ENV{OPENSSL}ne'')
756756
{
757-
$serialno =`$ENV{OPENSSL} x509 -serial -noout -in ssl/client.crt`;
757+
my$serialstr =`$ENV{OPENSSL} x509 -serial -noout -in ssl/client.crt`;
758758
if ($? == 0)
759759
{
760760
# OpenSSL prints serial numbers in hexadecimal and converting the serial
@@ -765,9 +765,9 @@ sub switch_server_cert
765765
{
766766
no warningsqw(portable);
767767

768-
$serialno =~s/^serial=//;
769-
$serialno =~s/\s+//g;
770-
$serialno =hex($serialno);
768+
$serialstr =~s/^serial=//;
769+
$serialstr =~s/\s+//g;
770+
$serialno =hex($serialstr);
771771
}
772772
}
773773
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp