commit 8d92dd2af4c436b44cda972cca409157f24e2928
parent 43a726c02decec4c6ab00a686198759543942dab
Author: Joris Vink <joris@coders.se>
Date: Sun, 26 Jun 2016 11:36:33 +0200
Allow building against libressl again.
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/domain.c b/src/domain.c
@@ -59,7 +59,7 @@ static int keymgr_rsa_privenc(int, const unsigned char *,
static ECDSA_SIG *keymgr_ecdsa_sign(const unsigned char *, int,
const BIGNUM *, const BIGNUM *, EC_KEY *);
-#if !defined(OpenBSD)
+#if !defined(LIBRESSL_VERSION_TEXT)
/*
* Run own ecdsa_method data structure as OpenSSL has this in ecs_locl.h
* and does not export this on systems.
@@ -313,7 +313,7 @@ kore_domain_sslstart(struct kore_domain *dom)
* Note that OpenBSD has since heartbleed removed freelists
* from its OpenSSL in base so we don't need to care about it.
*/
-#if !defined(OpenBSD) || (OpenBSD < 201405)
+#if !defined(LIBRESSL_VERSION_TEXT)
dom->ssl_ctx->freelist_max_len = 0;
#endif
SSL_CTX_set_mode(dom->ssl_ctx, SSL_MODE_ENABLE_PARTIAL_WRITE);