ignore openssl 3 deprecations on windows.

This commit is contained in:
Pentarctagon 2022-12-15 18:51:42 -06:00
parent 2ddc179ff1
commit 04b179699f
2 changed files with 20 additions and 0 deletions

View file

@ -44,6 +44,12 @@ static_assert(utils::sha1::DIGEST_SIZE == CC_SHA1_DIGEST_LENGTH, "Constants mism
#endif
#ifdef _MSC_VER
#pragma warning(push)
// silence openssl deprecation warnings since vcpkg updated to openssl 3
#pragma warning(disable:4996)
#endif
namespace {
const std::string hash_prefix = "$H$";
@ -211,3 +217,7 @@ std::string bcrypt::base64_digest() const
}
} // namespace utils
#ifdef _MSC_VER
#pragma warning(pop)
#endif

View file

@ -40,6 +40,12 @@ static lg::log_domain log_config("config");
#define DBG_CFG LOG_STREAM(debug , log_config)
#define ERR_CFG LOG_STREAM(err , log_config)
#ifdef _MSC_VER
#pragma warning(push)
// silence openssl deprecation warnings since vcpkg updated to openssl 3
#pragma warning(disable:4996)
#endif
class secure_buffer : public std::vector<unsigned char>
{
public:
@ -361,3 +367,7 @@ secure_buffer escape(const secure_buffer& text)
}
return escaped;
}
#ifdef _MSC_VER
#pragma warning(pop)
#endif