aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2025-10-05 07:19:24 -0700
committerGarrett D'Amore <garrett@damore.org>2025-10-05 07:19:24 -0700
commitbc2cbfea1ed4a5c6192cc86117dbc6d306b4fdaf (patch)
treec7307d91e0f62f77f3ab94f421672ed89fa54c74 /include
parentcfcc004cff8f6e11c545070ed0e9ba0253227e44 (diff)
downloadnng-bc2cbfea1ed4a5c6192cc86117dbc6d306b4fdaf.tar.gz
nng-bc2cbfea1ed4a5c6192cc86117dbc6d306b4fdaf.tar.bz2
nng-bc2cbfea1ed4a5c6192cc86117dbc6d306b4fdaf.zip
fixes #2158 Implement support for NNG_OPT_TLS_PEER_CN for WolfSSLwolf-peer-cn
This also provides an implementation for getting ALT names, although nothing uses that yet. We plan to provide a new certificate API to replace these with a nicer API, as obtaining the full list of certs may be unreasonable.
Diffstat (limited to 'include')
-rw-r--r--include/nng/nng.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/nng/nng.h b/include/nng/nng.h
index a71a3f53..2cbe675f 100644
--- a/include/nng/nng.h
+++ b/include/nng/nng.h
@@ -73,7 +73,7 @@ extern "C" {
// NNG_PROTOCOL_NUMBER is used by protocol headers to calculate their
// protocol number from a major and minor number. Applications should
// probably not need to use this.
-#define NNG_PROTOCOL_NUMBER(maj, min) (((x) *16) + (y))
+#define NNG_PROTOCOL_NUMBER(maj, min) (((x) * 16) + (y))
// Types common to nng.