From: Damien Miller Date: Fri, 1 Oct 2021 12:40:06 +0000 (+1000) Subject: make sk-dummy.so work without libcrypto installed X-Git-Tag: V_8_9_P1~244 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=16a25414f303cd6790eb967aeb962040e32c9c7a;p=thirdparty%2Fopenssh-portable.git make sk-dummy.so work without libcrypto installed --- diff --git a/regress/misc/sk-dummy/sk-dummy.c b/regress/misc/sk-dummy/sk-dummy.c index 4003362d7..c107aebe7 100644 --- a/regress/misc/sk-dummy/sk-dummy.c +++ b/regress/misc/sk-dummy/sk-dummy.c @@ -28,6 +28,11 @@ #include "crypto_api.h" #include "sk-api.h" +#if defined(WITH_OPENSSL) && !defined(WITH_OPENSSL) +# undef WITH_OPENSSL +#endif + +#ifdef WITH_OPENSSL #include #include #include @@ -36,8 +41,6 @@ #include #include -/* #define SK_DEBUG 1 */ - /* Compatibility with OpenSSH 1.0.x */ #if (OPENSSL_VERSION_NUMBER < 0x10100000L) #define ECDSA_SIG_get0(sig, pr, ps) \ @@ -46,6 +49,9 @@ (*ps) = sig->s; \ } while (0) #endif +#endif /* WITH_OPENSSL */ + +/* #define SK_DEBUG 1 */ #if SSH_SK_VERSION_MAJOR != 0x00070000 # error SK API has changed, sk-dummy.c needs an update