mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-12 18:40:27 +01:00
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().
This commit is contained in:
parent
9fbf2e2eb6
commit
8892087e99
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user