diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2014-03-27 10:00:30 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2014-03-27 10:01:12 +0100 |
commit | fbf73ede1eb4226ebe54698fefffb38ecd8f090b (patch) | |
tree | 43b958d97ec9ba15ca4c246725727f62bca63109 /tests/unittests | |
parent | 577840d7f72a3c69c09f2cb477b2c46eb2831f81 (diff) | |
download | libssh-fbf73ede1eb4226ebe54698fefffb38ecd8f090b.tar.gz libssh-fbf73ede1eb4226ebe54698fefffb38ecd8f090b.tar.xz libssh-fbf73ede1eb4226ebe54698fefffb38ecd8f090b.zip |
tests: Check the the ecdsa_nid is the same.
Diffstat (limited to 'tests/unittests')
-rw-r--r-- | tests/unittests/torture_pki.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/unittests/torture_pki.c b/tests/unittests/torture_pki.c index 6fede44a..9cc3959b 100644 --- a/tests/unittests/torture_pki.c +++ b/tests/unittests/torture_pki.c @@ -789,9 +789,11 @@ static void torture_pki_ecdsa_duplicate_then_demote(void **state) privkey_dup = ssh_key_dup(privkey); assert_true(privkey_dup != NULL); + assert_int_equal(privkey->ecdsa_nid, privkey_dup->ecdsa_nid); rc = ssh_pki_export_privkey_to_pubkey(privkey_dup, &pubkey); assert_true(rc == 0); + assert_int_equal(pubkey->ecdsa_nid, privkey->ecdsa_nid); ssh_key_free(pubkey); ssh_key_free(privkey); |