1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 17:38:00 +00:00

Verify RSA keys created by rsa2_openssh_createkey.

[originally from svn r9980]
This commit is contained in:
Simon Tatham 2013-08-02 06:28:05 +00:00
parent 2e0723e9ef
commit 493a333078

View File

@ -711,6 +711,11 @@ static void *rsa2_openssh_createkey(unsigned char **blob, int *len)
return NULL;
}
if (!rsa_verify(rsa)) {
rsa2_freekey(rsa);
return NULL;
}
return rsa;
}