From f7278ca6966012ef5c002e06de169e0722bb43c1 Mon Sep 17 00:00:00 2001 From: Willem Toorop Date: Thu, 8 Feb 2018 12:38:50 +0100 Subject: [PATCH] Make getdns_server_mon work with libressl --- src/tools/getdns_server_mon.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tools/getdns_server_mon.c b/src/tools/getdns_server_mon.c index f592ce81..3a3fd33a 100644 --- a/src/tools/getdns_server_mon.c +++ b/src/tools/getdns_server_mon.c @@ -180,7 +180,7 @@ static const char *rcode_text(int rcode) return getdns_intval_text(rcode, "rcode", "GETDNS_RCODE_"); } -#if OPENSSL_VERSION_NUMBER < 0x10002000 +#if OPENSSL_VERSION_NUMBER < 0x10002000 || defined(LIBRESSL_VERSION_NUMBER) /* * Convert date to Julian day. * See https://en.wikipedia.org/wiki/Julian_day @@ -221,7 +221,7 @@ static bool extract_cert_expiry(const unsigned char *data, size_t len, time_t *t *t = time(NULL); -#if OPENSSL_VERSION_NUMBER < 0x10002000 +#if OPENSSL_VERSION_NUMBER < 0x10002000 || defined(LIBRESSL_VERSION_NUMBER) /* * OpenSSL before 1.0.2 does not support ASN1_TIME_diff(). * So work around by using ASN1_TIME_print() to print to a buffer