about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-09-02 18:02:24 -0400
committerJune McEnroe <june@causal.agency>2021-09-02 18:02:24 -0400
commit4c889ebf5d42ba8939e33c14a74b4552474587f4 (patch)
treeeae014e2d394181e0d3ce98dc82d50526f230646
parentRead from /dev/urandom instead of using getentropy(3) (diff)
downloadpounce-4c889ebf5d42ba8939e33c14a74b4552474587f4.tar.gz
pounce-4c889ebf5d42ba8939e33c14a74b4552474587f4.zip
Call serverConfig() with NULLs for -o
Always use insecure, and trust, clientCert, clientPriv are irrelevant
for printing the remote certificate.
Diffstat (limited to '')
-rw-r--r--bounce.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bounce.c b/bounce.c
index af7f510..ba5ec1d 100644
--- a/bounce.c
+++ b/bounce.c
@@ -290,7 +290,7 @@ int main(int argc, char *argv[]) {
 			break; case 'k': clientPriv = optarg;
 			break; case 'm': mode = optarg;
 			break; case 'n': nick = optarg;
-			break; case 'o': insecure = true; printCert = true;
+			break; case 'o': printCert = true;
 			break; case 'p': port = optarg;
 			break; case 'q': quit = optarg;
 			break; case 'r': real = optarg;
@@ -359,7 +359,7 @@ int main(int argc, char *argv[]) {
 #endif
 
 	if (printCert) {
-		serverConfig(insecure, trust, clientCert, clientPriv);
+		serverConfig(true, NULL, NULL, NULL);
 		serverConnect(serverBindHost, host, port);
 		serverPrintCert();
 		return EX_OK;
.1p1 3.3.1p1June McEnroe 2021-03-05build: Add OpenSSL includes to libcompatJune McEnroe 2020-12-15Import LibreSSL 3.3.1June McEnroe 2020-11-24Import LibreSSL 3.3.0June McEnroe 2020-10-22Import LibreSSL 3.2.2June McEnroe 2020-09-29Import LibreSSL 3.2.1June McEnroe 2020-09-29import: Add m4/ax_add_fortify_source.m4June McEnroe 2020-08-05build: Add README.7 to EXTRA_DIST 3.2.0June McEnroe 2020-08-03doc: Indicate that only OpenSSL 1.1.1b and newer workJune McEnroe