summaryrefslogtreecommitdiff
path: root/src/mongo/util/net/ssl_manager.h
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2018-01-17 13:31:14 -0500
committerMathias Stearn <mathias@10gen.com>2018-01-19 21:43:07 -0500
commit6d92ce0e7ec4e9a0cf31e9f9940a63b03968bb88 (patch)
treeee06bd3cd1d5f34b114c81bffb715e432fbe6880 /src/mongo/util/net/ssl_manager.h
parent410d6cf705eafd46499e8b338be5103becd377ff (diff)
downloadmongo-6d92ce0e7ec4e9a0cf31e9f9940a63b03968bb88.tar.gz
SERVER-32674 Make SocketException not be a special type
Diffstat (limited to 'src/mongo/util/net/ssl_manager.h')
-rw-r--r--src/mongo/util/net/ssl_manager.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/util/net/ssl_manager.h b/src/mongo/util/net/ssl_manager.h
index 002a0dd6be7..f1caf1f6d20 100644
--- a/src/mongo/util/net/ssl_manager.h
+++ b/src/mongo/util/net/ssl_manager.h
@@ -114,25 +114,25 @@ public:
/**
* Initiates a TLS connection.
- * Throws SocketException on failure.
+ * Throws NetworkException on failure.
* @return a pointer to an SSLConnection. Resources are freed in SSLConnection's destructor
*/
virtual SSLConnection* connect(Socket* socket) = 0;
/**
* Waits for the other side to initiate a TLS connection.
- * Throws SocketException on failure.
+ * Throws NetworkException on failure.
* @return a pointer to an SSLConnection. Resources are freed in SSLConnection's destructor
*/
virtual SSLConnection* accept(Socket* socket, const char* initialBytes, int len) = 0;
/**
* Fetches a peer certificate and validates it if it exists
- * Throws SocketException on failure
+ * Throws NetworkException on failure
* @return a std::string containing the certificate's subject name.
*
* This version of parseAndValidatePeerCertificate is deprecated because it throws a
- * SocketException upon failure. New code should prefer the version that returns
+ * NetworkException upon failure. New code should prefer the version that returns
* a StatusWith instead.
*/
virtual SSLPeerInfo parseAndValidatePeerCertificateDeprecated(