diff options
| author | Shauren <shauren.trinity@gmail.com> | 2024-05-07 12:26:21 +0200 |
|---|---|---|
| committer | Ovahlord <dreadkiller@gmx.de> | 2024-05-28 16:55:30 +0200 |
| commit | 249eb19fe108511c5f56e30944816ebb87617ec1 (patch) | |
| tree | 34a7d03edf8f1b7f1300f1596a1a8b37c7aa0244 /src/server/bnetserver/Server/SslContext.cpp | |
| parent | b37f4d0a50ab6bc52d0016178eaf6f12ad120231 (diff) | |
Core/Misc: Minor change to make_unique_ptr_with_deleter to make it accept only pointers
(cherry picked from commit 83f4763b25891c9fe6c7f01b75cdf0f4ef66fc9a)
Diffstat (limited to 'src/server/bnetserver/Server/SslContext.cpp')
| -rw-r--r-- | src/server/bnetserver/Server/SslContext.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/bnetserver/Server/SslContext.cpp b/src/server/bnetserver/Server/SslContext.cpp index 3fd5a1bfbf8..c59e897ffbd 100644 --- a/src/server/bnetserver/Server/SslContext.cpp +++ b/src/server/bnetserver/Server/SslContext.cpp @@ -30,7 +30,7 @@ namespace { auto CreatePasswordUiMethodFromPemCallback(::pem_password_cb* callback) { - return Trinity::make_unique_ptr_with_deleter(UI_UTIL_wrap_read_pem_callback(callback, 0), ::UI_destroy_method); + return Trinity::make_unique_ptr_with_deleter(UI_UTIL_wrap_read_pem_callback(callback, 0), &::UI_destroy_method); } auto OpenOpenSSLStore(boost::filesystem::path const& storePath, UI_METHOD const* passwordCallback, void* passwordCallbackData) @@ -45,7 +45,7 @@ auto OpenOpenSSLStore(boost::filesystem::path const& storePath, UI_METHOD const* uri += genericPath; - return Trinity::make_unique_ptr_with_deleter(OSSL_STORE_open(uri.c_str(), passwordCallback, passwordCallbackData, nullptr, nullptr), ::OSSL_STORE_close); + return Trinity::make_unique_ptr_with_deleter(OSSL_STORE_open(uri.c_str(), passwordCallback, passwordCallbackData, nullptr, nullptr), &::OSSL_STORE_close); } boost::system::error_code GetLastOpenSSLError() |
