]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
libntp/ssl_init.h only needs MD5_LENGTH if we don't have OpenSSL
authorHarlan Stenn <stenn@ntp.org>
Mon, 5 Feb 2018 10:18:59 +0000 (02:18 -0800)
committerHarlan Stenn <stenn@ntp.org>
Mon, 5 Feb 2018 10:18:59 +0000 (02:18 -0800)
bk: 5a782f93dLlKb_gCHfqTdi3Clpf5VA

libntp/ssl_init.c

index fa1f9497816e64dea26b69552ac0942e4dcc03d1..96d9d0838bd75f062a5cc1dd31891cac59303c3c 100644 (file)
@@ -20,7 +20,6 @@
 # include "openssl/opensslv.h"
 # include "libssl_compat.h"
 
-# define MD5_LENGTH    16
 # define CMAC_LENGTH   16
 # define CMAC          "AES128CMAC"
 
@@ -83,6 +82,8 @@ ssl_check_version(void)
        INIT_SSL();
 }
 
+#else  /* !OPENSSL */
+# define MD5_LENGTH    16
 #endif /* OPENSSL */