Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add OpenSSL version check for SSL_SESSION_is_resumable() #3120

Merged
merged 1 commit into from
Sep 29, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions pjlib/src/pj/ssl_sock_ossl.c
Original file line number Diff line number Diff line change
Expand Up @@ -2303,7 +2303,11 @@ static pj_status_t ssl_do_handshake(pj_ssl_sock_t *ssock)
PJ_LOG(5, (THIS_FILE, "Session info: reused=%d, resumable=%d, "
"timeout=%d",
SSL_session_reused(ossock->ossl_ssl),
#if OPENSSL_VERSION_NUMBER >= 0x1010100fL
SSL_SESSION_is_resumable(sess),
#else
-1,
#endif
SSL_SESSION_get_timeout(sess)));

sid = SSL_SESSION_get_id(sess, &len);
Expand Down