|
67513cc729
|
Introduced un-/install targets. DESTDIR should be empty by default.
|
2024-04-01 00:03:38 +04:00 |
|
|
85feeebd8c
|
Move all vars into global. Handle signals to perform a cleanup.
|
2024-03-31 23:42:03 +04:00 |
|
|
8d2f97a87d
|
Of course... Forgot the slashes in path. xD
|
2024-03-31 23:31:19 +04:00 |
|
|
597cc3d293
|
Args -K and -A were removed. Store everything in ~/.config/tetatet instead. A helper func get_config_dir() was introduced.
|
2024-03-31 23:17:01 +04:00 |
|
|
271cf6cf67
|
Complete usage() func.
|
2024-03-31 20:39:04 +04:00 |
|
|
a998c73362
|
command -> mode.
|
2024-03-31 20:24:07 +04:00 |
|
|
719624e4c2
|
In parse_argv() alias is not allowed if a program is being run in a server mode.
|
2024-03-31 20:23:30 +04:00 |
|
|
7d08203d61
|
Added a missing new line in main.c for compatibility with clang.
|
2024-03-31 20:18:01 +04:00 |
|
|
08117318a8
|
Check for errors. Store an updated addressbook.
|
2024-03-31 03:53:08 +04:00 |
|
|
4a03096436
|
Args for key path and addressbook path was capitalised and theirs long variants.
|
2024-03-31 02:13:27 +04:00 |
|
|
9d7383ec73
|
Removed unused defines from adrbook.h.
|
2024-03-31 02:12:31 +04:00 |
|
|
23599f4420
|
Current state.
|
2024-03-30 04:35:11 +04:00 |
|
|
489d885049
|
Since a user can pass a port as well as an alias let's check for it every time.
|
2024-03-30 04:15:40 +04:00 |
|
|
9288797c03
|
Alright, a test struct sockaddr is not needed for inet_pton().
|
2024-03-30 04:12:51 +04:00 |
|
|
68cb43795b
|
Another update of main.c.
|
2024-03-30 04:08:54 +04:00 |
|
|
8b67936227
|
In addrbook_t name was renamed to alias. addrbook_get() to addrbook_get_by_pk(). A func addrbook_get_by_alias() was added.
|
2024-03-30 03:55:25 +04:00 |
|
|
098e5c4faa
|
Compacted switch to check a result of parse_argv().
|
2024-03-30 03:19:09 +04:00 |
|
|
4611322ee9
|
Added parse_argv(), version() funcs. A usage() func was changed a little, but it is not its final form. Made char **argv const. Introduced struct options.
Added some code for audio transfer, just initialisation and deinit.
|
2024-03-30 03:17:13 +04:00 |
|
|
0ac13359f1
|
Add 'addressbook' to .gitignore.
|
2024-03-30 03:13:47 +04:00 |
|
|
399c060525
|
In audio_destroy() check for a paStreamIsStopped error.
|
2024-03-30 03:13:17 +04:00 |
|
|
fa589f3122
|
In main check for addressbok file open errors.
|
2024-03-28 18:04:46 +04:00 |
|
|
d95b4c3089
|
Return from addrbook_load if a file is empty.
|
2024-03-28 18:03:41 +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.
|
2024-03-28 17:52:14 +04:00 |
|
|
c468363efb
|
Okay, current state of the addrbook. And it is... Segmentation fault! xD
|
2024-03-28 04:19:29 +04:00 |
|
|
c8d69f23bc
|
Print an incoming pub key.
|
2024-03-26 18:14:38 +04:00 |
|
|
9e9b0ba047
|
Reorganised the main() func.
|
2024-03-26 17:44:35 +04:00 |
|
|
de1d4085b9
|
Move a common handshake stage in a separate func.
|
2024-03-26 17:21:37 +04:00 |
|
|
5e45b95fdf
|
Remove includes that are implicitely included.
|
2024-03-26 17:21:00 +04:00 |
|
|
722baa7da3
|
In a server handshake initialise all the shit before sending our hello.
|
2024-03-26 04:59:24 +04:00 |
|
|
2680674c71
|
Fixed usage. Didn't notice before.
|
2024-03-26 04:54:18 +04:00 |
|
|
6d9596e1d0
|
Oops... Theses are no longer needed. :)
|
2024-03-26 04:52:48 +04:00 |
|
|
b06d955f98
|
A proper handshake was implemented.
|
2024-03-26 04:51:31 +04:00 |
|
|
ccca06e70f
|
An actually working handshake example in a main().
|
2024-03-25 05:03:46 +04:00 |
|
|
5174c2685e
|
Just set an s->remote_key pointer to NULL, do not call crypt_key_destroy on it.
|
2024-03-25 05:02:59 +04:00 |
|
|
b225b63cdf
|
In net.c sockaddr structures' had their *_len fields set to 0, so recvfrom didn't fill an inaddr field.
|
2024-03-25 05:02:05 +04:00 |
|
|
58c3b3fada
|
A handshake fix in main(): No, actually, NOW we're secure. :)
|
2024-03-25 03:59:38 +04:00 |
|
|
92d7659306
|
Keep on using a main() func for testing. Now a secure connection instantiation was completed. Yay!
|
2024-03-25 03:53:55 +04:00 |
|
|
5fbbea3686
|
Let's add -flto to do a link time optimisation. It saves a few bytes.
|
2024-03-25 01:16:41 +04:00 |
|
|
c72eca2ad8
|
Made separate streams for in and out sound. WIll be very handy for muting a microphone and your companion.
|
2024-03-25 01:05:29 +04:00 |
|
|
d9cc37896f
|
Add the empty lines at the end of the sources so clang won't whine and compile. :)
|
2024-03-25 00:56:42 +04:00 |
|
|
97e5dae4db
|
In Makefile use LDFLAGS only for build of an executable, and CFLAGS only for build of the object files.
|
2024-03-25 00:54:18 +04:00 |
|
|
174f0df1d4
|
Test net module in main.
|
2024-03-24 20:14:16 +04:00 |
|
|
42d801f05d
|
A net module was rewritten to support both IPv4 and IPv6.
|
2024-03-24 19:45:25 +04:00 |
|
|
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.
|
2024-03-24 19:38:00 +04:00 |
|
|
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.
|
2024-03-24 19:29:45 +04:00 |
|
|
b9b82a0e26
|
Return a number of bytes read or sent.
|
2024-03-24 17:55:39 +04:00 |
|
|
6990664f2f
|
In net_send() remove a const modifier from buf_len. In net_recv() a const modifier was added to a pointer to buf.
|
2024-03-24 16:50:49 +04:00 |
|
|
ba3a87ab4f
|
An unneeded include of sys/socket.h was removed. It is implicitely included in netinet/in.h.
|
2024-03-24 16:41:22 +04:00 |
|
|
43d5bdfe80
|
In net_send() check if an raddr struct is set.
|
2024-03-24 16:35:04 +04:00 |
|
|
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.
|
2024-03-24 16:31:10 +04:00 |
|