summaryrefslogtreecommitdiff
path: root/src/mongo/util/net/ssl
diff options
context:
space:
mode:
authorMark Benvenuto <mark.benvenuto@mongodb.com>2018-03-08 13:52:35 -0500
committerMark Benvenuto <mark.benvenuto@mongodb.com>2018-03-08 13:52:35 -0500
commite7dedcc3b42e3a601bd7080743d1e3c1d10e3cfa (patch)
tree52d41f3019672765b24152d87897c539f697af9f /src/mongo/util/net/ssl
parent8522318f0a92ce96b8d90e5bd5d52771b2d63c04 (diff)
downloadmongo-e7dedcc3b42e3a601bd7080743d1e3c1d10e3cfa.tar.gz
SERVER-22411 Refactor Windows Certificate PEM file loading
Diffstat (limited to 'src/mongo/util/net/ssl')
-rw-r--r--src/mongo/util/net/ssl/context_base.hpp49
1 files changed, 0 insertions, 49 deletions
diff --git a/src/mongo/util/net/ssl/context_base.hpp b/src/mongo/util/net/ssl/context_base.hpp
index 01af07f20fa..66a14fea1f5 100644
--- a/src/mongo/util/net/ssl/context_base.hpp
+++ b/src/mongo/util/net/ssl/context_base.hpp
@@ -99,55 +99,6 @@ public:
/// Bitmask type for SSL options.
typedef long options;
-#if MONGO_CONFIG_SSL_PROVIDER == SSL_PROVIDER_OPENSSL
-#if defined(GENERATING_DOCUMENTATION)
- /// Implement various bug workarounds.
- static const long default_workarounds = implementation_defined;
-
- /// Always create a new key when using tmp_dh parameters.
- static const long single_dh_use = implementation_defined;
-
- /// Disable SSL v2.
- static const long no_sslv2 = implementation_defined;
-
- /// Disable SSL v3.
- static const long no_sslv3 = implementation_defined;
-
- /// Disable TLS v1.
- static const long no_tlsv1 = implementation_defined;
-
- /// Disable TLS v1.1.
- static const long no_tlsv1_1 = implementation_defined;
-
- /// Disable TLS v1.2.
- static const long no_tlsv1_2 = implementation_defined;
-
- /// Disable compression. Compression is disabled by default.
- static const long no_compression = implementation_defined;
-#else
- ASIO_STATIC_CONSTANT(long, default_workarounds = SSL_OP_ALL);
- ASIO_STATIC_CONSTANT(long, single_dh_use = SSL_OP_SINGLE_DH_USE);
- ASIO_STATIC_CONSTANT(long, no_sslv2 = SSL_OP_NO_SSLv2);
- ASIO_STATIC_CONSTANT(long, no_sslv3 = SSL_OP_NO_SSLv3);
- ASIO_STATIC_CONSTANT(long, no_tlsv1 = SSL_OP_NO_TLSv1);
-#if defined(SSL_OP_NO_TLSv1_1)
- ASIO_STATIC_CONSTANT(long, no_tlsv1_1 = SSL_OP_NO_TLSv1_1);
-#else // defined(SSL_OP_NO_TLSv1_1)
- ASIO_STATIC_CONSTANT(long, no_tlsv1_1 = 0x10000000L);
-#endif // defined(SSL_OP_NO_TLSv1_1)
-#if defined(SSL_OP_NO_TLSv1_2)
- ASIO_STATIC_CONSTANT(long, no_tlsv1_2 = SSL_OP_NO_TLSv1_2);
-#else // defined(SSL_OP_NO_TLSv1_2)
- ASIO_STATIC_CONSTANT(long, no_tlsv1_2 = 0x08000000L);
-#endif // defined(SSL_OP_NO_TLSv1_2)
-#if defined(SSL_OP_NO_COMPRESSION)
- ASIO_STATIC_CONSTANT(long, no_compression = SSL_OP_NO_COMPRESSION);
-#else // defined(SSL_OP_NO_COMPRESSION)
- ASIO_STATIC_CONSTANT(long, no_compression = 0x20000L);
-#endif // defined(SSL_OP_NO_COMPRESSION)
-#endif
-#endif
-
protected:
/// Protected destructor to prevent deletion through this type.
~context_base() {}