Skip to contentSkip to conversation

cleanup: remove #if 0'ed function initiate_untrusted_session() from ssl.c.

PATCH In review Steffan Karger 2 participants 2 messages Jul 2, 2014 – Jul 3, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cleanup: remove #if 0'ed function initiate_untrusted_session() from ssl.c.

Has been inside the #if 0 since 'git tree epoch' (sept-2005) and was not referenced, from either code, nor dead code nor comment.

---
 src/openvpn/ssl.c | 16 ----------------
 1 file changed, 16 deletions(-)
src/openvpn/ssl.c +0 -16
index 95bbb27..3ce1f60 100644
@@ -996,22 +996,6 @@ reset_session (struct tls_multi *multi, struct tls_session *session)
   tls_session_init (multi, session);
 }
 
-#if 0
-/*
- * Transmit a TLS reset on our untrusted channel.
- */
-static void
-initiate_untrusted_session (struct tls_multi *multi, struct sockaddr_in *to)
-{
-  struct tls_session *session = &multi->session[TM_UNTRUSTED];
-  struct key_state *ks = &session->key[KS_PRIMARY];
-
-  reset_session (multi, session);
-  ks->remote_addr = *to;
-  msg (D_TLS_DEBUG_LOW, "TLS: initiate_untrusted_session: addr=%s", print_sockaddr (to));
-}
-#endif
-
 /*
  * Used to determine in how many seconds we should be
  * called again.
Signature · 1 line
1.9.1
#1 lore raw

Your patch has been applied to the master branch.

commit e6b5755c381923bb4d225bda1f1747415a29341d

Author: Steffan Karger
Date:   Wed Jul 2 23:31:28 2014 +0200
     cleanup: remove #if 0'ed function initiate_untrusted_session() from ssl.c.

     Signed-off-by: Steffan Karger <[email protected]...>
     Acked-by: Gert Doering <[email protected]...>
     Message-Id: <[email protected]...>
     Signed-off-by: Gert Doering <[email protected]...>

--
kind regards,

Gert Doering