summaryrefslogtreecommitdiff
path: root/tests/libntp/ssl_init.c
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2016-04-27 05:37:54 +0000
committerXin LI <delphij@FreeBSD.org>2016-04-27 05:37:54 +0000
commitc1950318d1af96666bb3a80bf73cb4790f6dbcea (patch)
tree5ecca25ff6220a3f621f68d501903e6b8f1206ab /tests/libntp/ssl_init.c
parentcbb26d1b6673ba1c6efd6e36a06fb6a56263b5fc (diff)
Notes
Diffstat (limited to 'tests/libntp/ssl_init.c')
-rw-r--r--tests/libntp/ssl_init.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/libntp/ssl_init.c b/tests/libntp/ssl_init.c
index 42fe920b6d26..435e5c912fd6 100644
--- a/tests/libntp/ssl_init.c
+++ b/tests/libntp/ssl_init.c
@@ -43,7 +43,7 @@ test_SHA1KeyTypeWithDigestLength(void) {
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);
/* OPENSSL */
#else
@@ -62,7 +62,7 @@ test_MD5KeyName(void) {
void
test_SHA1KeyName(void) {
#ifdef OPENSSL
- TEST_ASSERT_EQUAL_STRING("SHA", keytype_name(NID_sha));
+ TEST_ASSERT_EQUAL_STRING("SHA1", keytype_name(NID_sha1));
#else
TEST_IGNORE_MESSAGE("Skipping because OPENSSL isn't defined");
#endif /* OPENSSL */