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:
Juraj Vijtiuk
2018-02-22 15:56:05 +01:00
committed by Andreas Schneider
parent 81847bf513
commit d11869bdb6
3 changed files with 28 additions and 24 deletions

View File

@@ -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);