diff options
| author | Garrett D'Amore <garrett@damore.org> | 2024-11-24 15:00:39 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2024-11-24 15:00:39 -0800 |
| commit | 2df4d2e814f34d8e1cc0816885543dbb568812cc (patch) | |
| tree | 1918f29e3037680e5cd3cdc377ff056f2f010de9 /src/supplemental/tls | |
| parent | 2afc725ff5a41fbc7445f3681e83cf579f13b578 (diff) | |
| download | nng-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/supplemental/tls')
| -rw-r--r-- | src/supplemental/tls/tls_common.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/supplemental/tls/tls_common.c b/src/supplemental/tls/tls_common.c index c3c4d3c3..c04d03a5 100644 --- a/src/supplemental/tls/tls_common.c +++ b/src/supplemental/tls/tls_common.c @@ -554,22 +554,6 @@ tls_get_peer_cn(void *arg, void *buf, size_t *szp, nni_type t) return (0); } -static int -tls_get_peer_alt_names(void *arg, void *buf, size_t *szp, nni_type t) -{ - NNI_ARG_UNUSED(szp); - - if (t != NNI_TYPE_POINTER) { - return (NNG_EBADTYPE); - } - - tls_conn *conn = arg; - nni_mtx_lock(&conn->lock); - *(char ***) buf = conn->ops.peer_alt_names((void *) (conn + 1)); - nni_mtx_unlock(&conn->lock); - return (0); -} - static const nni_option tls_options[] = { { .o_name = NNG_OPT_TLS_VERIFIED, @@ -580,10 +564,6 @@ static const nni_option tls_options[] = { .o_get = tls_get_peer_cn, }, { - .o_name = NNG_OPT_TLS_PEER_ALT_NAMES, - .o_get = tls_get_peer_alt_names, - }, - { .o_name = NULL, }, }; |
