summaryrefslogtreecommitdiffstats
path: root/ssl/ssl_local.h
diff options
context:
space:
mode:
authorJairus Christensen <christensenjairus@gmail.com>2023-02-27 17:36:15 +0100
committerDr. David von Oheimb <dev@ddvo.net>2023-06-02 05:46:46 +0200
commitcee0628e0d53be82bd644ce258c3d3e90e64eced (patch)
treecec946b10eae236d4d425397a2512ab1cb25e8b6 /ssl/ssl_local.h
parentAvoid taking a write lock in ossl_provider_doall_activated() (diff)
downloadopenssl-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.h3
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;