aboutsummaryrefslogtreecommitdiff
path: root/docs/man/nng_ws.7.adoc
diff options
context:
space:
mode:
authorChristian Fischbach <me@cfish.de>2023-02-09 00:48:17 +0100
committerGitHub <noreply@github.com>2023-02-08 19:48:17 -0400
commit8e1836f57e8bcdb228dd5baadc71dfbf30b544e0 (patch)
tree39ac5b8be89ee83dec8096cd775d122585cb5f31 /docs/man/nng_ws.7.adoc
parent481436f374732f04cc328ecb9d07bc9d9d324043 (diff)
downloadnng-8e1836f57e8bcdb228dd5baadc71dfbf30b544e0.tar.gz
nng-8e1836f57e8bcdb228dd5baadc71dfbf30b544e0.tar.bz2
nng-8e1836f57e8bcdb228dd5baadc71dfbf30b544e0.zip
Get common name and subject alternative names of peer certificate (#1617)
Co-authored-by: Christian Fischbach <cfischbach@mac.com>
Diffstat (limited to 'docs/man/nng_ws.7.adoc')
-rw-r--r--docs/man/nng_ws.7.adoc9
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/man/nng_ws.7.adoc b/docs/man/nng_ws.7.adoc
index 349955b1..171ec934 100644
--- a/docs/man/nng_ws.7.adoc
+++ b/docs/man/nng_ws.7.adoc
@@ -199,6 +199,15 @@ more details.
authentication.
May return incorrect results if peer authentication is disabled.
+`NNG_OPT_TLS_PEER_CN`::
+(string) This read-only option returns the common name of the peer certificate.
+May return incorrect results if peer authentication is disabled.
+
+`NNG_OPT_TLS_PEER_ALT_NAMES`::
+(string list) returns string list with the subject alternative names of the
+peer certificate. May return incorrect results if peer authentication
+is disabled.
+
// We should also look at a hook mechanism for listeners. Probably this could
// look like NNG_OPT_WS_LISTEN_HOOK_FUNC which would take a function pointer
// along the lines of int hook(void *, char *req_headers, char **res_headers),