summaryrefslogtreecommitdiffstats
path: root/contrib/ntp/tests/libntp/ssl_init.c
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2016-04-28 11:34:22 -0300
committerRenato Botelho <renato@netgate.com>2016-04-28 11:34:22 -0300
commitd1ef4e7974b0b2817406da15fd95d9f836aa1912 (patch)
treebe0fc739c69cdd44a57a5c6abe9001c070bf335f /contrib/ntp/tests/libntp/ssl_init.c
parent6f331e8a44f8f914e7cd1813a5e96d20c55891e5 (diff)
parent1d5d3749a4b560c02782ced59660844e31c631a9 (diff)
downloadFreeBSD-src-d1ef4e7974b0b2817406da15fd95d9f836aa1912.zip
FreeBSD-src-d1ef4e7974b0b2817406da15fd95d9f836aa1912.tar.gz
Merge remote-tracking branch 'origin/stable/10' into devel
Diffstat (limited to 'contrib/ntp/tests/libntp/ssl_init.c')
-rw-r--r--contrib/ntp/tests/libntp/ssl_init.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/ntp/tests/libntp/ssl_init.c b/contrib/ntp/tests/libntp/ssl_init.c
index 42fe920..435e5c9 100644
--- a/contrib/ntp/tests/libntp/ssl_init.c
+++ b/contrib/ntp/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 */
OpenPOWER on IntegriCloud