From 2d8bfaab51c2dd42d73c348e238802912e870b22 Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Mon, 8 Jun 2020 00:46:20 +0200 Subject: moved client/server stream crypto init code into subroutines Signed-off-by: Toni Uhlig --- common-sodium.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'common-sodium.h') diff --git a/common-sodium.h b/common-sodium.h index 95ec94d..7ccfc0c 100644 --- a/common-sodium.h +++ b/common-sodium.h @@ -21,4 +21,12 @@ __attribute__((warn_unused_result)) int init_sockaddr_inet(struct sockaddr_in * int port, char ip_str[INET6_ADDRSTRLEN + 1]); +__attribute__((warn_unused_result)) int init_crypto_server(struct connection * const state, + unsigned char const * const server_rx_header, + size_t server_rx_header_size); + +__attribute__((warn_unused_result)) int init_crypto_client(struct connection * const state, + unsigned char const * const client_rx_header, + size_t client_rx_header_size); + #endif -- cgit v1.2.3