Closed voegelas closed 6 years ago
for those with systems on openssl 1.1 (such as Ubuntu 18.04) wanting to force a temporary solution, it worked for me to make the above changes in-place in Stack.pm6
$ zef look OpenSSL
$ vi lib/OpenSSL/Stack.pm6
(replace the last 3 lines with the lines in voegelas's comment)
$ zef install . --force
OpenSSL 1.1 renamed the functions
sk_num
,sk_value
andsk_free
toOPENSSL_sk_num
etc. I've addedis_symbol
to the definitions in lib/OpenSSL/Stack.pm6. But I don't know how to define the functions dynamically depending on the available OpenSSL version.sk_num
can be tested by replacingok .num
in t/10-client-ca-file.t withok OpenSSL::Stack::sk_num($_)
.This bug has also been reported at https://github.com/jnthn/p6-io-socket-async-ssl/issues/34.