From 8892087e9949ef2aa215b27ae9df9789a4df1c70 Mon Sep 17 00:00:00 2001 From: Jim Garlick Date: Mon, 24 Apr 2017 14:57:15 -0700 Subject: [PATCH] gssapi: add NAMETYPE options to zmq_getsockopt Problem: GSSAPI NAMETYPE options were added to zmq_setsockopt() but not zmq_getsockopt(). Add them to zmq_getsockopt(). --- src/options.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/options.cpp b/src/options.cpp index c8154959..3c702df4 100644 --- a/src/options.cpp +++ b/src/options.cpp @@ -965,6 +965,20 @@ int zmq::options_t::getsockopt (int option_, void *optval_, size_t *optvallen_) return 0; } break; +#ifdef ZMQ_BUILD_DRAFT_API + case ZMQ_GSSAPI_PRINCIPAL_NAMETYPE: + if (is_int) { + *value = gss_principal_nt; + return 0; + } + break; + case ZMQ_GSSAPI_SERVICE_PRINCIPAL_NAMETYPE: + if (is_int) { + *value = gss_service_principal_nt; + return 0; + } + break; +#endif #endif case ZMQ_HANDSHAKE_IVL: