  void
  ssl_update_cache(SSL *s, int mode)
  {
-@@ -2309,7 +3200,9 @@
+@@ -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);

 const SSL_CIPHER *
 SSL_get_current_cipher(const SSL *s)
 {
@@ -2809,6 +3828,10 @@
 }
 
 void

 SSL_get_shutdown(const SSL *s)
 {
 	return (s->shutdown);
@@ -2839,12 +3902,34 @@
 }
 
 SSL_CTX *
