[Bug 271728] libunbound uses deprecated SSL_CTX_set_ecdh_auto

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 30 May 2023 18:36:22 UTC

            Bug ID: 271728
           Summary: libunbound uses deprecated SSL_CTX_set_ecdh_auto
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: misc
          Assignee: bugs@FreeBSD.org
          Reporter: emaste@freebsd.org

When attempting to build libunbound with
as part of OpenSSL 3.0 update testing produced this error:

/tmp/cirrus-ci-build/contrib/unbound/util/net_help.c:1035:6: error: call to
undeclared function 'SSL_CTX_set_ecdh_auto'; ISO C99 and later do not support
implicit function declarations [-Werror,-Wimplicit-function-declaration]
        if(!SSL_CTX_set_ecdh_auto(ctx,1)) {
/tmp/cirrus-ci-build/contrib/unbound/util/net_help.c:1035:6: note: did you mean
note: 'SSL_CTX_set_ex_data' declared here
__owur int SSL_CTX_set_ex_data(SSL_CTX *ssl, int idx, void *data);
1 error generated.
make[3]: stopped in /tmp/cirrus-ci-build

There is a config.h HAVE_DECL_SSL_CTX_SET_ECDH_AUTO #define that gets set
(because the function does in fact exist), but as we maintain config.h manually
I think we can just turn it off.

You are receiving this mail because:
You are the assignee for the bug.