#include "../src/platform.hpp"
#include "testutil.hpp"
#include "testutil_security.hpp"
#include <unity.h>
#include "../src/curve_client_tools.hpp"
#include "../src/random.hpp"
Go to the source code of this file.
Macros | |
#define | __STDC_LIMIT_MACROS |
#define | ZMQ_USE_LIBSODIUM |
Variables | |
char | error_message_buffer [256] |
void * | handler |
const size_t | hello_length = 200 |
const char | large_routing_id [] |
char | my_endpoint [MAX_SOCKET_STRING] |
char | null_key [] = "0000000000000000000000000000000000000000" |
void * | server |
void * | server_mon |
const int | timeout = 250 |
const size_t | welcome_length = 168 |
void * | zap_thread |
#define __STDC_LIMIT_MACROS |
Definition at line 6 of file test_security_curve.cpp.
#define ZMQ_USE_LIBSODIUM |
Definition at line 15 of file test_security_curve.cpp.
fd_t connect_exchange_greeting_and_hello_welcome | ( | char * | my_endpoint_, |
void * | server_mon_, | ||
int | timeout_, | ||
zmq::curve_client_tools_t & | tools_ | ||
) |
Definition at line 395 of file test_security_curve.cpp.
fd_t connect_exchange_greeting_and_send_hello | ( | char * | my_endpoint_, |
zmq::curve_client_tools_t & | tools_ | ||
) |
Definition at line 358 of file test_security_curve.cpp.
void expect_new_client_curve_bounce_fail | ( | const char * | server_public_, |
const char * | client_public_, | ||
const char * | client_secret_, | ||
char * | my_endpoint_, | ||
void * | server_, | ||
void ** | client_mon_ = NULL , |
||
int | expected_client_event_ = 0 , |
||
int | expected_client_value_ = 0 |
||
) |
Definition at line 61 of file test_security_curve.cpp.
void expect_zmtp_mechanism_mismatch | ( | void * | client_, |
char * | my_endpoint_, | ||
void * | server_, | ||
void * | server_mon_ | ||
) |
Definition at line 149 of file test_security_curve.cpp.
Definition at line 329 of file test_security_curve.cpp.
|
static |
Definition at line 255 of file test_security_curve.cpp.
int main | ( | void | ) |
Definition at line 524 of file test_security_curve.cpp.
zmq::curve_client_tools_t make_curve_client_tools | ( | ) |
Definition at line 238 of file test_security_curve.cpp.
void recv_all | ( | fd_t | fd_, |
uint8_t * | data_, | ||
socket_size_t | len_ | ||
) |
Definition at line 339 of file test_security_curve.cpp.
Definition at line 351 of file test_security_curve.cpp.
Definition at line 209 of file test_security_curve.cpp.
Definition at line 214 of file test_security_curve.cpp.
void send_all | ( | fd_t | fd_, |
const char * | data_, | ||
socket_size_t | size_ | ||
) |
Definition at line 199 of file test_security_curve.cpp.
Definition at line 271 of file test_security_curve.cpp.
void setUp | ( | ) |
Definition at line 33 of file test_security_curve.cpp.
void tearDown | ( | ) |
Definition at line 40 of file test_security_curve.cpp.
void test_curve_security_invalid_hello_command_name | ( | ) |
Definition at line 285 of file test_security_curve.cpp.
void test_curve_security_invalid_hello_version | ( | ) |
Definition at line 307 of file test_security_curve.cpp.
void test_curve_security_invalid_hello_wrong_length | ( | ) |
Definition at line 219 of file test_security_curve.cpp.
void test_curve_security_invalid_initiate_command_encrypted_content | ( | ) |
Definition at line 458 of file test_security_curve.cpp.
void test_curve_security_invalid_initiate_command_encrypted_cookie | ( | ) |
Definition at line 438 of file test_security_curve.cpp.
void test_curve_security_invalid_initiate_command_name | ( | ) |
Definition at line 418 of file test_security_curve.cpp.
void test_curve_security_invalid_initiate_wrong_length | ( | ) |
Definition at line 374 of file test_security_curve.cpp.
Definition at line 478 of file test_security_curve.cpp.
void test_curve_security_unauthenticated_message | ( | ) |
Definition at line 184 of file test_security_curve.cpp.
void test_curve_security_with_bogus_client_credentials | ( | ) |
Definition at line 128 of file test_security_curve.cpp.
void test_curve_security_with_null_client_credentials | ( | ) |
Definition at line 166 of file test_security_curve.cpp.
void test_curve_security_with_plain_client_credentials | ( | ) |
Definition at line 173 of file test_security_curve.cpp.
void test_curve_security_with_valid_credentials | ( | ) |
Definition at line 105 of file test_security_curve.cpp.
void test_null_client_public_key | ( | ) |
Definition at line 507 of file test_security_curve.cpp.
void test_null_client_secret_key | ( | ) |
Definition at line 515 of file test_security_curve.cpp.
void test_null_key | ( | void * | server_, |
void * | server_mon_, | ||
char * | my_endpoint_, | ||
char * | server_public_, | ||
char * | client_public_, | ||
char * | client_secret_ | ||
) |
Definition at line 77 of file test_security_curve.cpp.
void test_null_server_key | ( | ) |
Definition at line 499 of file test_security_curve.cpp.
Definition at line 56 of file test_security_curve.cpp.
char error_message_buffer[256] |
Definition at line 25 of file test_security_curve.cpp.
void* handler |
Definition at line 27 of file test_security_curve.cpp.
const size_t hello_length = 200 |
Definition at line 235 of file test_security_curve.cpp.
const char large_routing_id[] |
Definition at line 48 of file test_security_curve.cpp.
char my_endpoint[MAX_SOCKET_STRING] |
Definition at line 31 of file test_security_curve.cpp.
char null_key[] = "0000000000000000000000000000000000000000" |
Definition at line 497 of file test_security_curve.cpp.
void* server |
Definition at line 29 of file test_security_curve.cpp.
void* server_mon |
Definition at line 30 of file test_security_curve.cpp.
const int timeout = 250 |
Definition at line 46 of file test_security_curve.cpp.
const size_t welcome_length = 168 |
Definition at line 236 of file test_security_curve.cpp.
void* zap_thread |
Definition at line 28 of file test_security_curve.cpp.