Some time in history, SSL_CTX_sessions() disappeared. It is now
authorRichard Levitte <levitte@openssl.org>
Fri, 25 Feb 2000 22:50:28 +0000 (22:50 +0000)
committerRichard Levitte <levitte@openssl.org>
Fri, 25 Feb 2000 22:50:28 +0000 (22:50 +0000)
restored, but not as a macro this time...

ssl/ssl.h
ssl/ssl_lib.c

index be2e3c72f419fe24a292735bbb77262f3e6f08bb..f29f7753474f28c8265ba8eb48b2898f42ab2685 100644 (file)
--- a/ssl/ssl.h
+++ b/ssl/ssl.h
@@ -472,6 +472,7 @@ struct ssl_ctx_st
  * 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) \
index 9b02b6a3438f8d5f3ee80361988195551525ac5a..3109708480b9fcadb02196e503a474bd8407f923 100644 (file)
@@ -798,6 +798,11 @@ long SSL_callback_ctrl(SSL *s, int cmd, void (*fp)())
                }
        }
 
+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;