261 Commits

Author SHA1 Message Date
55b96af92e
showing login/register on password prompt 2025-02-05 15:55:38 +01:00
cfa58a52db
revert "optimized ifs in why2_listen_server"
this reverts commit 240e7a79af766ad714ab6609615880b4f5c126a0

it is broken lol
2025-02-04 22:38:53 +01:00
af1a1d8855
showing client whether he is logging in or registering 2025-02-04 22:07:18 +01:00
240e7a79af
optimized ifs in why2_listen_server 2025-02-04 22:06:47 +01:00
4e04b89221
checking for invalid base64 in read_socket_raw 2025-02-04 20:00:14 +01:00
429e0cfeaa
implemented message delays in read_socket_raw 2025-02-04 18:34:22 +01:00
05ed50ddfd
declaring find_connection at the file top 2025-02-03 21:33:17 +01:00
6daf74d0be
removing non-ascii characters at read_socket_raw 2025-02-03 20:33:23 +01:00
44be9ad2f6
proccessing fread output on CA 2025-02-02 21:55:07 +01:00
6c080a438c
implemented WHY2_CHAT_MESSAGE_DELIMITER in read/send fns 2025-02-02 21:05:14 +01:00
2586f1a937
returning NULL on invalid packet in read_socket_raw 2025-02-02 16:50:16 +01:00
06d835e2b9
implemented encrypt_decrypt_message in send/receive fns 2025-02-02 15:48:18 +01:00
6e67e6225f
fixed encrypt_decrypt_message base64 problems 2025-02-02 15:47:40 +01:00
ee104f3208
created encrypt_decrypt_message fn
with ENCRYPTION_DECRYPTION enum
2025-02-02 15:16:17 +01:00
cdbbdce47c
fixed invalid read on double json in buffer 2025-02-02 14:28:08 +01:00
90be3ebc21
passing key to send/receive functions 2025-02-02 00:02:56 +01:00
35ec44ae68
saving shared client-server key 2025-02-01 22:13:32 +01:00
f3f5533763
exchanging ecc keys on client connect 2025-02-01 21:44:37 +01:00
c1ee049f32
fixed username/password server memory leak 2025-02-01 21:32:41 +01:00
a4b8bf2f4c
implemented WHY2_CHAT_CODE_PASSWORD 2025-02-01 21:03:49 +01:00
7daa9aa124
sending WHY2_CHAT_CODE_USERNAME from client 2025-02-01 20:57:42 +01:00
4d64d73c07
waiting for WHY2_CHAT_CODE_USERNAME 2025-02-01 20:57:07 +01:00
e99f0115d6
disconnecting user on ca auth end 2025-02-01 19:23:24 +01:00
7377b672bf
returing code from why2_listen_authority 2025-02-01 18:07:13 +01:00
bd986f5327
saving user certificate 2025-02-01 17:32:27 +01:00
9099192c8a
sending ca pubkey unencrypted to client 2025-02-01 16:12:46 +01:00
cb9ec62b94
sending authority_username from client during ca 2025-02-01 16:05:29 +01:00
44ddd6b3d1
sending server client's public key 2025-02-01 15:11:26 +01:00
56bd7c664d
fixed double read from authority 2025-02-01 15:09:44 +01:00
f404da5e2d
sending ca pubkey to client 2025-02-01 14:00:59 +01:00
c10677c29c
added plain why2_listen_authority fn 2025-02-01 13:41:59 +01:00
86c804b6c0
changed __WHY2_ACCEPT_THREAD_PARAMS identifier to lowercase
i forgot it isn't macro
2025-01-31 17:10:30 +01:00
2e53e63345
changed codes to shorter forms
also rename PM codes to DM codes but I already staged it and i am too lazy to redo it
2025-01-31 17:04:53 +01:00
4b6ca483c8
using _WHY2_ACCEPT_THREAD_PARAMS in why2_accept_thread 2025-01-31 16:57:33 +01:00
8c80d3b815
added plain why2_authority_communicate_thread fn 2025-01-31 16:29:06 +01:00
ee1c784b84
removed WHY_SA macro
first of all, its stupid. second thing - sa? seriously?
2025-01-31 15:56:17 +01:00
07eb596180
checking for WHY2_CHAT_CODE_ACCEPT_MESSAGES from client
it was using the first received message
2025-01-31 14:49:37 +01:00
15e36f5919
added key to connection_node_t 2025-01-31 14:42:30 +01:00
b392451486
fixed server receive code param error 2025-01-31 14:31:30 +01:00
0781fc4caf
fixed uninitialized variable 2025-01-31 14:07:29 +01:00
cf70fb0367
proccessing codes in server receive 2025-01-31 14:00:37 +01:00
771e0de333
sending WHY2_CHAT_CODE_INVALID_PASSWORD as a code 2025-01-31 13:54:13 +01:00
2394006d76
sending WHY2_CHAT_CODE_ENTER_PASSWORD as a code 2025-01-31 13:53:39 +01:00
b96852606e
sending WHY2_CHAT_CODE_PM_SERVER as a code 2025-01-31 13:53:00 +01:00
06f5d434c1
sending WHY2_CHAT_CODE_VERSION_SERVER as a code 2025-01-31 13:51:13 +01:00
e66109c262
sending WHY2_CHAT_CODE_LIST_SERVER as a code
not sure if it will work (there's no way for me to test it rn...)
2025-01-31 13:49:55 +01:00
1978ed4cd8
sending WHY2_CHAT_CODE_INVALID_USERNAME as a code 2025-01-31 13:40:25 +01:00
3b603f25e8
sending WHY2_CHAT_CODE_SSQC as a code 2025-01-31 13:39:47 +01:00
fa8560d51a
sending WHY2_CHAT_CODE_PICK_USERNAME as a code 2025-01-31 13:38:21 +01:00
4ca411f32b
prepared client's receive for codes 2025-01-31 13:37:30 +01:00