From d4d76b9e83be2e0724b30bcdb8e860598f4f25de Mon Sep 17 00:00:00 2001 From: =?utf8?q?Lutz=20J=C3=A4nicke?= Date: Sun, 4 Feb 2001 18:10:54 +0000 Subject: [PATCH] Documenting session caching, 2nd step. --- doc/ssl/SSL_CTX_sess_set_get_cb.pod | 9 +++++---- doc/ssl/SSL_CTX_set_session_cache_mode.pod | 13 +++++++++---- doc/ssl/ssl.pod | 5 +++++ 3 files changed, 19 insertions(+), 8 deletions(-) diff --git a/doc/ssl/SSL_CTX_sess_set_get_cb.pod b/doc/ssl/SSL_CTX_sess_set_get_cb.pod index 4f3c93a859..b6f15b4404 100644 --- a/doc/ssl/SSL_CTX_sess_set_get_cb.pod +++ b/doc/ssl/SSL_CTX_sess_set_get_cb.pod @@ -13,7 +13,7 @@ SSL_CTX_sess_set_new_cb, SSL_CTX_sess_set_remove_cb, SSL_CTX_sess_set_get_cb, SS void SSL_CTX_sess_set_remove_cb(SSL_CTX *ctx, void (*remove_session_cb)(SSL_CTX *ctx, SSL_SESSION *)); void SSL_CTX_sess_set_get_cb(SSL_CTX *ctx, - SSL_SESSION (*get_session-cb)(SSL *, unsigned char *, int, int *)); + SSL_SESSION (*get_session_cb)(SSL *, unsigned char *, int, int *)); int (*SSL_CTX_sess_get_new_cb(SSL_CTX *ctx))(struct ssl_st *ssl, SSL_SESSION *sess); void (*SSL_CTX_sess_get_remove_cb(SSL_CTX *ctx))(struct ssl_ctx_st *ctx, SSL_SESSION *sess); @@ -41,7 +41,7 @@ L). (SSL/TLS server only.) SSL_CTX_sess_get_new_cb(), SSL_CTX_sess_get_remove_cb(), and -SSL_CTX_sess_get_get_cb() allow to retrieve the funtion pointers of the +SSL_CTX_sess_get_get_cb() allow to retrieve the function pointers of the provided callback functions. If a callback function has not been set, the NULL pointer is returned. @@ -56,7 +56,7 @@ The new_session_cb() is called, whenever a new session has been negotiated and session caching is enabled (see L). The new_session_cb() is passed the B connection and the ssl session -B. If the callback returns B<0>, the session will be immediatly +B. If the callback returns B<0>, the session will be immediately removed again. The remove_session_cb() is called, whenever the SSL engine removes a session @@ -75,6 +75,7 @@ SSL engine to increment the reference count of the SSL_SESSION object. =head1 SEE ALSO L, L, -L +L, +L =cut diff --git a/doc/ssl/SSL_CTX_set_session_cache_mode.pod b/doc/ssl/SSL_CTX_set_session_cache_mode.pod index 8fead0c6ee..ba3502a0a4 100644 --- a/doc/ssl/SSL_CTX_set_session_cache_mode.pod +++ b/doc/ssl/SSL_CTX_set_session_cache_mode.pod @@ -2,7 +2,7 @@ =head1 NAME -SSL_CTX_set_session_cache_mode - enable/disable session caching +SSL_CTX_set_session_cache_mode, SSL_CTX_get_session_cache_mode - enable/disable session caching =head1 SYNOPSIS @@ -68,9 +68,11 @@ Enable both SSL_SESS_CACHE_CLIENT and SSL_SESS_CACHE_SERVER at the same time. =item SSL_SESS_CACHE_NO_AUTO_CLEAR Normally the session cache is checked for expired sessions every -255 connections using the SSL_CTX_flush_sessions() function. Since +255 connections using the +L function. Since this may lead to a delay which cannot be controlled, the automatic -flushing may be disabled and SSL_CTX_flush_sessions() can be called +flushing may be disabled and +L can be called explicitly by the application. =item SSL_SESS_CACHE_NO_INTERNAL_LOOKUP @@ -95,7 +97,10 @@ SSL_CTX_get_session_cache_mode() returns the currently set cache mode. =head1 SEE ALSO L, L, +L, L, -L +L, +L, +L =cut diff --git a/doc/ssl/ssl.pod b/doc/ssl/ssl.pod index 33ee2d1e82..c95b8dcc7d 100644 --- a/doc/ssl/ssl.pod +++ b/doc/ssl/ssl.pod @@ -651,16 +651,20 @@ L, L, L, L, L, +L, +L, L, L, L L, +L, L, L, L, L, L, L, +L, L, L, L, @@ -682,6 +686,7 @@ L, L, L, L, L, +L, L =head1 HISTORY -- 2.25.1