mirror of
https://github.com/CPunch/Laika.git
synced 2026-01-02 11:10:18 +00:00
Added OSTYPE, added OS info to handshake & peer-related packets
This commit is contained in:
@@ -35,6 +35,4 @@ void shellC_openShell(tShell_client *client, tShell_peer *peer, uint16_t col, ui
|
||||
void shellC_closeShell(tShell_client *client);
|
||||
void shellC_sendDataShell(tShell_client *client, uint8_t *data, size_t sz);
|
||||
|
||||
void shellC_printInfo(tShell_peer *peer);
|
||||
|
||||
#endif
|
||||
@@ -8,11 +8,12 @@ typedef struct sShell_peer {
|
||||
uint8_t pub[crypto_kx_PUBLICKEYBYTES];
|
||||
char hostname[LAIKA_HOSTNAME_LEN], inet[LAIKA_INET_LEN], ipv4[LAIKA_IPV4_LEN];
|
||||
PEERTYPE type;
|
||||
OSTYPE osType;
|
||||
} tShell_peer;
|
||||
|
||||
tShell_peer *shellP_newPeer(PEERTYPE type, uint8_t *pub, char *hostname, char *inet, char *ipv4);
|
||||
tShell_peer *shellP_newPeer(PEERTYPE type, OSTYPE osType, uint8_t *pub, char *hostname, char *inet, char *ipv4);
|
||||
void shellP_freePeer(tShell_peer *peer);
|
||||
|
||||
char *shellP_typeStr(tShell_peer *peer);
|
||||
void shellP_printInfo(tShell_peer *peer);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user