From 5ab47e210de76d29cffbc9ea47800775a3627210 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sun, 24 Nov 2024 13:04:34 -0800 Subject: Remove the NNG_OPT_IPC_SECURITY_DESCRIPTOR option. This is now replaced with nng_listener_set_security_descriptor and nng_stream_listener_set_security_descriptor functions. We may elect to remove these entirely, but for named pipe users they are probably still quite useful. Moving towards UNIX domain sockets would obsolete this functionality. --- src/core/stream.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/core/stream.c') diff --git a/src/core/stream.c b/src/core/stream.c index d900329a..e46eb59a 100644 --- a/src/core/stream.c +++ b/src/core/stream.c @@ -279,6 +279,16 @@ nni_stream_listener_set_tls(nng_stream_listener *l, nng_tls_config *cfg) return (l->sl_set_tls(l, cfg)); } +int +nng_stream_listener_set_security_descriptor( + nng_stream_listener *l, void *pdesc) +{ + if (l->sl_set_security_descriptor == NULL) { + return (NNG_ENOTSUP); + } + return (l->sl_set_security_descriptor(l, pdesc)); +} + int nng_stream_listener_alloc_url(nng_stream_listener **lp, const nng_url *url) { -- cgit v1.2.3-70-g09d2