summaryrefslogtreecommitdiff
path: root/regress/unittests/sshkey/test_sshkey.c
diff options
context:
space:
mode:
authordjm@openbsd.org <djm@openbsd.org>2018-09-12 01:22:43 +0000
committerDamien Miller <djm@mindrot.org>2018-09-12 16:51:14 +1000
commit2de78bc7da70e1338b32feeefcc6045cf49efcd4 (patch)
treee416a74c924e69ec176f984c090c7f6c7a001878 /regress/unittests/sshkey/test_sshkey.c
parent41c115a5ea1cb79a6a3182773c58a23f760e8076 (diff)
upstream: s/sshkey_demote/sshkey_from_private/g
OpenBSD-Regress-ID: 782bde7407d94a87aa8d1db7c23750e09d4443c4
Diffstat (limited to 'regress/unittests/sshkey/test_sshkey.c')
-rw-r--r--regress/unittests/sshkey/test_sshkey.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/regress/unittests/sshkey/test_sshkey.c b/regress/unittests/sshkey/test_sshkey.c
index 72367bde7..7e03b7e52 100644
--- a/regress/unittests/sshkey/test_sshkey.c
+++ b/regress/unittests/sshkey/test_sshkey.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: test_sshkey.c,v 1.14 2018/07/13 02:13:19 djm Exp $ */ 1/* $OpenBSD: test_sshkey.c,v 1.15 2018/09/12 01:22:43 djm Exp $ */
2/* 2/*
3 * Regress test for sshkey.h key management API 3 * Regress test for sshkey.h key management API
4 * 4 *
@@ -318,7 +318,7 @@ sshkey_tests(void)
318 TEST_DONE(); 318 TEST_DONE();
319 319
320 TEST_START("demote KEY_RSA"); 320 TEST_START("demote KEY_RSA");
321 ASSERT_INT_EQ(sshkey_demote(kr, &k1), 0); 321 ASSERT_INT_EQ(sshkey_from_private(kr, &k1), 0);
322 ASSERT_PTR_NE(k1, NULL); 322 ASSERT_PTR_NE(k1, NULL);
323 ASSERT_PTR_NE(kr, k1); 323 ASSERT_PTR_NE(kr, k1);
324 ASSERT_INT_EQ(k1->type, KEY_RSA); 324 ASSERT_INT_EQ(k1->type, KEY_RSA);
@@ -334,7 +334,7 @@ sshkey_tests(void)
334 TEST_DONE(); 334 TEST_DONE();
335 335
336 TEST_START("demote KEY_DSA"); 336 TEST_START("demote KEY_DSA");
337 ASSERT_INT_EQ(sshkey_demote(kd, &k1), 0); 337 ASSERT_INT_EQ(sshkey_from_private(kd, &k1), 0);
338 ASSERT_PTR_NE(k1, NULL); 338 ASSERT_PTR_NE(k1, NULL);
339 ASSERT_PTR_NE(kd, k1); 339 ASSERT_PTR_NE(kd, k1);
340 ASSERT_INT_EQ(k1->type, KEY_DSA); 340 ASSERT_INT_EQ(k1->type, KEY_DSA);
@@ -350,7 +350,7 @@ sshkey_tests(void)
350 350
351#ifdef OPENSSL_HAS_ECC 351#ifdef OPENSSL_HAS_ECC
352 TEST_START("demote KEY_ECDSA"); 352 TEST_START("demote KEY_ECDSA");
353 ASSERT_INT_EQ(sshkey_demote(ke, &k1), 0); 353 ASSERT_INT_EQ(sshkey_from_private(ke, &k1), 0);
354 ASSERT_PTR_NE(k1, NULL); 354 ASSERT_PTR_NE(k1, NULL);
355 ASSERT_PTR_NE(ke, k1); 355 ASSERT_PTR_NE(ke, k1);
356 ASSERT_INT_EQ(k1->type, KEY_ECDSA); 356 ASSERT_INT_EQ(k1->type, KEY_ECDSA);
@@ -367,7 +367,7 @@ sshkey_tests(void)
367#endif 367#endif
368 368
369 TEST_START("demote KEY_ED25519"); 369 TEST_START("demote KEY_ED25519");
370 ASSERT_INT_EQ(sshkey_demote(kf, &k1), 0); 370 ASSERT_INT_EQ(sshkey_from_private(kf, &k1), 0);
371 ASSERT_PTR_NE(k1, NULL); 371 ASSERT_PTR_NE(k1, NULL);
372 ASSERT_PTR_NE(kf, k1); 372 ASSERT_PTR_NE(kf, k1);
373 ASSERT_INT_EQ(k1->type, KEY_ED25519); 373 ASSERT_INT_EQ(k1->type, KEY_ED25519);