Some time in history, SSL_CTX_sessions() disappeared. It is now
restored, but not as a macro this time...
diff --git a/ssl/ssl.h b/ssl/ssl.h
index be2e3c7..f29f775 100644
--- a/ssl/ssl.h
+++ b/ssl/ssl.h
@@ -472,6 +472,7 @@
* defined, this will still get called. */
#define SSL_SESS_CACHE_NO_INTERNAL_LOOKUP 0x0100
+ struct lhash_st *SSL_CTX_sessions(SSL_CTX *ctx);
#define SSL_CTX_sess_number(ctx) \
SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_NUMBER,0,NULL)
#define SSL_CTX_sess_connect(ctx) \
diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c
index 9b02b6a..3109708 100644
--- a/ssl/ssl_lib.c
+++ b/ssl/ssl_lib.c
@@ -798,6 +798,11 @@
}
}
+struct lhash_st *SSL_CTX_sessions(SSL_CTX *ctx)
+ {
+ return ctx->sessions;
+ }
+
long SSL_CTX_ctrl(SSL_CTX *ctx,int cmd,long larg,char *parg)
{
long l;