Opened 5 years ago

Closed 5 years ago

#18006 closed defect (fixed)

Buildfix for recent OpenBSD/LibreSSL

Reported by: _x3j11 Owned by:
Priority: Medium Milestone: Tor: 0.2.8.x-final
Component: Core Tor/Tor Version:
Severity: Normal Keywords:
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:


Tor doesn't compile on recent OpenBSD versions due to OpenSSL version checking. LibreSSL sets it's OPENSSL_VERSION_NUMBER as 0x2000000L, making the OPENSSL_* version macros think it's modern and therefore doesn't need to apply the compat_openssl defines.

The following patch dumbly just checks to see if LIBRESSL_VERSION_NUMBER is define'd, and if so, applies the defines anyway. There's probably a better way to do this, but as it's unknown if/when LibreSSL will institute the compat_openssl defines itself, it should suffice to get Tor actually building for now.

Child Tickets

Attachments (1)

0001-Compatibility-defines-should-be-used-for-LibreSSL.patch (1.2 KB) - added by _x3j11 5 years ago.

Download all attachments as: .zip

Change History (5)

comment:1 Changed 5 years ago by _x3j11

Status: newneeds_review

comment:2 Changed 5 years ago by _x3j11

Component: - Select a componentTor

comment:3 Changed 5 years ago by nickm

Milestone: Tor: 0.2.8.x-final

comment:4 Changed 5 years ago by nickm

Resolution: fixed
Status: needs_reviewclosed

Applied, thanks!

Note: See TracTickets for help on using tickets.