| 1 |
#ifndef LIBRIST_INTERNAL_PEER_H |
| 2 |
#define LIBRIST_INTERNAL_PEER_H |
| 3 |
#include "common/attributes.h" |
| 4 |
#include "librist_config.h" |
| 5 |
#include "socket-shim.h" |
| 6 |
#include <stdint.h> |
| 7 |
#include <stddef.h> |
| 8 |
#include <stdbool.h> |
| 9 |
|
| 10 |
struct rist_peer; |
| 11 |
|
| 12 |
#if HAVE_SRP_SUPPORT |
| 13 |
RIST_PRIV void librist_peer_update_rx_passphrase(struct rist_peer *peer, const uint8_t *passphrase, size_t passphrase_len, bool immediate); |
| 14 |
RIST_PRIV void librist_peer_update_tx_passphrase(struct rist_peer *peer, const uint8_t *passphrase, size_t passphrase_len, bool immediate); |
| 15 |
RIST_PRIV void librist_peer_get_current_tx_passphrase(struct rist_peer *peer, const uint8_t **passphrase, size_t *passphrase_len); |
| 16 |
RIST_PRIV bool librist_peer_should_rollover_passphrase(struct rist_peer *peer); |
| 17 |
#endif |
| 18 |
|
| 19 |
struct rist_peer * _librist_peer_match_peer_addr(struct rist_peer *p, uint16_t family, struct sockaddr *addr); |
| 20 |
|
| 21 |
#endif |