Alexander Andreev Arav
Arav pushed to main at Arav/tetatet 2024-03-28 18:04:56 +04:00
fa589f3122 In main check for addressbok file open errors.
d95b4c3089 Return from addrbook_load if a file is empty.
Compare 2 commits »
Arav pushed to main at Arav/tetatet 2024-03-28 17:52:30 +04:00
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.
Arav pushed to main at Arav/tetatet 2024-03-28 04:19:39 +04:00
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.
Compare 5 commits »
Arav pushed to main at Arav/tetatet 2024-03-26 04:59:33 +04:00
722baa7da3 In a server handshake initialise all the shit before sending our hello.
Arav pushed to main at Arav/tetatet 2024-03-26 04:54:27 +04:00
2680674c71 Fixed usage. Didn't notice before.
Arav pushed to main at Arav/tetatet 2024-03-26 04:52:58 +04:00
6d9596e1d0 Oops... Theses are no longer needed. :)
Arav pushed to main at Arav/tetatet 2024-03-26 04:51:57 +04:00
b06d955f98 A proper handshake was implemented.
Arav pushed to main at Arav/tetatet 2024-03-25 05:03:55 +04:00
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.
Compare 3 commits »
Arav pushed to main at Arav/tetatet 2024-03-25 03:59:46 +04:00
58c3b3fada A handshake fix in main(): No, actually, NOW we're secure. :)
Arav pushed to main at Arav/tetatet 2024-03-25 03:54:11 +04:00
92d7659306 Keep on using a main() func for testing. Now a secure connection instantiation was completed. Yay!
Arav pushed to main at Arav/tetatet 2024-03-25 01:17:45 +04:00
5fbbea3686 Let's add -flto to do a link time optimisation. It saves a few bytes.
Arav pushed to main at Arav/tetatet 2024-03-25 01:05:39 +04:00
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.
Compare 3 commits »
Arav pushed to main at Arav/tetatet 2024-03-24 20:14:34 +04:00
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.
Compare 7 commits »
Arav pushed to main at Arav/tetatet 2024-03-24 16:37:50 +04:00
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.
Compare 3 commits »
Arav pushed to main at Arav/tetatet 2024-03-24 06:05:11 +04:00
b04fbeb34e Let's uncomment a code for audio and put an encryption in it.
Arav pushed to main at Arav/tetatet 2024-03-24 05:56:39 +04:00
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.
Arav pushed to main at Arav/tetatet 2024-03-24 05:52:36 +04:00
944a81a8bf Let's swap a signature and a half of a nonce. And sign both a pub key and the half of a nonce.
Arav pushed to main at Arav/tetatet 2024-03-24 05:36:19 +04:00
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
Compare 2 commits »
Arav pushed to main at Arav/tetatet 2024-03-24 05:06:29 +04:00
e4b388f554 An include messup was cleaned.
Arav pushed tag v24.10.0 to Arav/dwelling-radio 2024-03-06 04:51:07 +04:00