Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/openssl/openssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/ssl
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2000-02-26 01:50:28 +0300
committerRichard Levitte <levitte@openssl.org>2000-02-26 01:50:28 +0300
commit1e7396beeb13b8132c08dd1fb95645f0b3165335 (patch)
treeb6523ef493e34762b93e98f480a2048167f64789 /ssl
parent582afb4bd705fd971be6a28c8b588e1e413e07da (diff)
Some time in history, SSL_CTX_sessions() disappeared. It is now
restored, but not as a macro this time...
Diffstat (limited to 'ssl')
-rw-r--r--ssl/ssl.h1
-rw-r--r--ssl/ssl_lib.c5
2 files changed, 6 insertions, 0 deletions
diff --git a/ssl/ssl.h b/ssl/ssl.h
index be2e3c72f4..f29f775347 100644
--- 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) \
diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c
index 9b02b6a343..3109708480 100644
--- a/ssl/ssl_lib.c
+++ b/ssl/ssl_lib.c
@@ -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;