Package: swi-prolog
Version: 8.2.3+dfsg-1
Severity: serious
Forwarded: https://github.com/SWI-Prolog/packages-ssl/issues/159
Tag: patch
Hi,
Swi-prolog is failing to build using OpenSSL 1.1.1i. I've attached
a patch that fixes it.
Kurt
--- packages/ssl/test_ssl.pl.orig 2020-12-18 11:04:37.481046178 +0100
+++ packages/ssl/test_ssl.pl 2020-12-18 11:06:09.479169064 +0100
@@ -629,11 +629,14 @@
test('Certificate is not issued by trusted CA'):-
do_verification_test(14, try_ssl_client('www.example.com', test_verify_hook), VerificationResults, Status),
( VerificationResults:Status == [unknown_issuer]:true ->
- % OpenSSL 1.0.2 and above
+ % OpenSSL 1.0.2 - 1.1.1h
true
; VerificationResults:Status == [unknown_issuer, not_trusted]:true ->
% OpenSSL 1.0.1 and below
true
+ ; VerificationResults:Status == [unknown_issuer, verified]:true ->
+ % OpenSSL 1.1.1i and above
+ true
).
test('Certificate is issued by trusted CA but has been altered so signature is wrong', VerificationResults:Status == [bad_signature, verified]:true):-