Go to the source code of this file.
Classes | |
struct | curve_client_data_t |
Macros | |
#define | assert_no_more_monitor_events_with_timeout(monitor, timeout) |
Typedefs | |
typedef void() | socket_config_fn(void *, void *) |
Functions | |
void * | create_and_connect_client (char *my_endpoint_, socket_config_fn socket_config_, void *socket_config_data_, void **client_mon_=NULL) |
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) |
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") |
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_curve_client (void *client_, void *data_) |
void | socket_config_curve_server (void *server_, void *server_secret_) |
void | socket_config_null_client (void *server_, void *server_secret_) |
void | socket_config_null_server (void *server_, void *server_secret_) |
void | socket_config_plain_client (void *server_, void *server_secret_) |
void | socket_config_plain_server (void *server_, void *server_secret_) |
void | zap_handler (void *) |
void | zap_handler_generic (zap_protocol_t zap_protocol_, const char *expected_routing_id_="IDENT") |
Variables | |
char | valid_client_public [41] |
char | valid_client_secret [41] |
char | valid_server_public [41] |
char | valid_server_secret [41] |
void * | zap_requests_handled |
#define assert_no_more_monitor_events_with_timeout | ( | monitor, | |
timeout | |||
) |
Definition at line 75 of file testutil_security.hpp.
Definition at line 11 of file testutil_security.hpp.
enum zap_protocol_t |
Enumerator | |
---|---|
zap_ok | |
zap_status_temporary_failure | |
zap_status_internal_error | |
zap_wrong_version | |
zap_wrong_request_id | |
zap_status_invalid | |
zap_too_many_parts | |
zap_disconnect | |
zap_do_not_recv | |
zap_do_not_send |
Definition at line 48 of file testutil_security.hpp.
void* create_and_connect_client | ( | char * | my_endpoint_, |
socket_config_fn | socket_config_, | ||
void * | socket_config_data_, | ||
void ** | client_mon_ = NULL |
||
) |
Definition at line 338 of file testutil_security.cpp.
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 |
||
) |
Definition at line 362 of file testutil_security.cpp.
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" |
||
) |
Definition at line 264 of file testutil_security.cpp.
void setup_testutil_security_curve | ( | ) |
Definition at line 57 of file testutil_security.cpp.
void shutdown_context_and_server_side | ( | void * | zap_thread_, |
void * | server_, | ||
void * | server_mon_, | ||
void * | zap_control_, | ||
bool | zap_handler_stopped_ = false |
||
) |
Definition at line 314 of file testutil_security.cpp.
Definition at line 83 of file testutil_security.cpp.
Definition at line 66 of file testutil_security.cpp.
Definition at line 9 of file testutil_security.cpp.
Definition at line 15 of file testutil_security.cpp.
Definition at line 31 of file testutil_security.cpp.
Definition at line 41 of file testutil_security.cpp.
Definition at line 238 of file testutil_security.cpp.
void zap_handler_generic | ( | zap_protocol_t | zap_protocol_, |
const char * | expected_routing_id_ = "IDENT" |
||
) |
Definition at line 98 of file testutil_security.cpp.
char valid_client_public[41] |
Definition at line 52 of file testutil_security.cpp.
char valid_client_secret[41] |
Definition at line 53 of file testutil_security.cpp.
char valid_server_public[41] |
Definition at line 54 of file testutil_security.cpp.
char valid_server_secret[41] |
Definition at line 55 of file testutil_security.cpp.
void* zap_requests_handled |
Definition at line 96 of file testutil_security.cpp.