diff options
author | Matt Johnston <matt@ucc.asn.au> | 2013-05-25 00:54:19 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2013-05-25 00:54:19 +0800 |
commit | aafeebd0c841494e4f7315890bc97ed0daf99cbd (patch) | |
tree | 25eca11af5943d69bc9ce4e27a62b3937bb64824 /dropbearkey.c | |
parent | 6b0d47b3645c987b457a6f2562db093827421382 (diff) |
have separate ecdsa keys for each size
fix crash from the mp_alloc_init_multi change in RSA
--HG--
branch : ecc
Diffstat (limited to 'dropbearkey.c')
-rw-r--r-- | dropbearkey.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/dropbearkey.c b/dropbearkey.c index cf7048e..eecfbcc 100644 --- a/dropbearkey.c +++ b/dropbearkey.c @@ -266,8 +266,11 @@ int main(int argc, char ** argv) { #endif #ifdef DROPBEAR_ECDSA case DROPBEAR_SIGNKEY_ECDSA_KEYGEN: - key->ecckey = gen_ecdsa_priv_key(bits); - keytype = ecdsa_signkey_type(key->ecckey); + { + ecc_key *ecckey = gen_ecdsa_priv_key(bits); + keytype = ecdsa_signkey_type(ecckey); + *signkey_ecc_key_ptr(key, keytype) = ecckey; + } break; #endif default: |