2022-02-25 04:13:05 +00:00
|
|
|
#ifndef SHELLPEER_H
|
|
|
|
#define SHELLPEER_H
|
|
|
|
|
|
|
|
#include "lpeer.h"
|
2022-06-27 23:57:00 +00:00
|
|
|
#include "lsodium.h"
|
2022-02-25 04:13:05 +00:00
|
|
|
|
2022-06-27 23:57:00 +00:00
|
|
|
typedef struct sShell_peer
|
|
|
|
{
|
2022-02-25 04:13:05 +00:00
|
|
|
uint8_t pub[crypto_kx_PUBLICKEYBYTES];
|
2022-06-04 15:11:28 +00:00
|
|
|
char hostname[LAIKA_HOSTNAME_LEN], inet[LAIKA_INET_LEN], ipStr[LAIKA_IPSTR_LEN];
|
2022-02-25 04:13:05 +00:00
|
|
|
PEERTYPE type;
|
2022-03-18 04:05:18 +00:00
|
|
|
OSTYPE osType;
|
2022-02-25 04:13:05 +00:00
|
|
|
} tShell_peer;
|
|
|
|
|
2022-06-27 23:57:00 +00:00
|
|
|
tShell_peer *shellP_newPeer(PEERTYPE type, OSTYPE osType, uint8_t *pub, char *hostname, char *inet,
|
|
|
|
char *ipStr);
|
2022-02-25 04:13:05 +00:00
|
|
|
void shellP_freePeer(tShell_peer *peer);
|
|
|
|
|
2022-03-18 04:05:18 +00:00
|
|
|
void shellP_printInfo(tShell_peer *peer);
|
2022-02-25 04:13:05 +00:00
|
|
|
|
|
|
|
#endif
|