https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=207745
Bug ID: 207745
Summary: contrib/wpa Version checks failing with LibreSSL
Product: Base System
Version: 11.0-CURRENT
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: bin
Assignee: [email protected]
Reporter: [email protected]
Created attachment 167764
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=167764&action=edit
git diff for contrib/wpa
LibreSSL defines the OpenSSL version as 0x2000000L but was forked from OpenSSL
1.0.1g with version 0x1000107fL. This causes many OPENSSL_VERSION_NUMBER
comparisons to result in probrems if it tests for 1.0.2 (0x10002000L) or 1.1.0
(0x10010000L). The wpa_supplicant code is littered with OPENSSL_VERSION_NUMBER
checks.
Replacing instances of
> #if OPENSSL_VERSION_NUMBER >= 0x10002000L
> #if OPENSSL_VERSION_NUMBER < 0x10010000L
with
> #if OPENSSL_VERSION_NUMBER >= 0x10002000L && !defined(LIBRESSL_VERSION_NUMBER)
> #if OPENSSL_VERSION_NUMBER < 0x10010000L || defined(LIBRESSL_VERSION_NUMBER)
fixes these issues.
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"