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/>

index | next in thread | raw e-mail

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

help

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