Calling RSA_check_key() requires entropy, which may not be present. Remove

the call.
This commit is contained in:
Brian Wellington
2000-11-22 00:11:30 +00:00
parent 5a77e9620a
commit 292ef406c6

View File

@@ -17,7 +17,7 @@
/*
* Principal Author: Brian Wellington
* $Id: opensslrsa_link.c,v 1.3 2000/11/18 03:01:09 bwelling Exp $
* $Id: opensslrsa_link.c,v 1.4 2000/11/22 00:11:30 bwelling Exp $
*/
#if defined(OPENSSL)
@@ -487,9 +487,6 @@ opensslrsa_fromfile(dst_key_t *key, const isc_uint16_t id,
if (key->key_id != id)
DST_RET(DST_R_INVALIDPRIVATEKEY);
if (RSA_check_key(rsa) != 1)
DST_RET(DST_R_INVALIDPRIVATEKEY);
return (ISC_R_SUCCESS);
err: