ascii-chat
Binary v0.15.83-53-gb711d8720
Library lib/v0.3.2-701-gb711d8720
Video chat in your terminal
Loading...
Searching...
No Matches
acip_security Struct Reference

acip security is intentionally a small, concrete record. Fields such as handshake, mode, forbid_encryption, require_encryption give callers the identity and current value they need. It is normally borrowed from, or owned by, the surrounding subsystem—not independently managed. Callers serialize receive/start and keep the transport alive until cleanup. Media must wait for ready, including authentication-only connections. More...

#include <include/ascii-chat/network/acip/security.h>

Data Fields

crypto_handshake_context_t handshake
uint8_t mode
bool forbid_encryption
bool require_encryption
bool version_received
bool parameters_received
bool ready

Detailed Description

acip security is intentionally a small, concrete record. Fields such as handshake, mode, forbid_encryption, require_encryption give callers the identity and current value they need. It is normally borrowed from, or owned by, the surrounding subsystem—not independently managed. Callers serialize receive/start and keep the transport alive until cleanup. Media must wait for ready, including authentication-only connections.

Per-peer, event-driven negotiation. The caller owns and configures handshake.

Definition at line 13 of file include/ascii-chat/network/acip/security.h.

Field Documentation

◆ forbid_encryption

bool acip_security::forbid_encryption

◆ handshake

◆ mode

◆ parameters_received

bool acip_security::parameters_received

Definition at line 19 of file include/ascii-chat/network/acip/security.h.

Referenced by acip_security_receive().

◆ ready

◆ require_encryption

bool acip_security::require_encryption

◆ version_received

bool acip_security::version_received

The documentation for this struct was generated from the following file: