diff options
author | Petar Koretic <petar.koretic@sartura.hr> | 2014-03-16 10:20:44 +0000 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2014-03-27 10:11:24 +0100 |
commit | 0b8d24f800bae5f4f86c0eaca41c609f40d7baef (patch) | |
tree | 19d0041426ae3bca398dda5ca5da960501a0d320 /src/packet_cb.c | |
parent | 48354f56ec86bcd23b0947e2eb4ce85b9cdebd0f (diff) | |
download | libssh-0b8d24f800bae5f4f86c0eaca41c609f40d7baef.tar.gz libssh-0b8d24f800bae5f4f86c0eaca41c609f40d7baef.tar.xz libssh-0b8d24f800bae5f4f86c0eaca41c609f40d7baef.zip |
pki_crypto: Replace deprecated RSA_generate_key() with RSA_generate_key_ex()
On Mar 16, 09:41, Aris Adamantiadis wrote:
> Hi Petar,
> I agree with the principle, but I don't think this code can work...
> RSA_generate_key takes an RSA* as parameter and in our code we probably
> have key->rsa==NULL. (if we don't then the old code had a memory leak).
>
> Does the test case work ?
>
> Aris
>
Yes, you are right. This works, tested with tests/unittests/torture_pki
Signed-off-by: Petar Koretic <petar.koretic@sartura.hr>
Diffstat (limited to 'src/packet_cb.c')
0 files changed, 0 insertions, 0 deletions