mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-10 10:26:47 +09:00
pki: Add mbedTLS ECDSA key comparison support
Signed-off-by: Juraj Vijtiuk <juraj.vijtiuk@sartura.hr> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
committed by
Andreas Schneider
parent
81847bf513
commit
d11869bdb6
@@ -227,11 +227,8 @@ static void torture_pki_ecdsa_duplicate_key(void **state)
|
||||
|
||||
assert_string_equal(b64_key, b64_key_gen);
|
||||
|
||||
#ifndef HAVE_LIBMBEDCRYPTO
|
||||
/* libmbedcrypto can't compare ecdsa keys */
|
||||
rc = ssh_key_cmp(privkey, privkey_dup, SSH_KEY_CMP_PRIVATE);
|
||||
assert_true(rc == 0);
|
||||
#endif
|
||||
|
||||
ssh_key_free(pubkey);
|
||||
ssh_key_free(privkey);
|
||||
|
||||
Reference in New Issue
Block a user