diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2020-06-08 00:46:20 +0200 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2020-06-08 00:46:20 +0200 |
commit | 2d8bfaab51c2dd42d73c348e238802912e870b22 (patch) | |
tree | c602138abc6aee099a9df1c6b5541ca9668e9b02 /common-sodium.h | |
parent | 8900036e927d757272b96625ab0a7018bf217533 (diff) |
moved client/server stream crypto init code into subroutines
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'common-sodium.h')
-rw-r--r-- | common-sodium.h | 8 |
1 files changed, 8 insertions, 0 deletions
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 |