mirror of
https://github.com/ntop/n2n.git
synced 2024-04-21 16:31:34 +00:00
added time stamp blending and sending
This commit is contained in:
@@ -19,10 +19,12 @@
|
||||
|
||||
uint32_t packet_header_decrypt (uint8_t packet[], uint16_t packet_len,
|
||||
char * community_name, he_context_t * ctx,
|
||||
he_context_t * ctx_iv, uint16_t * checksum);
|
||||
he_context_t * ctx_iv,
|
||||
uint64_t * stamp, uint16_t * checksum);
|
||||
|
||||
int32_t packet_header_encrypt (uint8_t packet[], uint8_t header_len, he_context_t * ctx,
|
||||
he_context_t * ctx_iv, uint16_t checksum);
|
||||
he_context_t * ctx_iv,
|
||||
uint64_t stamp, uint16_t checksum);
|
||||
|
||||
|
||||
void packet_header_setup_key (const char * community_name, he_context_t ** ctx,
|
||||
|
||||
@@ -428,6 +428,10 @@ SOCKET open_socket(int local_port, int bind_any);
|
||||
int sock_equal( const n2n_sock_t * a,
|
||||
const n2n_sock_t * b );
|
||||
|
||||
/* Header encryption */
|
||||
uint64_t time_stamp(void);
|
||||
int time_stamp_verify (uint64_t stamp, uint64_t * previous_stamp);
|
||||
|
||||
/* Operations on peer_info lists. */
|
||||
size_t purge_peer_list( struct peer_info ** peer_list,
|
||||
time_t purge_before );
|
||||
|
||||
Reference in New Issue
Block a user