]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
Don't use OpenSSL's ed25519 if built without EC.
authorDarren Tucker <dtucker@dtucker.net>
Wed, 12 Nov 2025 22:53:17 +0000 (09:53 +1100)
committerDarren Tucker <dtucker@dtucker.net>
Wed, 12 Nov 2025 22:53:17 +0000 (09:53 +1100)
Explicitly check for OPENSSL_NO_EC, since otherwise the test will link
but then fail at runtime.

configure.ac

index 86cf56689b61c3196f317d1735c5a5d5cfe38226..f7e9d4184c9bb5239ed5629e7a664626f153b9e6 100644 (file)
@@ -3357,6 +3357,10 @@ if test "x$openssl" = "xyes" ; then
                [AC_LANG_PROGRAM([[
        #include <string.h>
        #include <openssl/evp.h>
+       #include <openssl/opensslconf.h>
+       #ifdef OPENSSL_NO_EC
+       # error "OpenSSL has no EC support."
+       #endif
                ]], [[
                unsigned char buf[64];
                memset(buf, 0, sizeof(buf));