[Git][NTPsec/ntpsec][master] Fix macencrypt encrypt test to use same OpenSSL MD5 call

Hal Murray (@hal.murray) gitlab at mg.gitlab.com
Sun Oct 29 04:20:13 UTC 2023



Hal Murray pushed to branch master at NTPsec / ntpsec


Commits:
92d84ebd by Jared Hamlin at 2023-10-29T04:17:04+00:00
Fix macencrypt encrypt test to use same OpenSSL MD5 call

- - - - -


1 changed file:

- tests/libntp/macencrypt.c


Changes:

=====================================
tests/libntp/macencrypt.c
=====================================
@@ -47,7 +47,11 @@ TEST(macencrypt, Encrypt) {
 	/* FIXME: Initialization stuff. Needed by other digest tests. */
 	auth.keyid = 123;
 	auth.type = AUTH_DIGEST;
+#if OPENSSL_VERSION_NUMBER >= 0x30000000L
+	auth.digest = EVP_MD_fetch(NULL, "MD5", "fips=no");
+#else
 	auth.digest = EVP_get_digestbyname("MD5");
+#endif
 #if OPENSSL_VERSION_NUMBER > 0x20000000L
 	auth.mac_ctx = NULL;
 #else



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/92d84ebd8ba28112c69b2484938524a300a72586

-- 
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/92d84ebd8ba28112c69b2484938524a300a72586
You're receiving this email because of your account on gitlab.com.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20231029/470953a2/attachment.htm>


More information about the vc mailing list