Commit 1bd4ee1d authored by Dr. Stephen Henson's avatar Dr. Stephen Henson
Browse files

Use nid not cipher type as some ciphers don't have OIDs.

parent 3956bfce
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -316,10 +316,11 @@ const EVP_MD *evp_get_fips_md(const EVP_MD *md)

const EVP_CIPHER *evp_get_fips_cipher(const EVP_CIPHER *cipher)
	{
	if (cipher->nid == NID_undef)
	int nid = cipher->nid;
	if (nid == NID_undef)
		return FIPS_evp_enc_null();
	else
		return FIPS_get_cipherbynid(EVP_CIPHER_type(cipher));
		return FIPS_get_cipherbynid(nid);
	}

#endif