summaryrefslogtreecommitdiff
path: root/cpp/src/IceSSL/SChannelEngine.cpp
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2017-04-03 17:45:05 +0200
committerJose <jose@zeroc.com>2017-04-03 17:45:05 +0200
commitb5e0144d8ee2b599fa9f25564e741eb3e47603a3 (patch)
tree0a0a76c435ba05891883c3b4c1c6ec928f7bd80e /cpp/src/IceSSL/SChannelEngine.cpp
parentAnother VC90 fix (diff)
downloadice-b5e0144d8ee2b599fa9f25564e741eb3e47603a3.tar.bz2
ice-b5e0144d8ee2b599fa9f25564e741eb3e47603a3.tar.xz
ice-b5e0144d8ee2b599fa9f25564e741eb3e47603a3.zip
CALG_ECDH_EPHEM only defined with recent version of SDK headers
Diffstat (limited to 'cpp/src/IceSSL/SChannelEngine.cpp')
-rw-r--r--cpp/src/IceSSL/SChannelEngine.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/cpp/src/IceSSL/SChannelEngine.cpp b/cpp/src/IceSSL/SChannelEngine.cpp
index af26f55ad36..e9ca7472b97 100644
--- a/cpp/src/IceSSL/SChannelEngine.cpp
+++ b/cpp/src/IceSSL/SChannelEngine.cpp
@@ -24,12 +24,13 @@
#include <wincrypt.h>
//
-// This algorithm is not defined in the headers but appears in the documentation
-// and we see the value being used in our tests, see:
+// CALG_ECDH_EPHEM algorithm constant is not defined in older version of the SDK headers
//
// https://msdn.microsoft.com/en-us/library/windows/desktop/aa375549(v=vs.85).aspx
//
-const int CALG_ECDH_EPHEM = 0x0000ae06;
+
+const int ICESSL_CALG_ECDH_EPHEM = 0x0000AE06;
+
//
// COMPILERFIX SCH_USE_STRONG_CRYPTO not defined with VC90
@@ -491,7 +492,7 @@ algorithmId(const string& name)
}
else if(name == "ECDH_EPHEM")
{
- return CALG_ECDH_EPHEM;
+ return ICESSL_CALG_ECDH_EPHEM;
}
else if(name == "ECDSA")
{
@@ -1060,7 +1061,7 @@ SChannel::SSLEngine::getCipherName(ALG_ID cipher) const
return "DSS_SIGN";
case CALG_ECDH:
return "ECDH";
- case CALG_ECDH_EPHEM:
+ case ICESSL_CALG_ECDH_EPHEM:
return "ECDH_EPHEM";
case CALG_ECDSA:
return "ECDSA";