$OpenBSD: patch-lib_dns_opensslgost_link_c,v 1.2 2018/07/12 10:12:30 sthen Exp $

Index: lib/dns/opensslgost_link.c
--- lib/dns/opensslgost_link.c.orig
+++ lib/dns/opensslgost_link.c
@@ -31,7 +31,8 @@
 #include <openssl/rsa.h>
 #include <openssl/engine.h>
 
-#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
+#if OPENSSL_VERSION_NUMBER < 0x10100000L || \
+    (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x2070000fL)
 #define EVP_MD_CTX_new() &(ctx->_ctx), EVP_MD_CTX_init(&(ctx->_ctx))
 #define EVP_MD_CTX_free(ptr) EVP_MD_CTX_cleanup(ptr)
 #endif
