2022-02-25 04:13:05 +00:00
|
|
|
#ifndef SHELLPEER_H
|
|
|
|
#define SHELLPEER_H
|
|
|
|
|
|
|
|
#include "lsodium.h"
|
|
|
|
#include "lpeer.h"
|
|
|
|
|
|
|
|
typedef struct sShell_peer {
|
|
|
|
uint8_t pub[crypto_kx_PUBLICKEYBYTES];
|
2022-03-05 02:17:03 +00:00
|
|
|
char hostname[LAIKA_HOSTNAME_LEN], inet[LAIKA_INET_LEN], ipv4[LAIKA_IPV4_LEN];
|
2022-02-25 04:13:05 +00:00
|
|
|
PEERTYPE type;
|
|
|
|
} tShell_peer;
|
|
|
|
|
2022-03-05 02:17:03 +00:00
|
|
|
tShell_peer *shellP_newPeer(PEERTYPE type, uint8_t *pub, char *hostname, char *inet, char *ipv4);
|
2022-02-25 04:13:05 +00:00
|
|
|
void shellP_freePeer(tShell_peer *peer);
|
|
|
|
|
|
|
|
char *shellP_typeStr(tShell_peer *peer);
|
|
|
|
|
|
|
|
#endif
|