diff options
author | George Hazan <george.hazan@gmail.com> | 2014-12-21 19:32:04 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-12-21 19:32:04 +0000 |
commit | b0d8e624a131040cdc4bf2cd305ebe8c20ad4ab1 (patch) | |
tree | 68541742a997f4403d9dcb9883eddc7d813bd292 /src/modules/netlib | |
parent | 3b9477da30fc2ca24b91c7d7530cc8faf9945789 (diff) |
minor fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@11563 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/netlib')
-rw-r--r-- | src/modules/netlib/netlibssl.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/modules/netlib/netlibssl.cpp b/src/modules/netlib/netlibssl.cpp index 0c0e62d32b..3821c422a3 100644 --- a/src/modules/netlib/netlibssl.cpp +++ b/src/modules/netlib/netlibssl.cpp @@ -109,8 +109,7 @@ static bool AcquireCredentials(void) memset(&SchannelCred, 0, sizeof(SchannelCred));
SchannelCred.dwVersion = SCHANNEL_CRED_VERSION;
- SchannelCred.grbitEnabledProtocols = SP_PROT_SSL3TLS1_CLIENTS /*| 0xA00 TLS1.1 & 1.2*/;
-
+ SchannelCred.grbitEnabledProtocols = SP_PROT_SSL3TLS1_CLIENTS;
SchannelCred.dwFlags |= SCH_CRED_NO_DEFAULT_CREDS | SCH_CRED_MANUAL_CRED_VALIDATION;
// Create an SSPI credential.
@@ -138,7 +137,9 @@ static bool SSL_library_init(void) g_pSSPI = InitSecurityInterface();
if (g_pSSPI) {
- MySslEmptyCache = (SSL_EMPTY_CACHE_FN_M)GetProcAddress(g_hSchannel, "SslEmptyCache");
+ g_hSchannel = LoadLibraryA("schannel.dll");
+ if (g_hSchannel)
+ MySslEmptyCache = (SSL_EMPTY_CACHE_FN_M)GetProcAddress(g_hSchannel, "SslEmptyCache");
AcquireCredentials();
bSslInitDone = true;
}
@@ -806,5 +807,6 @@ void UnloadSslModule(void) if (g_pSSPI && SecIsValidHandle(&hCreds))
g_pSSPI->FreeCredentialsHandle(&hCreds);
CloseHandle(g_hSslMutex);
- if (g_hSchannel) FreeLibrary(g_hSchannel);
+ if (g_hSchannel)
+ FreeLibrary(g_hSchannel);
}
|