]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
appveyor: Enable kdf plugin on old images with OpenSSL 1.0.2/1.1.0
authorTobias Brunner <tobias@strongswan.org>
Thu, 17 Feb 2022 09:15:22 +0000 (10:15 +0100)
committerTobias Brunner <tobias@strongswan.org>
Thu, 14 Apr 2022 17:02:56 +0000 (19:02 +0200)
HKDF with expand-only mode is only available since OpenSSL 1.1.1.

scripts/test.sh

index 15ca7e0e60e41c25060ea7fd2bee8e6c00ca72c3..c397e00ecaceb40f13bdf5ff17950cbba4e1b39f 100755 (executable)
@@ -200,10 +200,17 @@ win*)
        if test "$APPVEYOR" != "True"; then
                TARGET=
        else
+               case "$IMG" in
+               2015|2017)
+                       # old OpenSSL versions don't provide HKDF
+                       CONFIG="$CONFIG --enable-kdf"
+                       ;;
+               esac
                CONFIG="$CONFIG --enable-openssl"
                CFLAGS="$CFLAGS -I$OPENSSL_DIR/include"
                LDFLAGS="-L$OPENSSL_DIR"
                export LDFLAGS
+
        fi
        CFLAGS="$CFLAGS -mno-ms-bitfields"
        DEPS="gcc-mingw-w64-base"