From ba7089994db09b33b22fefd3d0851b04c3bf38c8 Mon Sep 17 00:00:00 2001 From: Jon Shallow Date: Sat, 28 Dec 2019 16:58:51 +0000 Subject: [PATCH] coap-server: Correct man and help documentation Found when updating the coap-rd documentation. --- examples/coap-server.c | 4 ++-- man/coap-server.txt.in | 13 +++++-------- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/examples/coap-server.c b/examples/coap-server.c index 94274f26..c24c849f 100644 --- a/examples/coap-server.c +++ b/examples/coap-server.c @@ -894,7 +894,7 @@ usage( const char *program, const char *version) { "\t\t[-A address] [-N]\n" "\t\t[[-h hint] [-i match_identity_file] [-k key]\n" "\t\t[-s match_psk_sni_file]]\n" - "\t\t[[-c certfile] [-C cafile] [-n] [-R root_cafile]]\n" + "\t\t[[-c certfile] [-C cafile] [-n] [-R root_cafile]\n" "\t\t[-S match_pki_sni_file]]\n" "General Options\n" "\t-d max \t\tAllow dynamic creation of up to a total of max\n" @@ -909,7 +909,7 @@ usage( const char *program, const char *version) { "\t \t\t(for debugging only)\n" "\t-p port\t\tListen on specified port\n" "\t-v num \t\tVerbosity level (default 3, maximum is 9). Above 7,\n" - "\t \t\tthere is increased verbosity in GnuTLS logging\n" + "\t \t\tthere is increased verbosity in GnuTLS and OpenSSL logging\n" "\t-A address\tInterface address to bind to\n" "\t-N \t\tMake \"observe\" responses NON-confirmable. Even if set\n" "\t \t\tevery fifth response will still be sent as a confirmable\n" diff --git a/man/coap-server.txt.in b/man/coap-server.txt.in index 90687c31..6fbc2343 100644 --- a/man/coap-server.txt.in +++ b/man/coap-server.txt.in @@ -18,11 +18,8 @@ SYNOPSIS [*-A* address] [*-N*] [[*-h* hint] [*-i* match_identity_file] [*-k* key] [*-s* match_psk_sni_file]] - [[*-c* certfile] [*-n*] [*-C* cafile] [*-R* root_cafile]] - [*-S* match_pki_sni_file]] - [[*-k* key] [*-h* hint]] [[*-c* certfile] [*-n*] [*-C* cafile] [*-R* root_cafile] - [*-S* match_sni_file]] + [*-S* match_pki_sni_file]] DESCRIPTION ----------- @@ -57,11 +54,11 @@ OPTIONS - General The verbosity level to use (default 3, maximum is 9). Above 7, there is increased verbosity in GnuTLS and OpenSSL logging. -*-A* addr:: - The local address of the interface which the server has to listen. +*-A* address:: + The local address of the interface which the server has to listen on. *-N* :: - Send NON-confirmable message for \"observe\" responses. If option *-N* is + Send NON-confirmable message for "observe" responses. If option *-N* is not specified, a confirmable response will be sent. Even if set, every fifth response will still be sent as a confirmable response (RFC 7641 requirement). @@ -110,7 +107,7 @@ OPTIONS - PKI have the server support both PSK and PKI. *-n* :: - Disable the requirement for clients to have defined client certificates + Disable the requirement for clients to have defined client certificates. *-C* cafile:: PEM file containing the CA Certificate that was used to sign the certfile