security/trousers: Fix build with LibreSSl 2.7

- LibreSSL 2.7 adds OpenSSL 1.1 API

PR:		227169
Approved by:	maintainer time-out
This commit is contained in:
Bernard Spil 2018-04-21 20:38:38 +00:00
parent a5b8408c6c
commit adaeb55b5e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=467906

View file

@ -5,7 +5,7 @@
#endif
-#if OPENSSL_VERSION_NUMBER < 0x10100001L
+#if OPENSSL_VERSION_NUMBER < 0x10100001L || defined(LIBRESSL_VERSION_NUMBER)
+#if OPENSSL_VERSION_NUMBER < 0x10100001L || (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x20700000L)
static int
RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d)
{