diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2011-12-29 11:04:00 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2012-02-04 18:37:04 +0100 |
commit | ecbdc589f4ef7d64226a1c97dea90f32157d4161 (patch) | |
tree | daae42f2cfb41964f3453cd65dce538310f09017 /src | |
parent | fc8a182823b77862852d4ba988d0fc7cd737cc3e (diff) | |
download | libssh-ecbdc589f4ef7d64226a1c97dea90f32157d4161.tar.gz libssh-ecbdc589f4ef7d64226a1c97dea90f32157d4161.tar.xz libssh-ecbdc589f4ef7d64226a1c97dea90f32157d4161.zip |
pki: Fix ecdsa key dup.
Diffstat (limited to 'src')
-rw-r--r-- | src/pki_crypto.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pki_crypto.c b/src/pki_crypto.c index 6c5f104d..10b4150e 100644 --- a/src/pki_crypto.c +++ b/src/pki_crypto.c @@ -348,6 +348,8 @@ ssh_key pki_key_dup(const ssh_key key, int demote) const EC_POINT *p; int ok; + new->ecdsa_nid = key->ecdsa_nid; + new->ecdsa = EC_KEY_new_by_curve_name(key->ecdsa_nid); if (new->ecdsa == NULL) { goto fail; |