Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 06 Mar 2016 13:57:15 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 207745] contrib/wpa Version checks failing with LibreSSL
Message-ID:  <bug-207745-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D207745

            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@FreeBSD.org
          Reporter: brnrd@freebsd.org

Created attachment 167764
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D167764&action=
=3Dedit
git diff for contrib/wpa

LibreSSL defines the OpenSSL version as 0x2000000L but was forked from Open=
SSL
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_NUM=
BER
checks.

Replacing instances of

> #if OPENSSL_VERSION_NUMBER >=3D 0x10002000L
> #if OPENSSL_VERSION_NUMBER < 0x10010000L

with

> #if OPENSSL_VERSION_NUMBER >=3D 0x10002000L && !defined(LIBRESSL_VERSION_=
NUMBER)
> #if OPENSSL_VERSION_NUMBER < 0x10010000L || defined(LIBRESSL_VERSION_NUMB=
ER)

fixes these issues.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-207745-8>