Created attachment 191734 [details] patch LibreSSL 2.7.0 brought new API's which is incompatible with LibreSSL 2.6. Here's a patch (taken from OpenBSD ports: https://github.com/openbsd/ports/blob/master/net/curl/patches/patch-lib_vtls_openssl_c) which fixes this problem in curl. Builds fine with LibreSSL 2.6.4, LibreSSL 2.7.0 and OpenSSL 1.0.1u from base on 10.4-RELEASE.
A commit references this bug: Author: sunpoet Date: Sat Mar 24 21:12:24 UTC 2018 New revision: 465485 URL: https://svnweb.freebsd.org/changeset/ports/465485 Log: Fix build with LibreSSL 2.7 Obtained from: https://github.com/openbsd/ports/blob/master/net/curl/patches/patch-lib_vtls_openssl_c PR: 226845 Submitted by: Piotr Kubaj <pkubaj@anongoth.pl> MFH: 2018Q1 Changes: head/ftp/curl/files/patch-lib-vtls-openssl.c
Committed. Thanks!
For reference, upstream pull-request https://github.com/curl/curl/pull/2447