diff options
author | Jairus Christensen <christensenjairus@gmail.com> | 2023-02-27 17:36:15 +0100 |
---|---|---|
committer | Dr. David von Oheimb <dev@ddvo.net> | 2023-06-02 05:46:46 +0200 |
commit | cee0628e0d53be82bd644ce258c3d3e90e64eced (patch) | |
tree | cec946b10eae236d4d425397a2512ab1cb25e8b6 /ssl/ssl_local.h | |
parent | Avoid taking a write lock in ossl_provider_doall_activated() (diff) | |
download | openssl-cee0628e0d53be82bd644ce258c3d3e90e64eced.tar.xz openssl-cee0628e0d53be82bd644ce258c3d3e90e64eced.zip |
[feat] SSL RTT in both client and server statem. SSL_get_handshake_rtt makes it available
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: David von Oheimb <david.von.oheimb@siemens.com>
(Merged from https://github.com/openssl/openssl/pull/20248)
Diffstat (limited to 'ssl/ssl_local.h')
-rw-r--r-- | ssl/ssl_local.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ssl/ssl_local.h b/ssl/ssl_local.h index 69a578dc5c..7ab84acc80 100644 --- a/ssl/ssl_local.h +++ b/ssl/ssl_local.h @@ -1249,6 +1249,9 @@ struct ssl_connection_st { int quiet_shutdown; /* we have shut things down, 0x01 sent, 0x02 for received */ int shutdown; + /* Timestamps used to calculate the handshake RTT */ + OSSL_TIME ts_msg_write; + OSSL_TIME ts_msg_read; /* where we are */ OSSL_STATEM statem; SSL_EARLY_DATA_STATE early_data_state; |