summaryrefslogtreecommitdiff
path: root/src/mongo/util
diff options
context:
space:
mode:
authorA. Jesse Jiryu Davis <jesse@mongodb.com>2019-06-19 12:52:21 -0400
committerA. Jesse Jiryu Davis <jesse@mongodb.com>2019-06-19 16:09:40 -0400
commit145f4d0e1e738833f4ea1d0cd8e825088f885995 (patch)
treef5190560003cab092e6b6c9aae42e285800f6dc1 /src/mongo/util
parenta0c6dc635efc4f14144fa292a626bde63656fbf8 (diff)
downloadmongo-145f4d0e1e738833f4ea1d0cd8e825088f885995.tar.gz
SERVER-41071 Fix Windows build after nullptr change
Diffstat (limited to 'src/mongo/util')
-rw-r--r--src/mongo/util/net/ssl_manager_openssl.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/util/net/ssl_manager_openssl.cpp b/src/mongo/util/net/ssl_manager_openssl.cpp
index e716aacf584..563c6a570ad 100644
--- a/src/mongo/util/net/ssl_manager_openssl.cpp
+++ b/src/mongo/util/net/ssl_manager_openssl.cpp
@@ -1204,9 +1204,10 @@ inline Status checkX509_STORE_error() {
Status importCertStoreToX509_STORE(const wchar_t* storeName,
DWORD storeLocation,
X509_STORE* verifyStore) {
+ // Use NULL for argument 3, nullptr is not convertible to HCRYPTPROV_LEGACY type.
HCERTSTORE systemStore = CertOpenStore(CERT_STORE_PROV_SYSTEM_W,
0,
- nullptr,
+ NULL,
storeLocation | CERT_STORE_READONLY_FLAG,
const_cast<LPWSTR>(storeName));
if (systemStore == nullptr) {