all repos — circe-vpn @ 111047a8c5cbec3275b7ac76c83c2d93581f8668

Circe VPN

core/platform.h (view raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
#ifndef CIRCE_CORE_PLATFORM_H
#define CIRCE_CORE_PLATFORM_H

#include "peer_table.h"
#include <stdbool.h>
#include <stdint.h>

void circe_platform_get_random_bytes (uint8_t *out, uint32_t len);

void circe_platform_store_peer (const struct circe_peer *peer);

bool circe_platform_recall_peer (uint8_t identity[CIRCE_IDENTITY_LEN],
                                 struct circe_peer *out);

#endif