44#include "../../QSC/QSC/rcs.h"
45#include "../../QSC/QSC/socketclient.h"
94#if defined(QSMP_ASYMMETRIC_RATCHET)
144 const qsc_ipinfo_ipv4_address* address, uint16_t port,
166 const qsc_ipinfo_ipv6_address* address, uint16_t port,
188 const qsc_ipinfo_ipv4_address* address, uint16_t port,
209 const qsc_ipinfo_ipv6_address* address, uint16_t port,
269 bool (*key_query)(uint8_t* rvkey,
const uint8_t* pkid));
290 bool (*key_query)(uint8_t* rvkey,
const uint8_t* pkid));
QSMP_EXPORT_API qsmp_errors qsmp_client_duplex_listen_ipv4(const qsmp_server_signature_key *kset, void(*send_func)(qsmp_connection_state *), void(*receive_callback)(qsmp_connection_state *, const uint8_t *, size_t), bool(*key_query)(uint8_t *rvkey, const uint8_t *pkid))
Start the server in Duplex mode over IPv4 and listen for a single host-to-host connection.
Definition client.c:1287
QSMP_EXPORT_API bool qsmp_duplex_send_symmetric_ratchet_request(qsmp_connection_state *cns)
Send a symmetric key-ratchet request to the remote host.
Definition client.c:970
QSMP_EXPORT_API qsmp_errors qsmp_client_duplex_listen_ipv6(const qsmp_server_signature_key *kset, void(*send_func)(qsmp_connection_state *), void(*receive_callback)(qsmp_connection_state *, const uint8_t *, size_t), bool(*key_query)(uint8_t *rvkey, const uint8_t *pkid))
Start the server in Duplex mode over IPv6 and listen for a single host-to-host connection.
Definition client.c:1358
QSMP_EXPORT_API qsmp_errors qsmp_client_simplex_listen_ipv6(const qsmp_server_signature_key *kset, void(*send_func)(qsmp_connection_state *), void(*receive_callback)(qsmp_connection_state *, const uint8_t *, size_t))
Start the server in Simplex mode over IPv6 and listen for client connections.
Definition client.c:1759
QSMP_EXPORT_API qsmp_errors qsmp_client_duplex_connect_ipv6(const qsmp_server_signature_key *kset, const qsmp_client_verification_key *rverkey, const qsc_ipinfo_ipv6_address *address, uint16_t port, void(*send_func)(qsmp_connection_state *), void(*receive_callback)(qsmp_connection_state *, const uint8_t *, size_t))
Connect to a remote host over IPv6 and perform the Duplex key exchange.
Definition client.c:1153
QSMP_EXPORT_API qsmp_errors qsmp_client_simplex_connect_ipv4(const qsmp_client_verification_key *pubk, const qsc_ipinfo_ipv4_address *address, uint16_t port, void(*send_func)(qsmp_connection_state *), void(*receive_callback)(qsmp_connection_state *, const uint8_t *, size_t))
Connect to a remote server over IPv4 and perform the Simplex key exchange.
Definition client.c:1429
QSMP_EXPORT_API qsmp_errors qsmp_client_duplex_connect_ipv4(const qsmp_server_signature_key *kset, const qsmp_client_verification_key *rverkey, const qsc_ipinfo_ipv4_address *address, uint16_t port, void(*send_func)(qsmp_connection_state *), void(*receive_callback)(qsmp_connection_state *, const uint8_t *, size_t))
Connect to a remote host over IPv4 and perform the Duplex key exchange.
Definition client.c:1022
QSMP_EXPORT_API qsmp_errors qsmp_client_simplex_listen_ipv4(const qsmp_server_signature_key *kset, void(*send_func)(qsmp_connection_state *), void(*receive_callback)(qsmp_connection_state *, const uint8_t *, size_t))
Start the server in Simplex mode over IPv4 and listen for client connections.
Definition client.c:1676
QSMP_EXPORT_API qsmp_errors qsmp_client_simplex_connect_ipv6(const qsmp_client_verification_key *pubk, const qsc_ipinfo_ipv6_address *address, uint16_t port, void(*send_func)(qsmp_connection_state *), void(*receive_callback)(qsmp_connection_state *, const uint8_t *, size_t))
Connect to a remote server over IPv6 and perform the Simplex key exchange.
Definition client.c:1553
QSMP support header Common defined parameters and functions of the qsmp client and server implementat...
qsmp_errors
The QSMP error values.
Definition qsmp.h:854
The QSMP client key structure.
Definition qsmp.h:965
The QSMP socket connection state structure.
Definition qsmp.h:1002
The QSMP server key structure.
Definition qsmp.h:977