summaryrefslogtreecommitdiff
path: root/regress/usr.bin
diff options
context:
space:
mode:
Diffstat (limited to 'regress/usr.bin')
-rw-r--r--regress/usr.bin/ssh/unittests/sshkey/test_sshkey.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/regress/usr.bin/ssh/unittests/sshkey/test_sshkey.c b/regress/usr.bin/ssh/unittests/sshkey/test_sshkey.c
index 20042b4ed9b..7824a2a3e55 100644
--- a/regress/usr.bin/ssh/unittests/sshkey/test_sshkey.c
+++ b/regress/usr.bin/ssh/unittests/sshkey/test_sshkey.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: test_sshkey.c,v 1.14 2018/07/13 02:13:19 djm Exp $ */
+/* $OpenBSD: test_sshkey.c,v 1.15 2018/09/12 01:22:43 djm Exp $ */
/*
* Regress test for sshkey.h key management API
*
@@ -303,7 +303,7 @@ sshkey_tests(void)
TEST_DONE();
TEST_START("demote KEY_RSA");
- ASSERT_INT_EQ(sshkey_demote(kr, &k1), 0);
+ ASSERT_INT_EQ(sshkey_from_private(kr, &k1), 0);
ASSERT_PTR_NE(k1, NULL);
ASSERT_PTR_NE(kr, k1);
ASSERT_INT_EQ(k1->type, KEY_RSA);
@@ -319,7 +319,7 @@ sshkey_tests(void)
TEST_DONE();
TEST_START("demote KEY_DSA");
- ASSERT_INT_EQ(sshkey_demote(kd, &k1), 0);
+ ASSERT_INT_EQ(sshkey_from_private(kd, &k1), 0);
ASSERT_PTR_NE(k1, NULL);
ASSERT_PTR_NE(kd, k1);
ASSERT_INT_EQ(k1->type, KEY_DSA);
@@ -334,7 +334,7 @@ sshkey_tests(void)
TEST_DONE();
TEST_START("demote KEY_ECDSA");
- ASSERT_INT_EQ(sshkey_demote(ke, &k1), 0);
+ ASSERT_INT_EQ(sshkey_from_private(ke, &k1), 0);
ASSERT_PTR_NE(k1, NULL);
ASSERT_PTR_NE(ke, k1);
ASSERT_INT_EQ(k1->type, KEY_ECDSA);
@@ -350,7 +350,7 @@ sshkey_tests(void)
TEST_DONE();
TEST_START("demote KEY_ED25519");
- ASSERT_INT_EQ(sshkey_demote(kf, &k1), 0);
+ ASSERT_INT_EQ(sshkey_from_private(kf, &k1), 0);
ASSERT_PTR_NE(k1, NULL);
ASSERT_PTR_NE(kf, k1);
ASSERT_INT_EQ(k1->type, KEY_ED25519);