mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-02-18 11:47:03 +00:00
BUG/MEDIUM: ssl: Fix handshake failure on session resumption with client cert.
Openssl session_id_context was not set on cached sessions so handshake returns an error.
This commit is contained in:
parent
78bbeb4a99
commit
786991e8b7
@ -29,6 +29,10 @@
|
||||
#define SHCTX_DEFAULT_SIZE 20000
|
||||
#endif
|
||||
|
||||
#ifndef SHCTX_APPNAME
|
||||
#define SHCTX_APPNAME "haproxy"
|
||||
#endif
|
||||
|
||||
#define SHSESS_MAX_ENCODED_LEN SSL_MAX_SSL_SESSION_ID_LENGTH \
|
||||
+ SHSESS_MAX_DATA_LEN \
|
||||
+ SHSESS_MAX_FOOTER_LEN
|
||||
|
@ -447,6 +447,9 @@ void shared_context_set_cache(SSL_CTX *ctx)
|
||||
SSL_CTX_set_session_cache_mode(ctx, SSL_SESS_CACHE_SERVER |
|
||||
SSL_SESS_CACHE_NO_INTERNAL |
|
||||
SSL_SESS_CACHE_NO_AUTO_CLEAR);
|
||||
|
||||
SSL_CTX_set_session_id_context(ctx, (const unsigned char *)SHCTX_APPNAME, strlen(SHCTX_APPNAME));
|
||||
|
||||
if (!shctx)
|
||||
return;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user