[Openvpn-devel,08/14] Remove unused function tls_test_auth_deferred_interval

Message ID 20210401131337.3684-9-arne@rfc2549.org
State Accepted
Headers show
Series
  • Various clean up patches
Related show

Commit Message

Arne Schwabe April 1, 2021, 1:13 p.m.
This function appears to completely unused and has not been touched
since 2008.

Signed-off-by: Arne Schwabe <arne@rfc2549.org>
---
 src/openvpn/ssl.h | 11 -----------
 1 file changed, 11 deletions(-)

Comments

Gert Doering April 1, 2021, 1:54 p.m. | #1
Acked-by: Gert Doering <gert@greenie.muc.de>

"git grep" confirms

Your patch has been applied to the master branch.

commit c0b36e9f29c9849892909a7e377e13db6aa59f95
Author: Arne Schwabe
Date:   Thu Apr 1 15:13:31 2021 +0200

     Remove unused function tls_test_auth_deferred_interval

     Signed-off-by: Arne Schwabe <arne@rfc2549.org>
     Acked-by: Gert Doering <gert@greenie.muc.de>
     Message-Id: <20210401131337.3684-9-arne@rfc2549.org>
     URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg21949.html
     Signed-off-by: Gert Doering <gert@greenie.muc.de>


--
kind regards,

Gert Doering

Patch

diff --git a/src/openvpn/ssl.h b/src/openvpn/ssl.h
index 8c8cbe028..300a70d35 100644
--- a/src/openvpn/ssl.h
+++ b/src/openvpn/ssl.h
@@ -530,17 +530,6 @@  tls_initial_packet_received(const struct tls_multi *multi)
     return multi->n_sessions > 0;
 }
 
-static inline bool
-tls_test_auth_deferred_interval(const struct tls_multi *multi)
-{
-    if (multi)
-    {
-        const struct key_state *ks = &multi->session[TM_ACTIVE].key[KS_PRIMARY];
-        return now < ks->auth_deferred_expire;
-    }
-    return false;
-}
-
 static inline int
 tls_test_payload_len(const struct tls_multi *multi)
 {