Skip to content

Introduce TLS::Callbacks::tls_current_timestamp()#2976

Merged
reneme merged 1 commit intomasterfrom
tls/timestamp_callback
May 18, 2022
Merged

Introduce TLS::Callbacks::tls_current_timestamp()#2976
reneme merged 1 commit intomasterfrom
tls/timestamp_callback

Conversation

@reneme
Copy link
Copy Markdown
Collaborator

@reneme reneme commented May 18, 2022

This extracts the TLS 1.2 portions of yesterday's pull request.

Note that I removed the methods Connection_Cipher_State::age() (not used anymore) and Session::session_age() (users will need to use ::now() - Session::start_time()). The latter is a public API change, though...

Furthermore, there are calls to system_clock::now() in the implementations of the Session_Manager base class (e.g. in the Session_Manager_In_Memory). I didn't change those because the Callbacks& aren't available in their context without an API change either. I guess it is worth discussing how to deal with those locations.

@reneme reneme merged commit 1522871 into master May 18, 2022
@reneme reneme deleted the tls/timestamp_callback branch May 18, 2022 11:18
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.

2 participants