From 59b34e423beb75fcd3e3c8abc2c05fe60aca26bc Mon Sep 17 00:00:00 2001 From: SilentSand Date: Fri, 26 Jul 2013 04:02:17 -0400 Subject: Formatting. Many stylistic changes, mostly formatting code more closely to the coding style. --- core/net_crypto.h | 6 ------ 1 file changed, 6 deletions(-) (limited to 'core/net_crypto.h') diff --git a/core/net_crypto.h b/core/net_crypto.h index 0dba0552..b5bab17a 100644 --- a/core/net_crypto.h +++ b/core/net_crypto.h @@ -55,13 +55,11 @@ int decrypt_data(uint8_t * public_key, uint8_t * secret_key, uint8_t * nonce, /* fill the given nonce with random bytes. */ void random_nonce(uint8_t * nonce); - /* return 0 if there is no received data in the buffer return -1 if the packet was discarded. return length of received data if successful */ int read_cryptpacket(int crypt_connection_id, uint8_t * data); - /* return 0 if data could not be put in packet queue return 1 if data was put into the queue */ int write_cryptpacket(int crypt_connection_id, uint8_t * data, uint32_t length); @@ -74,20 +72,17 @@ int write_cryptpacket(int crypt_connection_id, uint8_t * data, uint32_t length); returns the length of the created packet on success */ int create_request(uint8_t * packet, uint8_t * public_key, uint8_t * data, uint32_t length, uint8_t request_id); - /* puts the senders public key in the request in public_key, the data from the request in data if a friend or ping request was sent to us and returns the length of the data. packet is the request packet and length is its length return -1 if not valid request. */ int handle_request(uint8_t * public_key, uint8_t * data, uint8_t * packet, uint16_t length); - /* Start a secure connection with other peer who has public_key and ip_port returns -1 if failure returns crypt_connection_id of the initialized connection if everything went well. */ int crypto_connect(uint8_t * public_key, IP_Port ip_port); - /* kill a crypto connection return 0 if killed successfully return 1 if there was a problem. */ @@ -102,7 +97,6 @@ int crypto_kill(int crypt_connection_id); to refuse it just call kill_connection(...) on the connection id */ int crypto_inbound(uint8_t * public_key, uint8_t * secret_nonce, uint8_t * session_key); - /* accept an incoming connection using the parameters provided by crypto_inbound return -1 if not successful returns the crypt_connection_id if successful */ -- cgit v1.2.3