mirror of
https://github.com/clearml/dropbear
synced 2025-06-26 18:17:32 +00:00
have separate ecdsa keys for each size
fix crash from the mp_alloc_init_multi change in RSA --HG-- branch : ecc
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user