diff options
author | Eric Milkie <milkie@10gen.com> | 2013-09-24 09:35:15 -0400 |
---|---|---|
committer | Eric Milkie <milkie@10gen.com> | 2013-09-24 09:35:34 -0400 |
commit | 6fd8a847809b626bf13762045c7b75730c55e784 (patch) | |
tree | 3d333f3d8389b17ceaf21873de1635c940fa425e /src/mongo/util | |
parent | abc6784faa11658b485d9b69f483ee0279c0c1f3 (diff) | |
download | mongo-6fd8a847809b626bf13762045c7b75730c55e784.tar.gz |
SERVER-10261 disable ssl session caching (affects java driver)
Diffstat (limited to 'src/mongo/util')
-rw-r--r-- | src/mongo/util/net/ssl_manager.cpp | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/mongo/util/net/ssl_manager.cpp b/src/mongo/util/net/ssl_manager.cpp index 722dbe6b1ae..c714d568037 100644 --- a/src/mongo/util/net/ssl_manager.cpp +++ b/src/mongo/util/net/ssl_manager.cpp @@ -518,18 +518,9 @@ namespace mongo { // Note: this is for blocking sockets only. SSL_CTX_set_mode(*context, SSL_MODE_AUTO_RETRY); - // Set context within which session can be reused - int status = SSL_CTX_set_session_id_context( - *context, - static_cast<unsigned char*>(static_cast<void*>(context)), - sizeof(*context)); + // Disable session caching (see SERVER-10261) + SSL_CTX_set_session_cache_mode(*context, SSL_SESS_CACHE_OFF); - if (!status) { - error() << "failed to set session id context: " << - getSSLErrorMessage(ERR_get_error()) << endl; - return false; - } - // Use the clusterfile for internal outgoing SSL connections if specified if (context == &_clientContext && !params.clusterfile.empty()) { EVP_set_pw_prompt("Enter cluster certificate passphrase"); |