From a978f75d8213951a25fb70f25e2f3d648d25b4d2 Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Tue, 24 Mar 2020 06:43:31 +0000
Subject: [PATCH] Add BINKPS (Implicit TLS) BinkP toggle option for linked
 nodes.

---
 src/sbbs3/echocfg.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/src/sbbs3/echocfg.c b/src/sbbs3/echocfg.c
index d3620348ea..62204b5f0d 100644
--- a/src/sbbs3/echocfg.c
+++ b/src/sbbs3/echocfg.c
@@ -445,6 +445,7 @@ void binkp_settings(nodecfg_t* node)
 		}
 		sprintf(opt[i++], "%-20s %s", "Authentication", auth);
 		sprintf(opt[i++], "%-20s %s", "Encryption", crypt);
+		sprintf(opt[i++], "%-20s %s", "Implicit TLS", node->binkp_tls ? "Yes" : "No");
 		sprintf(opt[i++], "%-20s %s", "Source Address", node->binkp_src);
 		opt[i][0]=0;
 		char title[128];
@@ -476,6 +477,9 @@ void binkp_settings(nodecfg_t* node)
 			"    sessions will be supported.\n"
 			"    CRAM-MD5 authentication `must` be used when encrypting BinkP sessions.\n"
 			"\n"
+			"`Implicit TLS` defines whether or not to use `BINKPS` when connecting\n"
+			"    (outbound) with this linked node.\n"
+			"\n"
 			"`Source Address` allows you to override the source FTN address used\n"
 			"    with outgoing BinkP mailer sessions with this linked node.\n"
 			"    Normally, this setting is left blank (not set).\n"
@@ -561,6 +565,14 @@ void binkp_settings(nodecfg_t* node)
 				}
 				break;
 			case 5:
+				k = !node->binkp_tls;
+				switch(uifc.list(WIN_MID|WIN_SAV,0,0,0,&k,0
+					,"Use BINKPS (Implicit TLS) Connections with This Node",uifcYesNoOpts)) {
+					case 0:	node->binkp_tls = true;		uifc.changes=TRUE; break;
+					case 1:	node->binkp_tls = false;	uifc.changes=TRUE; break;
+				}
+				break;
+			case 6:
 				uifc.helpbuf=
 				"~ Source Address ~\n\n"
 				"This is the FidoNet style address to use as the source address when\n"
-- 
GitLab