  SSL_set_quiet_shutdown(SSL *s, int mode)
  {
  	s->quiet_shutdown = mode;
-@@ -2821,12 +3844,43 @@
+@@ -2821,12 +3853,43 @@
  }
  
  void

 SSL_set_SSL_CTX(SSL *ssl, SSL_CTX* ctx)
 {
 	if (ssl->ctx == ctx)
@@ -2861,6 +3937,10 @@
 }
 
 int

 void
 ssl_update_cache(SSL *s, int mode)
 {
@@ -2309,7 +3209,9 @@
 	    || SSL_CTX_add_session(s->session_ctx, s->session))
 	    && (s->session_ctx->new_session_cb != NULL)) {
 		CRYPTO_add(&s->session->references, 1, CRYPTO_LOCK_SSL_SESSION);
