Problem: code duplication between curve_client_t and curve_server_t decode and encode

Solution: extracted common base class curve_mechanism_base_t
This commit is contained in:
sigiesec
2017-08-18 11:34:22 +02:00
parent 44f6aa3de6
commit 301f3c70c2
24 changed files with 431 additions and 334 deletions

View File

@@ -491,7 +491,8 @@ int connect_exchange_greeting_and_hello_welcome (
uint8_t welcome[welcome_length + 2];
recv_all (s, welcome, welcome_length + 2);
int res = tools.process_welcome (welcome + 2, welcome_length);
uint8_t cn_precom [crypto_box_BEFORENMBYTES];
int res = tools.process_welcome (welcome + 2, welcome_length, cn_precom);
assert (res == 0);
#ifdef ZMQ_BUILD_DRAFT_API