Skip to content

Prevent Y2038 bug by using SSL_SESSION_get_time_ex#607

Open
DanielRuf wants to merge 2 commits intoapache:trunkfrom
DanielRuf:patch-1
Open

Prevent Y2038 bug by using SSL_SESSION_get_time_ex#607
DanielRuf wants to merge 2 commits intoapache:trunkfrom
DanielRuf:patch-1

Conversation

@covener
Copy link
Member

covener commented Feb 26, 2026

Do we need OPENSSL_VERSION_NUMBER-like checks here?

@DanielRuf
Copy link
Author

DanielRuf commented Feb 26, 2026

Good question, the function was added in OpenSSL 3.3.0 according to https://github.com/openssl/openssl/blob/master/CHANGES.md#changes-between-32-and-330-9-apr-2024

So I guess yes?
What is the recommended style for the version check?

@notroj
Copy link
Collaborator

notroj commented Feb 28, 2026

I would inline a #if OPENSSL_VERSION_NUMBER etc in that file since there is only one place using that function.

@DanielRuf
Copy link
Author

I have added some OpenSSL version check in the latest commit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants