mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-12 10:33:52 +01:00
Problem: ZMQ_MSG_GSSAPI_* have met STABLE conditions
Solution: move them from DRAFT to STABLE since it's been in a public release, committed for 6+ months and has not changed.
This commit is contained in:
parent
a4b74a7b05
commit
374da4207b
7
NEWS
7
NEWS
@ -4,6 +4,13 @@
|
||||
* The following DRAFT APIs have been marked as STABLE and will not change
|
||||
anymore:
|
||||
- ZMQ_MSG_T_SIZE context option (see doc/zmq_ctx_get.txt)
|
||||
- ZMQ_GSSAPI_PRINCIPAL_NAMETYPE and ZMQ_GSSAPI_SERVICE_PRINCIPAL_NAMETYPE
|
||||
socket options, for the corresponding GSSAPI features. Additional
|
||||
definitions for principal name types:
|
||||
- ZMQ_GSSAPI_NT_HOSTBASED
|
||||
- ZMQ_GSSAPI_NT_USER_NAME
|
||||
- ZMQ_GSSAPI_NT_KRB5_PRINCIPAL
|
||||
See doc/zmq_gssapi.txt for details.
|
||||
|
||||
|
||||
0MQ version 4.2.4 stable, released on 2018/03/21
|
||||
|
@ -373,6 +373,8 @@ ZMQ_EXPORT const char *zmq_msg_gets (const zmq_msg_t *msg,
|
||||
#define ZMQ_VMCI_BUFFER_MAX_SIZE 87
|
||||
#define ZMQ_VMCI_CONNECT_TIMEOUT 88
|
||||
#define ZMQ_USE_FD 89
|
||||
#define ZMQ_GSSAPI_PRINCIPAL_NAMETYPE 90
|
||||
#define ZMQ_GSSAPI_SERVICE_PRINCIPAL_NAMETYPE 91
|
||||
|
||||
/* Message options */
|
||||
#define ZMQ_MORE 1
|
||||
@ -407,6 +409,15 @@ ZMQ_EXPORT const char *zmq_msg_gets (const zmq_msg_t *msg,
|
||||
/* Deprecated Message options */
|
||||
#define ZMQ_SRCFD 2
|
||||
|
||||
/******************************************************************************/
|
||||
/* GSSAPI definitions */
|
||||
/******************************************************************************/
|
||||
|
||||
/* GSSAPI principal name types */
|
||||
#define ZMQ_GSSAPI_NT_HOSTBASED 0
|
||||
#define ZMQ_GSSAPI_NT_USER_NAME 1
|
||||
#define ZMQ_GSSAPI_NT_KRB5_PRINCIPAL 2
|
||||
|
||||
/******************************************************************************/
|
||||
/* 0MQ socket events and monitoring */
|
||||
/******************************************************************************/
|
||||
@ -581,8 +592,6 @@ ZMQ_EXPORT void zmq_threadclose (void *thread);
|
||||
#define ZMQ_DGRAM 18
|
||||
|
||||
/* DRAFT Socket options. */
|
||||
#define ZMQ_GSSAPI_PRINCIPAL_NAMETYPE 90
|
||||
#define ZMQ_GSSAPI_SERVICE_PRINCIPAL_NAMETYPE 91
|
||||
#define ZMQ_BINDTODEVICE 92
|
||||
#define ZMQ_ZAP_ENFORCE_DOMAIN 93
|
||||
#define ZMQ_LOOPBACK_FASTPATH 94
|
||||
@ -713,15 +722,6 @@ ZMQ_EXPORT int zmq_timers_reset (void *timers, int timer_id);
|
||||
ZMQ_EXPORT long zmq_timers_timeout (void *timers);
|
||||
ZMQ_EXPORT int zmq_timers_execute (void *timers);
|
||||
|
||||
/******************************************************************************/
|
||||
/* GSSAPI definitions */
|
||||
/******************************************************************************/
|
||||
|
||||
/* GSSAPI principal name types */
|
||||
#define ZMQ_GSSAPI_NT_HOSTBASED 0
|
||||
#define ZMQ_GSSAPI_NT_USER_NAME 1
|
||||
#define ZMQ_GSSAPI_NT_KRB5_PRINCIPAL 2
|
||||
|
||||
#endif // ZMQ_BUILD_DRAFT_API
|
||||
|
||||
|
||||
|
@ -51,8 +51,6 @@ unsigned long zmq_stopwatch_intermediate (void *watch_);
|
||||
#define ZMQ_DGRAM 18
|
||||
|
||||
/* DRAFT Socket options. */
|
||||
#define ZMQ_GSSAPI_PRINCIPAL_NAMETYPE 90
|
||||
#define ZMQ_GSSAPI_SERVICE_PRINCIPAL_NAMETYPE 91
|
||||
#define ZMQ_BINDTODEVICE 92
|
||||
#define ZMQ_ZAP_ENFORCE_DOMAIN 93
|
||||
#define ZMQ_LOOPBACK_FASTPATH 94
|
||||
@ -176,15 +174,6 @@ int zmq_timers_reset (void *timers, int timer_id);
|
||||
long zmq_timers_timeout (void *timers);
|
||||
int zmq_timers_execute (void *timers);
|
||||
|
||||
/******************************************************************************/
|
||||
/* GSSAPI definitions */
|
||||
/******************************************************************************/
|
||||
|
||||
/* GSSAPI principal name types */
|
||||
#define ZMQ_GSSAPI_NT_HOSTBASED 0
|
||||
#define ZMQ_GSSAPI_NT_USER_NAME 1
|
||||
#define ZMQ_GSSAPI_NT_KRB5_PRINCIPAL 2
|
||||
|
||||
#endif // ZMQ_BUILD_DRAFT_API
|
||||
|
||||
#endif //ifndef __ZMQ_DRAFT_H_INCLUDED__
|
||||
|
@ -156,12 +156,10 @@ void test_valid_creds (void *ctx,
|
||||
assert (rc == 0);
|
||||
rc = zmq_setsockopt (client, ZMQ_GSSAPI_PRINCIPAL, name, strlen (name) + 1);
|
||||
assert (rc == 0);
|
||||
#ifdef ZMQ_BUILD_DRAFT_API
|
||||
int name_type = ZMQ_GSSAPI_NT_HOSTBASED;
|
||||
rc = zmq_setsockopt (client, ZMQ_GSSAPI_PRINCIPAL_NAMETYPE, &name_type,
|
||||
sizeof (name_type));
|
||||
assert (rc == 0);
|
||||
#endif
|
||||
rc = zmq_connect (client, endpoint);
|
||||
assert (rc == 0);
|
||||
|
||||
@ -190,12 +188,10 @@ void test_unauth_creds (void *ctx,
|
||||
assert (rc == 0);
|
||||
rc = zmq_setsockopt (client, ZMQ_GSSAPI_PRINCIPAL, name, strlen (name) + 1);
|
||||
assert (rc == 0);
|
||||
#ifdef ZMQ_BUILD_DRAFT_API
|
||||
int name_type = ZMQ_GSSAPI_NT_HOSTBASED;
|
||||
rc = zmq_setsockopt (client, ZMQ_GSSAPI_PRINCIPAL_NAMETYPE, &name_type,
|
||||
sizeof (name_type));
|
||||
assert (rc == 0);
|
||||
#endif
|
||||
zap_deny_all = 1;
|
||||
rc = zmq_connect (client, endpoint);
|
||||
assert (rc == 0);
|
||||
@ -316,12 +312,10 @@ int main (void)
|
||||
assert (rc == 0);
|
||||
rc = zmq_setsockopt (server, ZMQ_GSSAPI_PRINCIPAL, name, strlen (name) + 1);
|
||||
assert (rc == 0);
|
||||
#ifdef ZMQ_BUILD_DRAFT_API
|
||||
int name_type = ZMQ_GSSAPI_NT_HOSTBASED;
|
||||
rc = zmq_setsockopt (server, ZMQ_GSSAPI_PRINCIPAL_NAMETYPE, &name_type,
|
||||
sizeof (name_type));
|
||||
assert (rc == 0);
|
||||
#endif
|
||||
rc = zmq_bind (server, "tcp://127.0.0.1:*");
|
||||
assert (rc == 0);
|
||||
rc = zmq_getsockopt (server, ZMQ_LAST_ENDPOINT, my_endpoint, &len);
|
||||
|
Loading…
Reference in New Issue
Block a user