Functions | Variables
testutil_security.cpp File Reference
#include "testutil_security.hpp"
#include <stdlib.h>
#include <string.h>
Include dependency graph for testutil_security.cpp:

Go to the source code of this file.

Functions

voidcreate_and_connect_client (char *my_endpoint_, socket_config_fn socket_config_, void *socket_config_data_, void **client_mon_)
 
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_)
 
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_)
 
static void setup_handshake_socket_monitor (void *server_, void **server_mon_, const char *monitor_endpoint_)
 
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_)
 
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_)
 

Variables

static const char test_plain_password [] = "testpass"
 
static const char test_plain_username [] = "testuser"
 
const char * test_zap_domain = "ZAPTEST"
 
char valid_client_public [41]
 
char valid_client_secret [41]
 
char valid_server_public [41]
 
char valid_server_secret [41]
 
voidzap_requests_handled
 

Function Documentation

◆ create_and_connect_client()

void* create_and_connect_client ( char *  my_endpoint_,
socket_config_fn  socket_config_,
void socket_config_data_,
void **  client_mon_ 
)

Definition at line 338 of file testutil_security.cpp.

◆ 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 at line 362 of file testutil_security.cpp.

◆ 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 at line 264 of file testutil_security.cpp.

◆ setup_handshake_socket_monitor()

static void setup_handshake_socket_monitor ( void server_,
void **  server_mon_,
const char *  monitor_endpoint_ 
)
static

Definition at line 243 of file testutil_security.cpp.

◆ setup_testutil_security_curve()

void setup_testutil_security_curve ( )

Definition at line 57 of file testutil_security.cpp.

◆ 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 at line 314 of file testutil_security.cpp.

◆ socket_config_curve_client()

void socket_config_curve_client ( void client_,
void data_ 
)

Definition at line 83 of file testutil_security.cpp.

◆ socket_config_curve_server()

void socket_config_curve_server ( void server_,
void server_secret_ 
)

Definition at line 66 of file testutil_security.cpp.

◆ socket_config_null_client()

void socket_config_null_client ( void server_,
void server_secret_ 
)

Definition at line 9 of file testutil_security.cpp.

◆ socket_config_null_server()

void socket_config_null_server ( void server_,
void server_secret_ 
)

Definition at line 15 of file testutil_security.cpp.

◆ socket_config_plain_client()

void socket_config_plain_client ( void server_,
void server_secret_ 
)

Definition at line 31 of file testutil_security.cpp.

◆ socket_config_plain_server()

void socket_config_plain_server ( void server_,
void server_secret_ 
)

Definition at line 41 of file testutil_security.cpp.

◆ zap_handler()

void zap_handler ( void )

Definition at line 238 of file testutil_security.cpp.

◆ zap_handler_generic()

void zap_handler_generic ( zap_protocol_t  zap_protocol_,
const char *  expected_routing_id_ 
)

Definition at line 98 of file testutil_security.cpp.

Variable Documentation

◆ test_plain_password

const char test_plain_password[] = "testpass"
static

Definition at line 29 of file testutil_security.cpp.

◆ test_plain_username

const char test_plain_username[] = "testuser"
static

Definition at line 28 of file testutil_security.cpp.

◆ test_zap_domain

const char* test_zap_domain = "ZAPTEST"

Definition at line 7 of file testutil_security.cpp.

◆ valid_client_public

char valid_client_public[41]

Definition at line 52 of file testutil_security.cpp.

◆ valid_client_secret

char valid_client_secret[41]

Definition at line 53 of file testutil_security.cpp.

◆ valid_server_public

char valid_server_public[41]

Definition at line 54 of file testutil_security.cpp.

◆ valid_server_secret

char valid_server_secret[41]

Definition at line 55 of file testutil_security.cpp.

◆ zap_requests_handled

void* zap_requests_handled

Definition at line 96 of file testutil_security.cpp.



libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:04