test_security_zap.cpp
Go to the documentation of this file.
1 /* SPDX-License-Identifier: MPL-2.0 */
2 
3 #include "testutil_security.hpp"
4 #include "testutil_unity.hpp"
5 
7 
8 static void zap_handler_wrong_version (void * /*unused_*/)
9 {
11 }
12 
13 static void zap_handler_wrong_request_id (void * /*unused_*/)
14 {
16 }
17 
18 static void zap_handler_wrong_status_invalid (void * /*unused_*/)
19 {
21 }
22 
23 static void zap_handler_wrong_status_temporary_failure (void * /*unused_*/)
24 {
26 }
27 
28 static void zap_handler_wrong_status_internal_error (void * /*unused_*/)
29 {
31 }
32 
33 static void zap_handler_too_many_parts (void * /*unused_*/)
34 {
36 }
37 
38 static void zap_handler_disconnect (void * /*unused_*/)
39 {
41 }
42 
43 static void zap_handler_do_not_recv (void * /*unused_*/)
44 {
46 }
47 
48 static void zap_handler_do_not_send (void * /*unused_*/)
49 {
51 }
52 
54  char *my_endpoint_,
55  void *server_,
56  socket_config_fn socket_config_,
57  void *socket_config_data_,
58  void **client_mon_,
59  void *server_mon_,
60  int expected_server_event_,
61  int expected_server_value_,
62  int expected_client_event_ = 0,
63  int expected_client_value_ = 0)
64 {
66  my_endpoint_, server_, socket_config_, socket_config_data_, client_mon_,
67  expected_client_event_, expected_client_value_);
68 
69  int events_received = 0;
70  events_received = expect_monitor_event_multiple (
71  server_mon_, expected_server_event_, expected_server_value_);
72 
73  return events_received;
74 }
75 
76 void test_zap_unsuccessful (char *my_endpoint_,
77  void *server_,
78  void *server_mon_,
79  int expected_server_event_,
80  int expected_server_value_,
81  socket_config_fn socket_config_,
82  void *socket_config_data_,
83  void **client_mon_ = NULL,
84  int expected_client_event_ = 0,
85  int expected_client_value_ = 0)
86 {
87  int server_events_received =
89  my_endpoint_, server_, socket_config_, socket_config_data_, client_mon_,
90  server_mon_, expected_server_event_, expected_server_value_,
91  expected_client_event_, expected_client_value_);
92 
93  // there may be more than one ZAP request due to repeated attempts by the
94  // client (actually only in case if ZAP status code 300)
95  TEST_ASSERT_TRUE (server_events_received == 0
97 }
98 
99 void test_zap_unsuccessful_no_handler (char *my_endpoint_,
100  void *server_,
101  void *server_mon_,
102  int expected_event_,
103  int expected_err_,
104  socket_config_fn socket_config_,
105  void *socket_config_data_,
106  void **client_mon_ = NULL)
107 {
108  const int events_received =
110  my_endpoint_, server_, socket_config_, socket_config_data_, client_mon_,
111  server_mon_, expected_event_, expected_err_);
112 
113  // there may be more than one ZAP request due to repeated attempts by the
114  // client
115  TEST_ASSERT_GREATER_THAN_INT (0, events_received);
116 }
117 
118 void test_zap_protocol_error (char *my_endpoint_,
119  void *server_,
120  void *server_mon_,
121  socket_config_fn socket_config_,
122  void *socket_config_data_,
123  int expected_error_)
124 {
125  test_zap_unsuccessful (my_endpoint_, server_, server_mon_,
126  ZMQ_EVENT_HANDSHAKE_FAILED_PROTOCOL, expected_error_,
127  socket_config_, socket_config_data_);
128 }
129 
130 void test_zap_unsuccessful_status_300 (char *my_endpoint_,
131  void *server_,
132  void *server_mon_,
133  socket_config_fn client_socket_config_,
134  void *client_socket_config_data_)
135 {
136  void *client_mon;
138  my_endpoint_, server_, server_mon_, ZMQ_EVENT_HANDSHAKE_FAILED_AUTH, 300,
139  client_socket_config_, client_socket_config_data_, &client_mon);
140 
141  // we can use a 0 timeout here, since the client socket is already closed
143 
144  test_context_socket_close (client_mon);
145 }
146 
147 void test_zap_unsuccessful_status_500 (char *my_endpoint_,
148  void *server_,
149  void *server_mon_,
150  socket_config_fn client_socket_config_,
151  void *client_socket_config_data_)
152 {
153  test_zap_unsuccessful (my_endpoint_, server_, server_mon_,
155  client_socket_config_, client_socket_config_data_,
157 }
158 
159 static void
161  socket_config_fn client_socket_config_,
162  void *client_socket_config_data_,
163  void *server_socket_config_data_,
164  zmq_thread_fn zap_handler_,
165  int expected_failure_)
166 {
167  void *handler, *zap_thread, *server, *server_mon;
169 
171  &handler, &zap_thread, &server, &server_mon, my_endpoint, zap_handler_,
172  server_socket_config_, server_socket_config_data_);
174  client_socket_config_, client_socket_config_data_,
175  expected_failure_);
177 }
178 
179 static void
181  socket_config_fn client_socket_config_,
182  void *client_socket_config_data_,
183  void *server_socket_config_data_)
184 {
186  server_socket_config_, client_socket_config_, client_socket_config_data_,
187  server_socket_config_data_, &zap_handler_wrong_version,
189 }
190 
192  socket_config_fn server_socket_config_,
193  socket_config_fn client_socket_config_,
194  void *client_socket_config_data_,
195  void *server_socket_config_data_)
196 {
198  server_socket_config_, client_socket_config_, client_socket_config_data_,
199  server_socket_config_data_, &zap_handler_wrong_request_id,
201 }
202 
204  socket_config_fn server_socket_config_,
205  socket_config_fn client_socket_config_,
206  void *client_socket_config_data_,
207  void *server_socket_config_data_)
208 {
210  server_socket_config_, client_socket_config_, client_socket_config_data_,
211  server_socket_config_data_, &zap_handler_wrong_status_invalid,
213 }
214 
215 static void
217  socket_config_fn client_socket_config_,
218  void *client_socket_config_data_,
219  void *server_socket_config_data_)
220 {
222  server_socket_config_, client_socket_config_, client_socket_config_data_,
223  server_socket_config_data_, &zap_handler_too_many_parts,
225 }
226 
227 // TODO the failed status (300/500) should be observable as monitoring events on the client side as well (they are
228 // already transmitted as an ERROR message)
229 
230 static void
232  socket_config_fn client_socket_config_,
233  void *client_socket_config_data_,
234  void *server_socket_config_data_)
235 {
236  void *handler, *zap_thread, *server, *server_mon;
240  &zap_handler_wrong_status_temporary_failure, server_socket_config_,
241  server_socket_config_data_);
243  client_socket_config_,
244  client_socket_config_data_);
246 }
247 
248 static void
250  socket_config_fn client_socket_config_,
251  void *client_socket_config_data_)
252 {
253  void *handler, *zap_thread, *server, *server_mon;
257  &zap_handler_wrong_status_internal_error, server_socket_config_);
259  client_socket_config_,
260  client_socket_config_data_);
262 }
263 
264 static void
266  socket_config_fn client_socket_config_,
267  void *client_socket_config_data_,
268  void *server_socket_config_data_)
269 {
270 #ifdef ZMQ_ZAP_ENFORCE_DOMAIN
271  void *handler, *zap_thread, *server, *server_mon;
273  // TODO this looks wrong, where will the enforce value be used?
274 
275  // no ZAP handler
276  int enforce = 1;
279  server_socket_config_,
280  server_socket_config_data_ ? server_socket_config_data_ : &enforce);
283  EFAULT, client_socket_config_, client_socket_config_data_);
285 #endif
286 }
287 
288 static void
290  socket_config_fn client_socket_config_,
291  void *client_socket_config_data_,
292  zmq_thread_fn zap_handler_func_,
293  bool zap_handler_disconnected_ = false)
294 {
295  void *handler, *zap_thread, *server, *server_mon;
298  my_endpoint, zap_handler_func_,
299  server_socket_config_);
302  EPIPE, client_socket_config_, client_socket_config_data_);
304  zap_handler_disconnected_);
305 }
306 
307 static void
309  socket_config_fn client_socket_config_,
310  void *client_socket_config_data_)
311 {
313  server_socket_config_, client_socket_config_, client_socket_config_data_,
314  &zap_handler_disconnect, true);
315 }
316 
317 static void
319  socket_config_fn client_socket_config_,
320  void *client_socket_config_data_)
321 {
323  server_socket_config_, client_socket_config_, client_socket_config_data_,
325 }
326 
327 static void
329  socket_config_fn client_socket_config_,
330  void *client_socket_config_data_)
331 {
333  server_socket_config_, client_socket_config_, client_socket_config_data_,
335 }
336 
337 #define DEFINE_ZAP_ERROR_TESTS( \
338  name_, server_socket_config_, server_socket_config_data_, \
339  client_socket_config_, client_socket_config_data_) \
340  void test_zap_protocol_error_wrong_version_##name_ () \
341  { \
342  test_zap_protocol_error_wrong_version ( \
343  server_socket_config_, client_socket_config_, \
344  client_socket_config_data_, server_socket_config_data_); \
345  } \
346  void test_zap_protocol_error_wrong_request_id_##name_ () \
347  { \
348  test_zap_protocol_error_wrong_request_id ( \
349  server_socket_config_, client_socket_config_, \
350  client_socket_config_data_, server_socket_config_data_); \
351  } \
352  void test_zap_protocol_error_wrong_status_invalid_##name_ () \
353  { \
354  test_zap_protocol_error_wrong_status_invalid ( \
355  server_socket_config_, client_socket_config_, \
356  client_socket_config_data_, server_socket_config_data_); \
357  } \
358  void test_zap_protocol_error_too_many_parts_##name_ () \
359  { \
360  test_zap_protocol_error_too_many_parts ( \
361  server_socket_config_, client_socket_config_, \
362  client_socket_config_data_, server_socket_config_data_); \
363  } \
364  void test_zap_wrong_status_temporary_failure_##name_ () \
365  { \
366  test_zap_wrong_status_temporary_failure ( \
367  server_socket_config_, client_socket_config_, \
368  client_socket_config_data_, server_socket_config_data_); \
369  } \
370  void test_zap_wrong_status_internal_error_##name_ () \
371  { \
372  test_zap_wrong_status_internal_error (server_socket_config_, \
373  client_socket_config_, \
374  client_socket_config_data_); \
375  } \
376  void test_zap_unsuccessful_no_handler_started_##name_ () \
377  { \
378  test_zap_unsuccesful_no_handler_started ( \
379  server_socket_config_, client_socket_config_, \
380  client_socket_config_data_, server_socket_config_data_); \
381  } \
382  void test_zap_unsuccessful_disconnect_##name_ () \
383  { \
384  test_zap_unsuccesful_disconnect (server_socket_config_, \
385  client_socket_config_, \
386  client_socket_config_data_); \
387  } \
388  void test_zap_unsuccessful_do_not_recv_##name_ () \
389  { \
390  test_zap_unsuccesful_do_not_recv (server_socket_config_, \
391  client_socket_config_, \
392  client_socket_config_data_); \
393  } \
394  void test_zap_unsuccessful_do_not_send_##name_ () \
395  { \
396  test_zap_unsuccesful_do_not_send (server_socket_config_, \
397  client_socket_config_, \
398  client_socket_config_data_); \
399  }
400 
403 
406 
409 
415 
416 #define RUN_ZAP_ERROR_TESTS(name_) \
417  { \
418  RUN_TEST (test_zap_protocol_error_wrong_version_##name_); \
419  RUN_TEST (test_zap_protocol_error_wrong_request_id_##name_); \
420  RUN_TEST (test_zap_protocol_error_wrong_status_invalid_##name_); \
421  RUN_TEST (test_zap_protocol_error_too_many_parts_##name_); \
422  RUN_TEST (test_zap_wrong_status_temporary_failure_##name_); \
423  RUN_TEST (test_zap_wrong_status_internal_error_##name_); \
424  RUN_TEST (test_zap_unsuccessful_no_handler_started_##name_); \
425  RUN_TEST (test_zap_unsuccessful_disconnect_##name_); \
426  RUN_TEST (test_zap_unsuccessful_do_not_recv_##name_); \
427  RUN_TEST (test_zap_unsuccessful_do_not_send_##name_); \
428  }
429 
430 int main ()
431 {
433 
434  if (zmq_has ("curve")) {
436  }
437 
438  UNITY_BEGIN ();
439  RUN_ZAP_ERROR_TESTS (null);
440  RUN_ZAP_ERROR_TESTS (plain);
441  if (zmq_has ("curve")) {
442  RUN_ZAP_ERROR_TESTS (curve);
443  }
444  return UNITY_END ();
445 }
socket_config_fn
void() socket_config_fn(void *, void *)
Definition: testutil_security.hpp:11
curve_client_data_t
Definition: testutil_security.hpp:35
socket_config_plain_server
& socket_config_plain_server
Definition: test_security_zap.cpp:405
test_zap_unsuccesful_do_not_send
static void test_zap_unsuccesful_do_not_send(socket_config_fn server_socket_config_, socket_config_fn client_socket_config_, void *client_socket_config_data_)
Definition: test_security_zap.cpp:328
socket_config_null_client
void socket_config_null_client(void *server_, void *server_secret_)
Definition: testutil_security.cpp:9
zap_status_internal_error
@ zap_status_internal_error
Definition: testutil_security.hpp:53
ZMQ_EVENT_HANDSHAKE_FAILED_NO_DETAIL
#define ZMQ_EVENT_HANDSHAKE_FAILED_NO_DETAIL
Definition: zmq.h:414
test_zap_unsuccessful_status_300
void test_zap_unsuccessful_status_300(char *my_endpoint_, void *server_, void *server_mon_, socket_config_fn client_socket_config_, void *client_socket_config_data_)
Definition: test_security_zap.cpp:130
expect_new_client_bounce_fail
void expect_new_client_bounce_fail(char *my_endpoint_, void *server_, socket_config_fn socket_config_, void *socket_config_data_, void **client_mon_, int expected_client_event_, int expected_client_value_)
Definition: testutil_security.cpp:362
ZMQ_EVENT_HANDSHAKE_FAILED_AUTH
#define ZMQ_EVENT_HANDSHAKE_FAILED_AUTH
Definition: zmq.h:423
NULL
NULL
Definition: test_security_zap.cpp:405
zap_handler_wrong_status_temporary_failure
static void zap_handler_wrong_status_temporary_failure(void *)
Definition: test_security_zap.cpp:23
UNITY_END
return UNITY_END()
setup_context_and_server_side
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_, socket_config_fn socket_config_, void *socket_config_data_, const char *routing_id_)
Definition: testutil_security.cpp:264
TEST_ASSERT_TRUE
#define TEST_ASSERT_TRUE(condition)
Definition: unity.h:121
test_zap_unsuccesful_no_handler_closure
static void test_zap_unsuccesful_no_handler_closure(socket_config_fn server_socket_config_, socket_config_fn client_socket_config_, void *client_socket_config_data_, zmq_thread_fn zap_handler_func_, bool zap_handler_disconnected_=false)
Definition: test_security_zap.cpp:289
zap_handler_generic
void zap_handler_generic(zap_protocol_t zap_protocol_, const char *expected_routing_id_)
Definition: testutil_security.cpp:98
zmq_has
ZMQ_EXPORT int zmq_has(const char *capability_)
Definition: zmq.cpp:1763
testutil_security.hpp
zap_too_many_parts
@ zap_too_many_parts
Definition: testutil_security.hpp:58
zap_do_not_recv
@ zap_do_not_recv
Definition: testutil_security.hpp:60
SETUP_TEARDOWN_TESTCONTEXT
#define SETUP_TEARDOWN_TESTCONTEXT
Definition: testutil_unity.hpp:172
zap_handler_wrong_version
static SETUP_TEARDOWN_TESTCONTEXT void zap_handler_wrong_version(void *)
Definition: test_security_zap.cpp:8
zap_handler_wrong_status_invalid
static void zap_handler_wrong_status_invalid(void *)
Definition: test_security_zap.cpp:18
test_zap_protocol_error_too_many_parts
static void test_zap_protocol_error_too_many_parts(socket_config_fn server_socket_config_, socket_config_fn client_socket_config_, void *client_socket_config_data_, void *server_socket_config_data_)
Definition: test_security_zap.cpp:216
zap_wrong_request_id
@ zap_wrong_request_id
Definition: testutil_security.hpp:56
zmq_thread_fn
void() zmq_thread_fn(void *)
Definition: zmq.h:605
curve_client_data
static NULL curve_client_data_t curve_client_data
Definition: test_security_zap.cpp:407
test_zap_unsuccessful
void test_zap_unsuccessful(char *my_endpoint_, void *server_, void *server_mon_, int expected_server_event_, int expected_server_value_, socket_config_fn socket_config_, void *socket_config_data_, void **client_mon_=NULL, int expected_client_event_=0, int expected_client_value_=0)
Definition: test_security_zap.cpp:76
test_zap_protocol_error_wrong_status_invalid
static void test_zap_protocol_error_wrong_status_invalid(socket_config_fn server_socket_config_, socket_config_fn client_socket_config_, void *client_socket_config_data_, void *server_socket_config_data_)
Definition: test_security_zap.cpp:203
test_zap_unsuccessful_status_500
void test_zap_unsuccessful_status_500(char *my_endpoint_, void *server_, void *server_mon_, socket_config_fn client_socket_config_, void *client_socket_config_data_)
Definition: test_security_zap.cpp:147
test_zap_wrong_status_internal_error
static void test_zap_wrong_status_internal_error(socket_config_fn server_socket_config_, socket_config_fn client_socket_config_, void *client_socket_config_data_)
Definition: test_security_zap.cpp:249
TEST_ASSERT_GREATER_THAN_INT
#define TEST_ASSERT_GREATER_THAN_INT(threshold, actual)
Definition: unity.h:153
valid_server_secret
char valid_server_secret[41]
Definition: testutil_security.cpp:55
testutil_unity.hpp
test_zap_wrong_status_temporary_failure
static void test_zap_wrong_status_temporary_failure(socket_config_fn server_socket_config_, socket_config_fn client_socket_config_, void *client_socket_config_data_, void *server_socket_config_data_)
Definition: test_security_zap.cpp:231
socket_config_curve_server
void socket_config_curve_server(void *server_, void *server_secret_)
Definition: testutil_security.cpp:66
assert_no_more_monitor_events_with_timeout
#define assert_no_more_monitor_events_with_timeout(monitor, timeout)
Definition: testutil_security.hpp:75
socket_config_null_server
void socket_config_null_server(void *server_, void *server_secret_)
Definition: testutil_security.cpp:15
test_zap_protocol_error_wrong_request_id
static void test_zap_protocol_error_wrong_request_id(socket_config_fn server_socket_config_, socket_config_fn client_socket_config_, void *client_socket_config_data_, void *server_socket_config_data_)
Definition: test_security_zap.cpp:191
test_zap_protocol_error
void test_zap_protocol_error(char *my_endpoint_, void *server_, void *server_mon_, socket_config_fn socket_config_, void *socket_config_data_, int expected_error_)
Definition: test_security_zap.cpp:118
valid_client_public
char valid_client_public[41]
Definition: testutil_security.cpp:52
socket_config_plain_client
& socket_config_plain_client
Definition: test_security_zap.cpp:405
shutdown_context_and_server_side
void shutdown_context_and_server_side(void *zap_thread_, void *server_, void *server_mon_, void *zap_control_, bool zap_handler_stopped_)
Definition: testutil_security.cpp:314
my_endpoint
char my_endpoint[MAX_SOCKET_STRING]
Definition: test_security_curve.cpp:31
MAX_SOCKET_STRING
#define MAX_SOCKET_STRING
Definition: libzmq/tests/testutil.hpp:35
test_zap_protocol_error_closure
static void test_zap_protocol_error_closure(socket_config_fn server_socket_config_, socket_config_fn client_socket_config_, void *client_socket_config_data_, void *server_socket_config_data_, zmq_thread_fn zap_handler_, int expected_failure_)
Definition: test_security_zap.cpp:160
zap_do_not_send
@ zap_do_not_send
Definition: testutil_security.hpp:61
server
void * server
Definition: test_security_curve.cpp:29
test_zap_unsuccesful_disconnect
static void test_zap_unsuccesful_disconnect(socket_config_fn server_socket_config_, socket_config_fn client_socket_config_, void *client_socket_config_data_)
Definition: test_security_zap.cpp:308
zap_handler_do_not_recv
static void zap_handler_do_not_recv(void *)
Definition: test_security_zap.cpp:43
zap_status_temporary_failure
@ zap_status_temporary_failure
Definition: testutil_security.hpp:52
DEFINE_ZAP_ERROR_TESTS
#define DEFINE_ZAP_ERROR_TESTS( name_, server_socket_config_, server_socket_config_data_, client_socket_config_, client_socket_config_data_)
Definition: test_security_zap.cpp:337
ZMQ_PROTOCOL_ERROR_ZAP_BAD_REQUEST_ID
#define ZMQ_PROTOCOL_ERROR_ZAP_BAD_REQUEST_ID
Definition: zmq.h:441
zap_handler_too_many_parts
static void zap_handler_too_many_parts(void *)
Definition: test_security_zap.cpp:33
test_zap_unsuccesful_no_handler_started
static void test_zap_unsuccesful_no_handler_started(socket_config_fn server_socket_config_, socket_config_fn client_socket_config_, void *client_socket_config_data_, void *server_socket_config_data_)
Definition: test_security_zap.cpp:265
server_mon
void * server_mon
Definition: test_security_curve.cpp:30
main
int main(int argc, char **argv)
Definition: cppzmq/demo/main.cpp:3
expect_monitor_event_multiple
int expect_monitor_event_multiple(void *server_mon_, int expected_event_, int expected_err_, bool optional_)
Definition: testutil_monitoring.cpp:127
ZMQ_PROTOCOL_ERROR_ZAP_MALFORMED_REPLY
#define ZMQ_PROTOCOL_ERROR_ZAP_MALFORMED_REPLY
Definition: zmq.h:440
test_zap_unsuccessful_no_handler
void test_zap_unsuccessful_no_handler(char *my_endpoint_, void *server_, void *server_mon_, int expected_event_, int expected_err_, socket_config_fn socket_config_, void *socket_config_data_, void **client_mon_=NULL)
Definition: test_security_zap.cpp:99
zmq_atomic_counter_value
ZMQ_EXPORT int zmq_atomic_counter_value(void *counter_)
Definition: zmq_utils.cpp:286
valid_server_public
char valid_server_public[41]
Definition: testutil_security.cpp:54
setup_test_environment
void setup_test_environment(int timeout_seconds_)
Definition: testutil.cpp:201
UNITY_BEGIN
UNITY_BEGIN()
valid_client_secret
char valid_client_secret[41]
Definition: testutil_security.cpp:53
zap_handler_disconnect
static void zap_handler_disconnect(void *)
Definition: test_security_zap.cpp:38
ZMQ_EVENT_HANDSHAKE_FAILED_PROTOCOL
#define ZMQ_EVENT_HANDSHAKE_FAILED_PROTOCOL
Definition: zmq.h:420
socket_config_curve_client
void socket_config_curve_client(void *client_, void *data_)
Definition: testutil_security.cpp:83
handler
void * handler
Definition: test_security_curve.cpp:27
RUN_ZAP_ERROR_TESTS
#define RUN_ZAP_ERROR_TESTS(name_)
zap_handler_wrong_status_internal_error
static void zap_handler_wrong_status_internal_error(void *)
Definition: test_security_zap.cpp:28
zap_thread
void * zap_thread
Definition: test_security_curve.cpp:28
zap_status_invalid
@ zap_status_invalid
Definition: testutil_security.hpp:57
zap_handler_do_not_send
static void zap_handler_do_not_send(void *)
Definition: test_security_zap.cpp:48
ZMQ_PROTOCOL_ERROR_ZAP_INVALID_STATUS_CODE
#define ZMQ_PROTOCOL_ERROR_ZAP_INVALID_STATUS_CODE
Definition: zmq.h:443
EFAULT
#define EFAULT
Definition: errno.hpp:17
test_context_socket_close
void * test_context_socket_close(void *socket_)
Definition: testutil_unity.cpp:208
ZMQ_PROTOCOL_ERROR_ZAP_BAD_VERSION
#define ZMQ_PROTOCOL_ERROR_ZAP_BAD_VERSION
Definition: zmq.h:442
expect_new_client_bounce_fail_and_count_monitor_events
int expect_new_client_bounce_fail_and_count_monitor_events(char *my_endpoint_, void *server_, socket_config_fn socket_config_, void *socket_config_data_, void **client_mon_, void *server_mon_, int expected_server_event_, int expected_server_value_, int expected_client_event_=0, int expected_client_value_=0)
Definition: test_security_zap.cpp:53
zap_wrong_version
@ zap_wrong_version
Definition: testutil_security.hpp:55
test_zap_unsuccesful_do_not_recv
static void test_zap_unsuccesful_do_not_recv(socket_config_fn server_socket_config_, socket_config_fn client_socket_config_, void *client_socket_config_data_)
Definition: test_security_zap.cpp:318
zap_handler_wrong_request_id
static void zap_handler_wrong_request_id(void *)
Definition: test_security_zap.cpp:13
test_zap_protocol_error_wrong_version
static void test_zap_protocol_error_wrong_version(socket_config_fn server_socket_config_, socket_config_fn client_socket_config_, void *client_socket_config_data_, void *server_socket_config_data_)
Definition: test_security_zap.cpp:180
zap_disconnect
@ zap_disconnect
Definition: testutil_security.hpp:59
setup_testutil_security_curve
void setup_testutil_security_curve()
Definition: testutil_security.cpp:57
zap_requests_handled
void * zap_requests_handled
Definition: testutil_security.cpp:96


libaditof
Author(s):
autogenerated on Wed May 21 2025 02:06:59