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 /keyimport.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 'keyimport.c')
-rw-r--r-- | keyimport.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/keyimport.c b/keyimport.c index d0469de..05bf800 100644 --- a/keyimport.c +++ b/keyimport.c @@ -680,7 +680,7 @@ static sign_key *openssh_read(const char *filename, char *passphrase) int private_key_len = 0; unsigned char* public_key_bytes = NULL; int public_key_len = 0; - ecc_key *ecc; + ecc_key *ecc = NULL; const struct dropbear_ecc_curve *curve = NULL; // See SEC1 v2, Appendix C.4 @@ -774,7 +774,7 @@ static sign_key *openssh_read(const char *filename, char *passphrase) goto error; } - retkey->ecckey = ecc; + *signkey_ecc_key_ptr(retkey, retkey->type) = ecc; } #endif // DROPBEAR_ECDSA |