mirror of
https://github.com/CPunch/Laika.git
synced 2024-11-14 09:50:05 +00:00
18 lines
426 B
C
18 lines
426 B
C
#ifndef SHELLPEER_H
|
|
#define SHELLPEER_H
|
|
|
|
#include "lsodium.h"
|
|
#include "lpeer.h"
|
|
|
|
typedef struct sShell_peer {
|
|
uint8_t pub[crypto_kx_PUBLICKEYBYTES];
|
|
char hostname[LAIKA_HOSTNAME_LEN], ipv4[LAIKA_IPV4_LEN];
|
|
PEERTYPE type;
|
|
} tShell_peer;
|
|
|
|
tShell_peer *shellP_newPeer(PEERTYPE type, uint8_t *pub, char *hostname, char *ipv4);
|
|
void shellP_freePeer(tShell_peer *peer);
|
|
|
|
char *shellP_typeStr(tShell_peer *peer);
|
|
|
|
#endif |