- Russia, Saratov
- https://arav.su
- Joined on
2020-07-08
fa589f3122
In main check for addressbok file open errors.
d95b4c3089
Return from addrbook_load if a file is empty.
a2e0694efc
Fixed memory allocation for addrbook_t. Ditched a separate init function and moved allocation to add func. Added a variable to store the capacity of an array.
c468363efb
Okay, current state of the addrbook. And it is... Segmentation fault! xD
c8d69f23bc
Print an incoming pub key.
9e9b0ba047
Reorganised the main() func.
de1d4085b9
Move a common handshake stage in a separate func.
5e45b95fdf
Remove includes that are implicitely included.
ccca06e70f
An actually working handshake example in a main().
5174c2685e
Just set an s->remote_key pointer to NULL, do not call crypt_key_destroy on it.
b225b63cdf
In net.c sockaddr structures' had their *_len fields set to 0, so recvfrom didn't fill an inaddr field.
92d7659306
Keep on using a main() func for testing. Now a secure connection instantiation was completed. Yay!
c72eca2ad8
Made separate streams for in and out sound. WIll be very handy for muting a microphone and your companion.
d9cc37896f
Add the empty lines at the end of the sources so clang won't whine and compile. :)
97e5dae4db
In Makefile use LDFLAGS only for build of an executable, and CFLAGS only for build of the object files.
174f0df1d4
Test net module in main.
42d801f05d
A net module was rewritten to support both IPv4 and IPv6.
58645aae4b
In order to support both IPv4 and IPv6 store a type struct sockaddr. Also remove specifying af_family as an arg. It will be determined using a getaddrinfo() func.
d5f6739fcd
In Makefile added _POSIX_C_SOURCE=200112L in order to use getaddrinfo(). Also added -f flag to an rm util to ignore non-existent files.
b9b82a0e26
Return a number of bytes read or sent.
43d5bdfe80
In net_send() check if an raddr struct is set.
e5c6f23cfb
A buffer was removed from a struct net_t. Use external buffer for data receiving. net_sendto -> net_send and net_recvfrom -> net_recv.
842659e879
Remove useless comments.
0c61d4e433
Changed a crypt_hello_get_nonce func because now a half of a nonce is placed after a pub key and before a signature.
944a81a8bf
Let's swap a signature and a half of a nonce. And sign both a pub key and the half of a nonce.
1afd678fd4
Let's put some pointer safety. Like checks for NULL and actually freeing them in case of errors.
16e0149802
Replace '< 0' with '== -1'. For the sake of optimisation! xD