From 1342d1b780501525534bcd167ea7fc1e4479d76d Mon Sep 17 00:00:00 2001 From: Marc Lasch Date: Mon, 8 Apr 2024 13:35:01 +0200 Subject: Add missing `nng_tls_config_hold` stub function Add the missing stub function implementation for `nng_tls_config_hold`. Fixes an error when loading the library and expecting to have this symbol available. The availability of the symbol can be checked with nm: ``` nm -D cmake-build-release/libnng.so.1.7.3 | grep nng_tls_config_hold ``` --- src/supplemental/tls/tls_common.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/supplemental/tls/tls_common.c b/src/supplemental/tls/tls_common.c index 9c556fd5..55fed7dc 100644 --- a/src/supplemental/tls/tls_common.c +++ b/src/supplemental/tls/tls_common.c @@ -1643,6 +1643,12 @@ nng_tls_config_alloc(nng_tls_config **cfgp, nng_tls_mode mode) return (NNG_ENOTSUP); } +void +nng_tls_config_hold(nng_tls_config *cfg) +{ + NNI_ARG_UNUSED(cfg); +} + void nng_tls_config_free(nng_tls_config *cfg) { -- cgit v1.2.3-70-g09d2