asio icon indicating copy to clipboard operation
asio copied to clipboard

TLS 1.3 on WolfSSL would not work by default. Fix

Open debugmenot opened this issue 1 year ago • 2 comments
trafficstars

Hi. context.ipp should be fixed to allow case context::tlsv13

when defined(ASIO_USE_WOLFSSL)

by default wolfssl with openssl compatibility layer defines OPENSSL_VERSION_NUMBER < 0x10101000L for compatibility with other packages such as Apache HTTPD

debugmenot avatar Jul 30 '24 04:07 debugmenot

ref: https://github.com/wolfSSL/wolfssl/blob/master/wolfssl/openssl/opensslv.h @dgarske

debugmenot avatar Jul 30 '24 04:07 debugmenot

Hi @debugmenot , I've opened a wolfSSL bug report here https://github.com/wolfSSL/wolfssl/issues/7810. I believe we made a recent openssl version compatibility change.

dgarske avatar Jul 30 '24 16:07 dgarske

Hi! I've run into this issue recently. Is there a workaround, for example, setting OPENSSL_VERSION_NUMBER to some other value that is compatible with ASIO?

sokolas avatar May 16 '25 15:05 sokolas

@kareem-wolfssl will you please review and assist?

dgarske avatar May 16 '25 15:05 dgarske

Hi @sokolas and @debugmenot ,

It looks like this issue was fixed upstream here: https://github.com/chriskohlhoff/asio/commit/0a265b1cd06fa73c60cc7bb68748ca9cda4fd8de

Can you confirm if this commit fixes the issue for you?

I am also looking into setting a higher OPENSSL_VERSION_NUMBER for asio.

kareem-wolfssl avatar May 21 '25 18:05 kareem-wolfssl

Hi! Thank you for your answer! I'm sorry for the confusion, my error was actually caused by sslv2, which was not turned off by default.

sokolas avatar May 21 '25 19:05 sokolas