Klaus Demo nginx / 416fc7a
Set SSL session context for "ssl_session_cache none". This fixes a bug when client certficate is used and nginx closes connection with the message: "SSL_GET_PREV_SESSION:session id context uninitialized". Igor Sysoev 12 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
14271427 return NGX_OK;
14281428 }
14291429
1430 SSL_CTX_set_session_id_context(ssl->ctx, sess_ctx->data, sess_ctx->len);
1431
14301432 if (builtin_session_cache == NGX_SSL_NONE_SCACHE) {
14311433
14321434 /*
14571459 }
14581460
14591461 SSL_CTX_set_session_cache_mode(ssl->ctx, cache_mode);
1460
1461 SSL_CTX_set_session_id_context(ssl->ctx, sess_ctx->data, sess_ctx->len);
14621462
14631463 if (builtin_session_cache != NGX_SSL_NO_BUILTIN_SCACHE) {
14641464