diff options
| author | Garrett D'Amore <garrett@damore.org> | 2025-10-19 10:40:26 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2025-10-19 19:16:30 -0700 |
| commit | 611c4acdddab9d702d235c2bcfe3b69002e93569 (patch) | |
| tree | 6a1065c07db8eb01cd4be0a436e9375ad3979b90 /src/core/defs.h | |
| parent | 29769c0c3623a023eb12edb378b19116f64ee5b7 (diff) | |
| download | nng-611c4acdddab9d702d235c2bcfe3b69002e93569.tar.gz nng-611c4acdddab9d702d235c2bcfe3b69002e93569.tar.bz2 nng-611c4acdddab9d702d235c2bcfe3b69002e93569.zip | |
Add support for OpenSSL v3.5 and newer.
We are *only* supporting 3.5 (or newer 3.x releases) as its the newest LTS version of OpenSSL.
This supports the full set of TLS features with NNG, including DTLS, PSK, TLS 1.3, etc.
Future work will explore making using of the QUIC support in OpenSSL.
Note that this OpenSSL work sits on top of NNG's TCP streams, so it cannot benefit from
Linux in-kernel TLS or other features such as TCP fast open at this time.
Diffstat (limited to 'src/core/defs.h')
| -rw-r--r-- | src/core/defs.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/defs.h b/src/core/defs.h index c94d9bd3..0ca885b3 100644 --- a/src/core/defs.h +++ b/src/core/defs.h @@ -261,4 +261,11 @@ extern void *nni_zalloc(size_t); // Most implementations can just call free() here. extern void nni_free(void *, size_t); +// nni_inet_ntop is like inet_ntop, but for NNG_AF_INET and NNG_AF_INET6. The +// output buffer must be able to contain at least 46 bytes. Note that +// NNG_AF_UNSPEC is explicitly unsupported, as we do not pass the address +// length. +extern char *nni_inet_ntop( + enum nng_sockaddr_family af, const uint8_t *addr, char *buf); + #endif // CORE_DEFS_H |
