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/nng.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/nng.c') diff --git a/src/nng.c b/src/nng.c index 70fbbe19..872f15b9 100644 --- a/src/nng.c +++ b/src/nng.c @@ -1023,6 +1023,19 @@ nng_listener_set_tls(nng_listener id, nng_tls_config *cfg) return (rv); } +int +nng_listener_set_security_descriptor(nng_listener id, void *cfg) +{ + int rv; + nni_listener *l; + if ((rv = nni_listener_find(&l, id.id)) != 0) { + return (rv); + } + rv = nni_listener_set_security_descriptor(l, cfg); + nni_listener_rele(l); + return (rv); +} + int nng_dialer_get_url(nng_dialer id, const nng_url **urlp) { -- cgit v1.2.3-70-g09d2