[Git][NTPsec/ntpsec][master] Fix compiling with SSL.

Amar Takhar gitlab at mg.gitlab.com
Wed Nov 25 17:45:09 UTC 2015


Amar Takhar pushed to branch master at NTPsec / ntpsec


Commits:
36092cf3 by Amar Takhar at 2015-11-25T12:44:25Z
Fix compiling with SSL.

TEST_SHA1_DIGEST_LENGTH was meant to go under HAVE_OPENSSL.

- - - - -


1 changed file:

- tests/libntp/ssl_init.c


Changes:

=====================================
tests/libntp/ssl_init.c
=====================================
--- a/tests/libntp/ssl_init.c
+++ b/tests/libntp/ssl_init.c
@@ -19,7 +19,10 @@ TEST_TEAR_DOWN(ssl_init) {}
 #include "ntp.h"
 
 static const size_t TEST_MD5_DIGEST_LENGTH = 16;
-//static const size_t TEST_SHA1_DIGEST_LENGTH = 20;
+
+#ifdef HAVE_OPENSSL
+static const size_t TEST_SHA1_DIGEST_LENGTH = 20;
+#endif
 
 // keytype_from_text()
 TEST(ssl_init, MD5KeyTypeWithoutDigestLength) {



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/36092cf3c7e1dd7f7cb3d8edc3568c993fcf4d51
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20151125/f1eb05db/attachment.html>


More information about the vc mailing list