ascii-chat
Binary v0.16.114-28-gf5913657f
Library lib/v0.3.2-3302-gf5913657f
Video chat in your terminal
Loading...
Searching...
No Matches
negotiation.h
Go to the documentation of this file.
1#pragma once
4
5#ifdef __cplusplus
6extern "C" {
7#endif
8
13
36
39 const void *, size_t);
40
47 uint8_t mode,
48 network_protocol_t protocol);
49
50#ifdef __cplusplus
51}
52#endif
unsigned char uint8_t
asciichat_error_t
Error and exit codes - unified status values (0-255).
Definition error_codes.h:48
packet_type_t
Network protocol packet type enumeration.
Definition packet.h:315
struct acip_transport acip_transport_t
Forward declaration of ACIP transport.
Definition host.h:508
Common declarations and data structures for cryptographic handshake.
Transport abstraction layer for ACIP protocol.
network_protocol_t
Definition negotiation.h:9
@ NETWORK_PROTOCOL_MEDIA
Definition negotiation.h:10
@ NETWORK_PROTOCOL_DISCOVERY
Definition negotiation.h:11
asciichat_error_t network_client_negotiate(acip_transport_t *, crypto_handshake_context_t *, uint8_t mode, network_protocol_t protocol)
asciichat_error_t network_negotiation_receive(network_negotiation_t *, acip_transport_t *, packet_type_t, const void *, size_t)
Cryptographic handshake context structure.
When code needs to work with network negotiation, it keeps protocol, handshake, identity_keys,...
Definition negotiation.h:23
const private_key_t * identity_keys
Definition negotiation.h:26
const char * password
Definition negotiation.h:30
crypto_handshake_context_t * handshake
Definition negotiation.h:25
network_protocol_t protocol
Definition negotiation.h:24
public_key_t * whitelist
Definition negotiation.h:28
Private identity-key material used for server authentication and signing.
Definition key_types.h:113
The normalized public identity used by ascii-chat's crypto and key-management code.
Definition key_types.h:83