summaryrefslogtreecommitdiff
path: root/devel/ice37/files/patch-cpp-test-IceSSL-configuration-AllTests.cpp
blob: a9951417629eb0481434b59b797bc6abcb1f97d7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
--- cpp/test/IceSSL/configuration/AllTests.cpp.orig	2018-04-20 15:02:08 UTC
+++ cpp/test/IceSSL/configuration/AllTests.cpp
@@ -741,7 +741,11 @@ allTests(const CommunicatorPtr& communic
         openSSLVersion = plugin->getOpenSSLVersion();
         comm->destroy();
     }
+#  if defined(LIBRESSL_VERSION_NUMBER)
+    const string anonCiphers = "ADH";
+#  else
     const string anonCiphers = openSSLVersion >= 0x10100000L ? "ADH:@SECLEVEL=0" : "ADH";
+#  endif
 #endif
 
     IceSSL::ConnectionInfoPtr info;
@@ -2655,6 +2659,7 @@ allTests(const CommunicatorPtr& communic
     // This is fixed in 10.11.3
     if(!elCapitanUpdate2OrLower)
     {
+#if !defined(LIBRESSL_VERSION_NUMBER)
         //
         // This should fail because we disabled all anonymous ciphers and the server doesn't
         // provide a certificate.
@@ -2692,6 +2697,7 @@ allTests(const CommunicatorPtr& communic
         }
         fact->destroyServer(server);
         comm->destroy();
+#endif
     }
 #    ifdef ICE_USE_SECURE_TRANSPORT
     {
@@ -2843,7 +2849,7 @@ allTests(const CommunicatorPtr& communic
     //
     // No DSA support in Secure Transport / AIX 7.1
     //
-#  if !defined(ICE_USE_SECURE_TRANSPORT) && !defined(_AIX) && !defined(ICE_USE_SCHANNEL)
+#  if !defined(ICE_USE_SECURE_TRANSPORT) && !defined(_AIX) && !defined(ICE_USE_SCHANNEL) && !defined(LIBRESSL_VERSION_NUMBER)
     {
         //
         // DSA PEM keys are not supported with SChannel. Since Windows 10
@@ -4165,6 +4171,7 @@ allTests(const CommunicatorPtr& communic
 #endif
     }
 
+#if 0
 #if !defined(_AIX) && !defined(ICE_OS_UWP) && !(defined(_WIN32) && defined(ICE_USE_OPENSSL))
     //
     // On AIX 6.1, the default root certificates don't validate demo.zeroc.com.
@@ -4279,5 +4286,6 @@ allTests(const CommunicatorPtr& communic
     }
     cout << "ok" << endl;
 #endif
+#endif
     return factory;
 }