nse_ssl_cert.cc:495:36: error: use of undeclared identifier 'EC_GROUP_method_of' 495 | nid = EC_METHOD_get_field_type(EC_GROUP_method_of(group)); | ^ 1 error generated.
EC_GROUP_method_of() doesn't exist in LibreSSL. Try security/nmap-devel. The only other option is to submit a patch to OpenBSD to implement EC_GROUP_method_of() in LibreSSL. It's not a port maintainers place to implement functions missing in upstream software.
Looking at the OpenBSD source code, they removed the EC_GROUP_method_of() function from their tree. As LibreSSL is an export of OpenBSD, it too does not support EC_GROUP_method_of(). Someone will need to write this for FreeBSD. Patches are always welcome.
nmap-devel does not support LibreSSL either.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=84293fd91f9be4caed31d14455bdfebb17a0e8a6 commit 84293fd91f9be4caed31d14455bdfebb17a0e8a6 Author: Cy Schubert <cy@FreeBSD.org> AuthorDate: 2025-05-05 14:58:20 +0000 Commit: Cy Schubert <cy@FreeBSD.org> CommitDate: 2025-05-05 15:00:55 +0000 security/nmap*: LibreSSL is not supported Upstream calls EC_GROUP_method_of(). OpenBSD has removed EC_GROUP_method_of() from their tree, meaning LibreSSL doesn't have it either. security/nmap* will not build with LibreSSL. PR: 286598 security/nmap-devel/Makefile | 4 ++++ security/nmap/Makefile | 4 ++++ 2 files changed, 8 insertions(+)
Well, that took unexpected turn, but thanks for clearing that up and supporting nmap!