[Bug 207745] contrib/wpa Version checks failing with LibreSSL
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sun Mar 6 13:57:15 UTC 2016
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: freebsd-bugs at FreeBSD.org
Reporter: brnrd at freebsd.org
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.
More information about the freebsd-bugs
mailing list