View | Details | Raw Unified | Return to bug 229021 | Differences between
and this patch

Collapse All | Expand All

(-)net/netsslcredentials.cc (-1 / +1 lines)
Lines 218-224 NetSslCredentials::ReadCredentials( Error *e ) Link Here
218
	privateKey = PEM_read_PrivateKey(fp, NULL, 0, NULL );
218
	privateKey = PEM_read_PrivateKey(fp, NULL, 0, NULL );
219
	SSLNULLHANDLER( privateKey, e, "NetSslCredentials::ReadCredentials PEM_read_PrivateKey", failSetError );
219
	SSLNULLHANDLER( privateKey, e, "NetSslCredentials::ReadCredentials PEM_read_PrivateKey", failSetError );
220
	// verify that RSA key
220
	// verify that RSA key
221
	if (privateKey->type != EVP_PKEY_RSA)
221
	if (EVP_PKEY_base_id(privateKey) != EVP_PKEY_RSA)
222
	{
222
	{
223
	    e->Set( MsgRpc::SslKeyNotRSA );
223
	    e->Set( MsgRpc::SslKeyNotRSA );
224
	    goto fail;
224
	    goto fail;

Return to bug 229021