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;
|
2022-03-18 04:05:18 +00:00
|
|
|
OSTYPE osType;
|
2022-02-25 04:13:05 +00:00
|
|
|
} tShell_peer;
|
|
|
|
|
2022-03-18 04:05:18 +00:00
|
|
|
tShell_peer *shellP_newPeer(PEERTYPE type, OSTYPE osType, uint8_t *pub, char *hostname, char *inet, char *ipv4);
|
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
|