ascii-chat
Binary v0.15.83-53-gb711d8720
Library lib/v0.3.2-701-gb711d8720
Video chat in your terminal
Loading...
Searching...
No Matches
peer_crypto.h
Go to the documentation of this file.
1
2#pragma once
3
4#include <stdbool.h>
5#include <stddef.h>
6#include <stdint.h>
8
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
16browser_peer_crypto_t *peer_crypto_create(bool server, int encryption, const char *password, const uint8_t *identity,
17 const uint8_t *expected_key);
20const char *peer_crypto_error(void);
21asciichat_error_t peer_crypto_send(browser_peer_crypto_t *peer, const void *data, size_t length);
22asciichat_error_t peer_crypto_receive(browser_peer_crypto_t *peer, const void *data, size_t length);
31
32#ifdef __cplusplus
33}
34#endif
Synchronized per-thread pending error stacks and value snapshots. SET_ERRNO pushes,...
unsigned char uint8_t
Definition common.h:60
asciichat_error_t
Error and exit codes - unified status values (0-255).
Definition error_codes.h:44
struct browser_peer_crypto browser_peer_crypto_t
Definition peer_crypto.h:9
const void * peer_crypto_received_data(browser_peer_crypto_t *peer)
asciichat_error_t peer_crypto_tick(browser_peer_crypto_t *peer)
bool peer_crypto_ready(browser_peer_crypto_t *peer)
asciichat_error_t peer_crypto_send(browser_peer_crypto_t *peer, const void *data, size_t length)
const char * peer_crypto_error(void)
Definition peer_crypto.c:32
size_t peer_crypto_received_size(browser_peer_crypto_t *peer)
void peer_crypto_output_pop(browser_peer_crypto_t *peer)
Definition peer_crypto.c:84
size_t peer_crypto_output_size(browser_peer_crypto_t *peer)
crypto_context_t * peer_security_context(browser_peer_crypto_t *peer)
asciichat_error_t peer_crypto_quic_begin(browser_peer_crypto_t *peer)
void peer_crypto_destroy(browser_peer_crypto_t *peer)
Definition peer_crypto.c:95
asciichat_error_t peer_crypto_receive(browser_peer_crypto_t *peer, const void *data, size_t length)
browser_peer_crypto_t * peer_crypto_create(bool server, int encryption, const char *password, const uint8_t *identity, const uint8_t *expected_key)
const void * peer_crypto_output_data(browser_peer_crypto_t *peer)
Endpoint cryptographic state for handshake, packet protection, authentication, and rekeying.