Prefer OpenSSL versions of MD4 / MD5 / SHA1
authorAlan T. DeKok <aland@freeradius.org>
Tue, 2 Apr 2013 14:54:55 +0000 (10:54 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 2 Apr 2013 15:32:27 +0000 (11:32 -0400)
Which makes libfreeradius-radius smaller

Make.inc.in

index aed747e..1ed8d0b 100644 (file)
@@ -72,6 +72,14 @@ OPENSSL_LIBS = @OPENSSL_LIBS@
 OPENSSL_INCLUDE = @OPENSSL_INCLUDE@
 CFLAGS         += $(OPENSSL_INCLUDE)
 
+#
+#  If the system has OpenSSL, use it's version of MD4/MD5/SHA1, instead of
+#  using ours.
+#
+ifneq "$(OPENSSL_LIBS)" ""
+CFLAGS         +=  -DWITH_OPENSSL_MD4 -DWITH_OPENSSL_MD5 -DWITH_OPENSSL_SHA1
+endif
+
 LIBREADLINE    = @LIBREADLINE@
 
 #