Commit graph

57 commits

Author SHA1 Message Date
5603d0b8b9
Resolve gcc warnings 2024-09-26 12:45:27 +01:00
560d5cd7b1
use strncpy instead of strcpy 2024-09-26 12:40:00 +01:00
9407946738
Reset content when press / and ESC 2024-09-26 12:04:01 +01:00
f8dd9e6ee3
Remove unused variable 2024-09-26 11:39:37 +01:00
312f0b8727
Change layout to have status bar instead of textbox, remove defines to enums
Add more colors for status bar

Add modes

Make slash commands to chat to user
2024-09-26 11:36:37 +01:00
afe816bd30
Move imports 2024-09-25 22:31:10 +01:00
3788480b43
Fix imports 2024-09-25 22:30:47 +01:00
620c42546f
Make key press not update whole interface everytime 2024-09-25 22:20:45 +01:00
396201512d
remove estrdup and move notification to client side 2024-09-25 21:21:57 +01:00
1420f9e5e0
Make show notification write error to log file instead of printing it 2024-09-25 18:01:42 +01:00
a36ee089fe
Add sample public keys and more error check 2024-09-25 17:23:09 +01:00
b3952e922a
Remove unused variables 2024-09-25 11:22:29 +01:00
70df6b6dfa
Fix ui printing full name even though it is too long 2024-09-25 11:03:46 +01:00
318b447cb9
Better code style to remove warnings 2024-09-25 11:00:39 +01:00
d4b5a20c17
Make ui not show chat instantly after have chat 2024-09-25 10:53:07 +01:00
c0a1b69223
Make username longer than maximum length to be truncated 2024-09-25 10:46:16 +01:00
46e8b3c8e8
Distinguish ED25519 for signing and X25519 for key exchange and encryption 2024-09-25 09:55:05 +01:00
2680bc40d6
Make shared key store in database 2024-09-25 03:53:00 +01:00
74952aae1c
create key pair if it is not found in database 2024-09-24 19:14:15 +01:00
294662e2ae
Make write_log print new line by default 2024-09-24 19:10:56 +01:00
b84a664669
Remove icons from UI's user, move protocol specific constant to packet.h, reconstruct private key, rename some variables 2024-09-24 19:05:49 +01:00
e4856689e9
Change makefile for new folders 2024-09-24 13:54:28 +01:00
f998960f1c
Rename folders 2024-09-24 13:54:10 +01:00
ceacd1306f
Rename folders 2024-09-24 13:53:53 +01:00
4d3bb95e78
Move lib to src/lib and change secret key strcuture 2024-09-24 13:52:19 +01:00
74597b6361
Make color render more robust 2024-09-21 22:49:29 +01:00
380a8deb31
Add TODOs 2024-09-21 15:41:36 +01:00
c67915a41c
Create threadpool before accept connection 2024-09-21 15:38:06 +01:00
c0fe9b6edc
Ignore data and signature if packet is info or error 2024-09-21 14:37:26 +01:00
6b43464637
Move client and thread struct to header file and use debug flag instead of debug in config.h 2024-09-20 18:53:00 +01:00
c57ba8d2ec
Make server ignore if client closed connection 2024-09-20 18:24:01 +01:00
68f5fd5f7c
Fix data dir and its files creation 2024-09-20 18:23:34 +01:00
eb3a859e97
Deinit ncurses before fatal crash 2024-09-20 18:09:56 +01:00
87b3f984c1
Fix file paths within CLIENT_DATA_DIR 2024-09-20 17:54:32 +01:00
a927c5c36c
Remove database name config option, instead name can't be changed
Add create_data_dir function in util.c
2024-09-20 17:50:24 +01:00
79defadf12
Detect if server closed connection on client and only use one packet for authenticating client on server 2024-09-20 17:38:00 +01:00
88602a64b5
Remove use of sizeof(char) and sizeof(uint8_t) 2024-09-20 17:22:08 +01:00
90f971133b
Only use one packet variable on authenticating on client.c 2024-09-20 17:18:21 +01:00
da31b57980
Minor edit on variable names 2024-09-20 17:16:59 +01:00
d22dfa1561
Rename key_pair to keypair_t, avoid using excess memory on client.c, removing using sizeof(uint8_t) 2024-09-20 17:16:17 +01:00
e50093283f
Add closed connection status, remove print_packet routine and revamp how send_packet and recv_packet works 2024-09-20 17:06:03 +01:00
2801fad655
Change structure of keypair_t 2024-09-20 17:04:16 +01:00
47e50fcf8e
Parse markdown-like messages to italic, underline, block and color
Print date only if current message is newer than previous message by a day

Make keybinding configurable for clear input
2024-09-20 15:51:07 +01:00
5845540b70
Remove draw borders option 2024-09-19 01:18:32 +01:00
7da8b49164
Make textbox look better and fix content need to be redrawn after border changing color 2024-09-18 21:26:32 +01:00
6dd7fae14f
Fix UI in DB by not adding themselves to UI 2024-09-18 08:41:54 +01:00
062028e4e1
Improve relaying message in server 2024-09-18 08:40:05 +01:00
9c1479bb73
Clarify "data" and "message" 2024-09-18 08:38:44 +01:00
18bda0a245
Ignore EEXIST 2024-09-18 08:38:18 +01:00
e5894fdf69
Change notificiation to include author 2024-09-18 08:38:04 +01:00