summaryrefslogtreecommitdiff
path: root/src/mongo/client/dbclient_base.h
diff options
context:
space:
mode:
authorGabriel Marks <gabriel.marks@mongodb.com>2020-06-26 15:42:20 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-07-08 23:23:41 +0000
commitb0b09d66b99d80a0a65c4bc552b6e9f443aadb3b (patch)
treedca13f3eab48c9edb4f276ba89f5c8efd4338b5f /src/mongo/client/dbclient_base.h
parent8895e4ca0321aa121cd0558a8622286bdf1f41b2 (diff)
downloadmongo-b0b09d66b99d80a0a65c4bc552b6e9f443aadb3b.tar.gz
SERVER-49112 Add Session::getSSLConfiguration
Diffstat (limited to 'src/mongo/client/dbclient_base.h')
-rw-r--r--src/mongo/client/dbclient_base.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mongo/client/dbclient_base.h b/src/mongo/client/dbclient_base.h
index 4da50dcb286..6f6633496f1 100644
--- a/src/mongo/client/dbclient_base.h
+++ b/src/mongo/client/dbclient_base.h
@@ -40,6 +40,7 @@
#include "mongo/client/mongo_uri.h"
#include "mongo/client/query.h"
#include "mongo/client/read_preference.h"
+#include "mongo/config.h"
#include "mongo/db/dbmessage.h"
#include "mongo/db/jsobj.h"
#include "mongo/db/write_concern_options.h"
@@ -755,6 +756,13 @@ public:
// This is only for DBClientCursor.
static void (*withConnection_do_not_use)(std::string host, std::function<void(DBClientBase*)>);
+#ifdef MONGO_CONFIG_SSL
+ /**
+ * Get the SSL configuration of this client.
+ */
+ virtual const SSLConfiguration* getSSLConfiguration() = 0;
+#endif
+
protected:
/** if the result of a command is ok*/
bool isOk(const BSONObj&);