[Git][NTPsec/ntpsec][master] tests: change the SHA1 tests to test SHA1 instead of SHA

Gary E. Miller gitlab at mg.gitlab.com
Sat Jan 28 02:49:51 UTC 2017


Gary E. Miller pushed to branch master at NTPsec / ntpsec


Commits:
05bc0116 by Gary E. Miller at 2017-01-27T18:47:00-08:00
tests: change the SHA1 tests to test SHA1 instead of SHA

- - - - -


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
@@ -43,7 +43,7 @@ TEST(ssl_init, SHA1KeyTypeWithDigestLength) {
 	size_t digestLength;
 	size_t expected = TEST_SHA1_DIGEST_LENGTH;
 
-	TEST_ASSERT_EQUAL(NID_sha, keytype_from_text("SHA", &digestLength));
+	TEST_ASSERT_EQUAL(NID_sha1, keytype_from_text("SHA1", &digestLength));
 	TEST_ASSERT_EQUAL(expected, digestLength);
 }
 #endif	/* HAVE_OPENSSL */
@@ -55,7 +55,7 @@ TEST(ssl_init, MD5KeyName) {
 
 #ifdef HAVE_OPENSSL
 TEST(ssl_init, SHA1KeyName) {
-	TEST_ASSERT_EQUAL_STRING("SHA", keytype_name(NID_sha));
+	TEST_ASSERT_EQUAL_STRING("SHA1", keytype_name(NID_sha1));
 }
 #endif	/* HAVE_OPENSSL */
 



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/05bc011677048dc786503264797a475e5d907cf7
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20170128/a63a2b1b/attachment.html>


More information about the vc mailing list