diff options
author | June McEnroe <june@causal.agency> | 2021-09-02 18:02:24 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2021-09-02 18:02:24 -0400 |
commit | 4c889ebf5d42ba8939e33c14a74b4552474587f4 (patch) | |
tree | eae014e2d394181e0d3ce98dc82d50526f230646 | |
parent | Read from /dev/urandom instead of using getentropy(3) (diff) | |
download | pounce-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.c | 4 |
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; |