about summary refs log tree commit diff
path: root/bounce.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-08-10 13:40:41 -0400
committerJune McEnroe <june@causal.agency>2020-08-10 13:40:41 -0400
commita93b549b59ba7edf588468a9144bd969bc594e92 (patch)
tree4144d69b0f5e6474ac4c2cc137d8ce7e521984d1 /bounce.c
parentUse system libcrypto and openssl bin on FreeBSD (diff)
downloadpounce-a93b549b59ba7edf588468a9144bd969bc594e92.tar.gz
pounce-a93b549b59ba7edf588468a9144bd969bc594e92.zip
Refactor clientCA and clientSTS as clientCaps
Diffstat (limited to '')
-rw-r--r--bounce.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bounce.c b/bounce.c
index 682e2db..8f8d38f 100644
--- a/bounce.c
+++ b/bounce.c
@@ -351,7 +351,7 @@ int main(int argc, char *argv[]) {
 	for (int opt; 0 < (opt = getopt_config(argc, argv, opts, options, NULL));) {
 		switch (opt) {
 			break; case '!': insecure = true;
-			break; case 'A': clientCA = true; caPath = optarg;
+			break; case 'A': caPath = optarg; clientCaps |= CapSASL;
 			break; case 'C': snprintf(certPath, sizeof(certPath), "%s", optarg);
 			break; case 'H': bindHost = optarg;
 			break; case 'K': snprintf(privPath, sizeof(privPath), "%s", optarg);
@@ -360,7 +360,7 @@ int main(int argc, char *argv[]) {
 			break; case 'Q': serverQueueInterval = parseInterval(optarg);
 			break; case 'R': blindReq |= capParse(optarg, NULL);
 			break; case 'S': serverBindHost = optarg;
-			break; case 'T': clientSTS = false;
+			break; case 'T': clientCaps &= ~CapSTS;
 			break; case 'U': snprintf(bindPath, sizeof(bindPath), "%s", optarg);
 			break; case 'W': clientPass = optarg;
 			break; case 'a': blindReq |= CapSASL; plain = optarg;