diff options
author | Anderson Toshiyuki Sasaki <ansasaki@redhat.com> | 2019-05-02 18:13:50 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2019-05-13 16:37:51 +0200 |
commit | 88a8b1f57c6c031959c14a82ec683ef54f682549 (patch) | |
tree | 91792ede9e30aa731cd35e283012dda265128542 /tests/unittests/torture_pki_ecdsa.c | |
parent | 7bc53f3957cc5f50a92cb93019b2235b54b07dc8 (diff) | |
download | libssh-88a8b1f57c6c031959c14a82ec683ef54f682549.tar.gz libssh-88a8b1f57c6c031959c14a82ec683ef54f682549.tar.xz libssh-88a8b1f57c6c031959c14a82ec683ef54f682549.zip |
pki_gcrypt: Added pki_sign_data() and pki_verify_data_signature()
Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
Reviewed-by: Jakub Jelen <jjelen@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'tests/unittests/torture_pki_ecdsa.c')
-rw-r--r-- | tests/unittests/torture_pki_ecdsa.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/unittests/torture_pki_ecdsa.c b/tests/unittests/torture_pki_ecdsa.c index 1e5380fd..261b1ba8 100644 --- a/tests/unittests/torture_pki_ecdsa.c +++ b/tests/unittests/torture_pki_ecdsa.c @@ -610,7 +610,6 @@ static void torture_pki_ecdsa_cert_verify(void **state) ssh_free(session); } -#if defined(HAVE_LIBCRYPTO) || defined(HAVE_LIBMBEDCRYPTO) static int test_sign_verify_data(ssh_key key, enum ssh_digest_e hash_type, const unsigned char *input, @@ -670,7 +669,7 @@ static void torture_pki_sign_data_ecdsa(void **state) /* Cleanup */ SSH_KEY_FREE(key); } -#endif + #ifdef HAVE_LIBCRYPTO static void torture_pki_ecdsa_write_privkey(void **state) { @@ -900,9 +899,7 @@ int torture_run_tests(void) { setup_ecdsa_key_521, teardown), #endif /* HAVE_LIBCRYPTO */ -#if defined(HAVE_LIBCRYPTO) || defined(HAVE_LIBMBEDCRYPTO) cmocka_unit_test(torture_pki_sign_data_ecdsa), -#endif cmocka_unit_test_setup_teardown(torture_pki_ecdsa_name256, setup_ecdsa_key_256, teardown), |