Skip to content

Commit 7c8c503

Browse files
committed
bugfix: fixed compatibility with older OpenSSL versions like 0.9.8 and 0.9.7. this regression had appeared in commit 7f10892.
1 parent 858753b commit 7c8c503

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/ngx_http_lua_ssl_session_storeby.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,12 @@ ngx_http_lua_ssl_sess_store_handler(ngx_ssl_conn_t *ssl_conn,
249249
}
250250
}
251251

252+
#if OPENSSL_VERSION_NUMBER >= 0x1000200fL
252253
sess_id = SSL_SESSION_get_id(sess, &sess_id_len);
254+
#else
255+
sess_id = sess->session_id;
256+
sess_id_len = sess->session_id_length;
257+
#endif
253258

254259
cctx->connection = c;
255260
cctx->request = r;

0 commit comments

Comments
 (0)