From cee0628e0d53be82bd644ce258c3d3e90e64eced Mon Sep 17 00:00:00 2001 From: Jairus Christensen Date: Mon, 27 Feb 2023 09:36:15 -0700 Subject: [feat] SSL RTT in both client and server statem. SSL_get_handshake_rtt makes it available Reviewed-by: Tomas Mraz Reviewed-by: David von Oheimb (Merged from https://github.com/openssl/openssl/pull/20248) --- ssl/ssl_local.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ssl/ssl_local.h') 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; -- cgit v1.2.3