From 2df4d2e814f34d8e1cc0816885543dbb568812cc Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sun, 24 Nov 2024 15:00:39 -0800 Subject: Remove all the get_ptr option accessors. Temporarily we have removed access to the peer alt names, but that was never used and was not tested (it also didn't work with WolfSSL.) --- src/core/options.c | 24 ------------------------ 1 file changed, 24 deletions(-) (limited to 'src/core/options.c') diff --git a/src/core/options.c b/src/core/options.c index fabd55fa..1540a807 100644 --- a/src/core/options.c +++ b/src/core/options.c @@ -88,19 +88,6 @@ nni_copyin_size( return (0); } -int -nni_copyin_ptr(void **pp, const void *v, size_t sz, nni_type t) -{ - NNI_ARG_UNUSED(sz); - - if (t != NNI_TYPE_POINTER) { - return (NNG_EBADTYPE); - } - - *pp = *(void **) v; - return (0); -} - int nni_copyin_str(char *s, const void *v, size_t maxsz, nni_type t) { @@ -173,17 +160,6 @@ nni_copyout_ms(nng_duration d, void *dst, size_t *szp, nni_type t) return (0); } -int -nni_copyout_ptr(void *p, void *dst, size_t *szp, nni_type t) -{ - NNI_ARG_UNUSED(szp); - if (t != NNI_TYPE_POINTER) { - return (NNG_EBADTYPE); - } - *(void **) dst = p; - return (0); -} - int nni_copyout_size(size_t s, void *dst, size_t *szp, nni_type t) { -- cgit v1.2.3-70-g09d2