SSL_get1_session
SSL_SESSION *SSL_get1_session(SSL *ssl); /* obtain a reference count */
if ((ss = SSL_get1_session(ctx->ssl_conn)) == NULL) {