From: djm Date: Wed, 12 Sep 2018 01:22:43 +0000 (+0000) Subject: s/sshkey_demote/sshkey_from_private/g X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=925162a5365368884456a005096833dd765cc6d2;p=openbsd s/sshkey_demote/sshkey_from_private/g --- 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);