Fix no-blake2
authorMatt Caswell <matt@openssl.org>
Tue, 12 Nov 2019 16:02:24 +0000 (16:02 +0000)
committerMatt Caswell <matt@openssl.org>
Thu, 14 Nov 2019 10:04:37 +0000 (10:04 +0000)
We modify the build.info file to exclude the legacy_blake2.c file in
the event that blake2 support has been disabled.

Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/10425)

crypto/evp/build.info

index f16d08e0cb2bd70122a455c0a4607be662b14cdd..681201d5214962ac45b1ede57a2e35f25b7cb93c 100644 (file)
@@ -17,7 +17,7 @@ SOURCE[../../libcrypto]=$COMMON\
         e_aes_cbc_hmac_sha1.c e_aes_cbc_hmac_sha256.c e_rc4_hmac_md5.c \
         e_chacha20_poly1305.c \
         pkey_mac.c exchange.c \
-        legacy_sha.c legacy_md5_sha1.c legacy_blake2.c
+        legacy_sha.c legacy_md5_sha1.c
 
 IF[{- !$disabled{md2} -}]
   SOURCE[../../libcrypto]=legacy_md2.c
@@ -31,6 +31,10 @@ ENDIF
 IF[{- !$disabled{mdc2} -}]
   SOURCE[../../libcrypto]=legacy_mdc2.c
 ENDIF
+IF[{- !$disabled{blake2} -}]
+  SOURCE[../../libcrypto]=legacy_blake2.c
+ENDIF
+
 
 SOURCE[../../providers/libfips.a]=$COMMON