summaryrefslogtreecommitdiff
path: root/src/mongo/util/net/ssl_manager.h
diff options
context:
space:
mode:
authorAndreas Nilsson <andreas.nilsson@10gen.com>2015-06-08 12:03:51 -0400
committerAndreas Nilsson <andreas.nilsson@10gen.com>2015-06-15 10:36:39 -0400
commit3835673693a9418ef52a3840bbc838232b0542b7 (patch)
tree35267665af1eed3d45a3d2fff0576631dc9427c7 /src/mongo/util/net/ssl_manager.h
parent546e2943af3c9d0eb50062c26f52303452423f29 (diff)
downloadmongo-3835673693a9418ef52a3840bbc838232b0542b7.tar.gz
SERVER-17990 SERVER-18809 Community portion of ESE
Diffstat (limited to 'src/mongo/util/net/ssl_manager.h')
-rw-r--r--src/mongo/util/net/ssl_manager.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mongo/util/net/ssl_manager.h b/src/mongo/util/net/ssl_manager.h
index d5cefff5e89..b9af6c424b4 100644
--- a/src/mongo/util/net/ssl_manager.h
+++ b/src/mongo/util/net/ssl_manager.h
@@ -27,6 +27,7 @@
#pragma once
+#include <memory>
#include <string>
#include "mongo/config.h"
@@ -52,6 +53,7 @@ namespace mongo {
#ifdef MONGO_CONFIG_SSL
namespace mongo {
+ struct SSLParams;
class SSLConnection {
public:
@@ -87,6 +89,8 @@ namespace mongo {
class SSLManagerInterface {
public:
+ static std::unique_ptr<SSLManagerInterface> create(const SSLParams& params, bool isServer);
+
virtual ~SSLManagerInterface();
/**
@@ -126,7 +130,7 @@ namespace mongo {
/**
* Fetches the error text for an error code, in a thread-safe manner.
*/
- virtual std::string getSSLErrorMessage(int code) = 0;
+ static std::string getSSLErrorMessage(int code);
/**
* ssl.h wrappers