mirror of
git://anongit.mindrot.org/openssh.git
synced 2024-12-11 20:54:49 +00:00
Skip SK unit tests when built without security-key
This commit is contained in:
parent
482f73be10
commit
40bd3709dd
@ -422,6 +422,7 @@ sshkey_file_tests(void)
|
|||||||
|
|
||||||
sshkey_free(k1);
|
sshkey_free(k1);
|
||||||
|
|
||||||
|
#ifdef ENABLE_SK
|
||||||
#if defined(WITH_OPENSSL) && defined(OPENSSL_HAS_ECC)
|
#if defined(WITH_OPENSSL) && defined(OPENSSL_HAS_ECC)
|
||||||
TEST_START("parse ECDSA-SK from private");
|
TEST_START("parse ECDSA-SK from private");
|
||||||
buf = load_file("ecdsa_sk1");
|
buf = load_file("ecdsa_sk1");
|
||||||
@ -552,6 +553,7 @@ sshkey_file_tests(void)
|
|||||||
TEST_DONE();
|
TEST_DONE();
|
||||||
|
|
||||||
sshkey_free(k1);
|
sshkey_free(k1);
|
||||||
|
#endif /* ENABLE_SK */
|
||||||
|
|
||||||
sshbuf_free(pw);
|
sshbuf_free(pw);
|
||||||
|
|
||||||
|
@ -117,6 +117,7 @@ tests(void)
|
|||||||
check_sig("ed25519.pub", "ed25519.sig", msg, namespace);
|
check_sig("ed25519.pub", "ed25519.sig", msg, namespace);
|
||||||
TEST_DONE();
|
TEST_DONE();
|
||||||
|
|
||||||
|
#ifdef ENABLE_SK
|
||||||
#if defined(WITH_OPENSSL) && defined(OPENSSL_HAS_ECC)
|
#if defined(WITH_OPENSSL) && defined(OPENSSL_HAS_ECC)
|
||||||
TEST_START("check ECDSA-SK signature");
|
TEST_START("check ECDSA-SK signature");
|
||||||
check_sig("ecdsa_sk.pub", "ecdsa_sk.sig", msg, namespace);
|
check_sig("ecdsa_sk.pub", "ecdsa_sk.sig", msg, namespace);
|
||||||
@ -133,6 +134,7 @@ tests(void)
|
|||||||
msg, namespace);
|
msg, namespace);
|
||||||
TEST_DONE();
|
TEST_DONE();
|
||||||
#endif
|
#endif
|
||||||
|
#endif /* ENABLE_SK */
|
||||||
|
|
||||||
sshbuf_free(msg);
|
sshbuf_free(msg);
|
||||||
free(namespace);
|
free(namespace);
|
||||||
|
Loading…
Reference in New Issue
Block a user