From f11a6abe344447902c445d3a46f4cc6a3dfcfe8d Mon Sep 17 00:00:00 2001 From: Tobias Girstmair Date: Sat, 27 Apr 2024 12:41:11 +0200 Subject: [PATCH] document password and tls related flags --- ircpipe.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ircpipe.c b/ircpipe.c index 4deb42f..43b3d61 100644 --- a/ircpipe.c +++ b/ircpipe.c @@ -50,7 +50,7 @@ typedef struct { #define WRITE(sock, buf, sz) _IMPLFN(write, sock, buf, sz) void irc_help(const char *exe, const int code) { - fprintf(stderr, "Usage: %s [-n NICK] [-j CHAN] HOST [PORT]\n", exe); + fprintf(stderr, "Usage: %s [-pP] [-sSk] [-n NICK] [-j CHAN] HOST [PORT]\n", exe); exit(code); } @@ -85,7 +85,7 @@ sock_t irc_connect(const char *host, const char *port, const int tls, const char tls_config_insecure_noverifytime(cfg); tls_config_set_ciphers(cfg, "legacy"); /* even more: 'insecure' */ } - tls_config_set_dheparams(cfg, "auto") OR_DIE_tls(ctx); /* default is 'none' */ + tls_config_set_dheparams(cfg, "auto") OR_DIE_tls(ctx); if (ca_file) tls_config_set_ca_file(cfg, ca_file) OR_DIE_tls(ctx); /* todo: if ca_file ends in /, call tls_config_set_ca_path() instead */ /* todo: otherwise, set to tls_default_ca_cert_file() iff libtls (not libretls) */ -- 2.39.3