Go to the documentation of this file.
3 #ifndef __TESTUTIL_SECURITY_HPP_INCLUDED__
4 #define __TESTUTIL_SECURITY_HPP_INCLUDED__
67 const char *expected_routing_id_ =
"IDENT");
75 #define assert_no_more_monitor_events_with_timeout(monitor, timeout) \
77 int event_count = 0; \
79 while ((event = get_monitor_event_with_timeout ((monitor), &err, NULL, \
82 if (event == ZMQ_EVENT_HANDSHAKE_FAILED_NO_DETAIL \
83 && (err == EPIPE || err == ECONNRESET \
84 || err == ECONNABORTED)) { \
86 "Ignored event (skipping any further events): %x " \
87 "(err = %i == %s)\n", \
88 event, err, zmq_strerror (err)); \
93 print_unexpected_event_stderr (event, err, 0, 0); \
95 TEST_ASSERT_EQUAL_INT (0, event_count); \
107 const char *routing_id_ =
"IDENT");
113 bool zap_handler_stopped_ =
false);
117 void *socket_config_data_,
118 void **client_mon_ =
NULL);
123 void *socket_config_data_,
124 void **client_mon_ =
NULL,
125 int expected_client_event_ = 0,
126 int expected_client_value_ = 0);
void() socket_config_fn(void *, void *)
void expect_new_client_bounce_fail(char *my_endpoint_, void *server_, socket_config_fn socket_config_, void *socket_config_data_, void **client_mon_=NULL, int expected_client_event_=0, int expected_client_value_=0)
@ zap_status_internal_error
const char * client_public
char valid_client_secret[41]
void setup_context_and_server_side(void **zap_control_, void **zap_thread_, void **server_, void **server_mon_, char *my_endpoint_, zmq_thread_fn zap_handler_=&zap_handler, socket_config_fn socket_config_=&socket_config_curve_server, void *socket_config_data_=valid_server_secret, const char *routing_id_="IDENT")
const char * server_public
char valid_client_public[41]
void() zmq_thread_fn(void *)
void zap_handler_generic(zap_protocol_t zap_protocol_, const char *expected_routing_id_="IDENT")
char valid_server_public[41]
char valid_server_secret[41]
void * create_and_connect_client(char *my_endpoint_, socket_config_fn socket_config_, void *socket_config_data_, void **client_mon_=NULL)
@ zap_status_temporary_failure
typedef void(APIENTRY *GLDEBUGPROCARB)(GLenum source
void socket_config_plain_client(void *server_, void *server_secret_)
void setup_testutil_security_curve()
void shutdown_context_and_server_side(void *zap_thread_, void *server_, void *server_mon_, void *zap_control_, bool zap_handler_stopped_=false)
void socket_config_null_client(void *server_, void *server_secret_)
void socket_config_curve_client(void *client_, void *data_)
void socket_config_null_server(void *server_, void *server_secret_)
void socket_config_plain_server(void *server_, void *server_secret_)
const char * client_secret
void * zap_requests_handled
void socket_config_curve_server(void *server_, void *server_secret_)
libaditof
Author(s):
autogenerated on Wed May 21 2025 02:06:59