aboutsummaryrefslogtreecommitdiff
path: root/src/core/options.c
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2024-11-24 15:00:39 -0800
committerGarrett D'Amore <garrett@damore.org>2024-11-24 15:00:39 -0800
commit2df4d2e814f34d8e1cc0816885543dbb568812cc (patch)
tree1918f29e3037680e5cd3cdc377ff056f2f010de9 /src/core/options.c
parent2afc725ff5a41fbc7445f3681e83cf579f13b578 (diff)
downloadnng-2df4d2e814f34d8e1cc0816885543dbb568812cc.tar.gz
nng-2df4d2e814f34d8e1cc0816885543dbb568812cc.tar.bz2
nng-2df4d2e814f34d8e1cc0816885543dbb568812cc.zip
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.)
Diffstat (limited to 'src/core/options.c')
-rw-r--r--src/core/options.c24
1 files changed, 0 insertions, 24 deletions
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
@@ -89,19 +89,6 @@ nni_copyin_size(
}
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)
{
size_t z;
@@ -174,17 +161,6 @@ nni_copyout_ms(nng_duration d, void *dst, size_t *szp, nni_type t)
}
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)
{
NNI_ARG_UNUSED(szp);