826,867d825
< 
< #ifdef WIN32
< 			HKEY rootKey;
< 			DWORD fipsEnabled = 0;
< 			DWORD fipsEnabledSize = sizeof(DWORD);
< 
< 			if (RegOpenKeyEx(HKEY_LOCAL_MACHINE,
< 				"System\\CurrentControlSet\\Control\\Lsa\\FipsAlgorithmPolicy",
< 				0,
< 				KEY_READ,
< 				&rootKey) != ERROR_SUCCESS)
< 			{
< 				printfPQExpBuffer(&conn->errorMessage,
< 					libpq_gettext("could not open FIPS registry key"));
< 				return -1;
< 			}
< 			if (RegQueryValueEx(rootKey,
< 				"Enabled",
< 				0,
< 				0,
< 				(LPBYTE) &fipsEnabled,
< 				&fipsEnabledSize) != ERROR_SUCCESS)
< 			{
< 				RegCloseKey(rootKey);
< 				printfPQExpBuffer(&conn->errorMessage,
< 					libpq_gettext("could not read FIPS registry entry"));
< 				return -1;
< 			}
< 			RegCloseKey(rootKey);
< 
< 			if (fipsEnabled == 1 && FIPS_mode() == 0)
< 			{
< 				if (FIPS_mode_set(1) != 1)
< 				{
< 					printfPQExpBuffer(&conn->errorMessage,
< 						libpq_gettext("could not enable FIPS mode"));
< 					return -1;
< 				}
< 			}
< #endif
< 
