pki_crypto: Replace deprecated RSA_generate_key() with RSA_generate_key_ex()
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 <0bdc63247af490de2e3f3da15a8939ec28fc7d99@sartura.hr>
(cherry picked from commit 0b8d24f800bae5f4f86c0eaca41c609f40d7baef)

mwgoldsmith/libssh,mwgoldsmith/libssh,mwgoldsmith/ssh,mwgoldsmith/libssh,mwgoldsmith/ssh,mwgoldsmith/libssh,mwgoldsmith/ssh,mwgoldsmith/ssh