summaryrefslogtreecommitdiff
path: root/cpp/test/IceSSL/configuration/AllTests.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/test/IceSSL/configuration/AllTests.cpp')
-rw-r--r--cpp/test/IceSSL/configuration/AllTests.cpp28
1 files changed, 12 insertions, 16 deletions
diff --git a/cpp/test/IceSSL/configuration/AllTests.cpp b/cpp/test/IceSSL/configuration/AllTests.cpp
index 15836e3ed7b..94b1ae2e2cb 100644
--- a/cpp/test/IceSSL/configuration/AllTests.cpp
+++ b/cpp/test/IceSSL/configuration/AllTests.cpp
@@ -33,6 +33,10 @@ using namespace Windows::Security::Cryptography;
using namespace Windows::Security::Cryptography::Certificates;
#endif
+#ifdef _WIN32
+# include <VersionHelpers.h>
+#endif
+
#ifdef ICE_CPP11_MAPPING
# define ICE_TARGET_EQUAL_TO(A,B) Ice::targetEqualTo(A, B)
#else
@@ -2867,16 +2871,14 @@ allTests(const CommunicatorPtr& communicator, const string& testDir, bool p12)
//
// No DSA support in Secure Transport / AIX 7.1
//
-# if !defined(ICE_USE_SECURE_TRANSPORT) && !defined(_AIX)
+# if !defined(ICE_USE_SECURE_TRANSPORT) && !defined(_AIX) && !defined(ICE_USE_SCHANNEL)
{
+ //
+ // DSA PEM keys are not supported with SChannel. Since Windows 10
+ // Creator Update DHE_DSS is also disabled by default so DSA keys
+ // can no longer be used.
+ //
- //
- // DSA PEM certificates are not supported with SChannel.
- //
-# ifdef ICE_USE_SCHANNEL
- if(p12)
- {
-# endif
//
// Configure a server with RSA and DSA certificates.
//
@@ -2935,11 +2937,7 @@ allTests(const CommunicatorPtr& communicator, const string& testDir, bool p12)
}
fact->destroyServer(server);
comm->destroy();
-# ifdef ICE_USE_SCHANNEL
- }
-# endif
-# ifndef ICE_USE_SCHANNEL
//
// Next try a client with ADH. This should fail.
//
@@ -2969,9 +2967,8 @@ allTests(const CommunicatorPtr& communicator, const string& testDir, bool p12)
}
fact->destroyServer(server);
comm->destroy();
-# endif
}
-# ifndef ICE_USE_SCHANNEL
+
{
//
// Configure a server with RSA and a client with DSA. This should fail.
@@ -3008,8 +3005,7 @@ allTests(const CommunicatorPtr& communicator, const string& testDir, bool p12)
fact->destroyServer(server);
comm->destroy();
}
-# endif
-# endif
+# endif
cout << "ok" << endl;
#endif