254 Commits

Author SHA1 Message Date
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
Some checks failed
Codacy Scan / Codacy Security Scan (push) Successful in 13s
Build WHY2-chat / test-why2 (./out/why2-chat-client, ./configure.sh, ubuntu-latest, ./out/why2-chat-server) (push) Failing after 1m50s
Test Project / test-project (./configure.sh, gdb -ex "run" -ex "quit" --batch, ubuntu-latest, ./test) (push) Failing after 1m45s
Test WHY2-core / test-why2 (why2, ./configure.sh, gdb -ex "run" -ex "quit" --batch, ubuntu-latest, ./out/why2-core-test, valgrind --leak-check=full --show-leak-kinds=reachable --track-origins=yes -s) (push) Failing after 2m11s
Test WHY2-logger / test-why2 (why2-logger, ./configure.sh, gdb -ex "run" -ex "quit" --batch, ubuntu-latest, ./out/why2-logger-test, valgrind --leak-check=full --show-leak-kinds=reachable --track-origins=yes -s) (push) Failing after 2m10s
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
Some checks failed
Codacy Scan / Codacy Security Scan (push) Successful in 21s
Build WHY2-chat / test-why2 (./out/why2-chat-client, ./configure.sh, ubuntu-latest, ./out/why2-chat-server) (push) Failing after 1m33s
Test WHY2-core / test-why2 (why2, ./configure.sh, gdb -ex "run" -ex "quit" --batch, ubuntu-latest, ./out/why2-core-test, valgrind --leak-check=full --show-leak-kinds=reachable --track-origins=yes -s) (push) Failing after 1m52s
Test WHY2-logger / test-why2 (why2-logger, ./configure.sh, gdb -ex "run" -ex "quit" --batch, ubuntu-latest, ./out/why2-logger-test, valgrind --leak-check=full --show-leak-kinds=reachable --track-origins=yes -s) (push) Failing after 1m51s
Test Project / test-project (./configure.sh, gdb -ex "run" -ex "quit" --batch, ubuntu-latest, ./test) (push) Failing after 1m53s
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
Some checks failed
Codacy Scan / Codacy Security Scan (push) Successful in 38s
Test Project / test-project (./configure.sh, gdb -ex "run" -ex "quit" --batch, ubuntu-latest, ./test) (push) Failing after 2m4s
Build WHY2-chat / test-why2 (./out/why2-chat-client, ./configure.sh, ubuntu-latest, ./out/why2-chat-server) (push) Failing after 2m10s
Test WHY2-logger / test-why2 (why2-logger, ./configure.sh, gdb -ex "run" -ex "quit" --batch, ubuntu-latest, ./out/why2-logger-test, valgrind --leak-check=full --show-leak-kinds=reachable --track-origins=yes -s) (push) Failing after 2m26s
Test WHY2-core / test-why2 (why2, ./configure.sh, gdb -ex "run" -ex "quit" --batch, ubuntu-latest, ./out/why2-core-test, valgrind --leak-check=full --show-leak-kinds=reachable --track-origins=yes -s) (push) Failing after 2m29s
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
Some checks failed
Codacy Scan / Codacy Security Scan (push) Successful in 1m16s
Test WHY2-core / test-why2 (why2, ./configure.sh, gdb -ex "run" -ex "quit" --batch, ubuntu-latest, ./out/why2-core-test, valgrind --leak-check=full --show-leak-kinds=reachable --track-origins=yes -s) (push) Failing after 1m54s
Test WHY2-logger / test-why2 (why2-logger, ./configure.sh, gdb -ex "run" -ex "quit" --batch, ubuntu-latest, ./out/why2-logger-test, valgrind --leak-check=full --show-leak-kinds=reachable --track-origins=yes -s) (push) Failing after 1m54s
Build WHY2-chat / test-why2 (./out/why2-chat-client, ./configure.sh, ubuntu-latest, ./out/why2-chat-server) (push) Failing after 2m20s
Test Project / test-project (./configure.sh, gdb -ex "run" -ex "quit" --batch, ubuntu-latest, ./test) (push) Failing after 2m29s
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
All checks were successful
Codacy Scan / Codacy Security Scan (push) Successful in 1m9s
Test WHY2-core / test-why2 (why2, ./configure.sh, gdb -ex "run" -ex "quit" --batch, ubuntu-latest, ./out/why2-core-test, valgrind --leak-check=full --show-leak-kinds=reachable --track-origins=yes -s) (push) Successful in 2m43s
Build WHY2-chat / test-why2 (./out/why2-chat-client, ./configure.sh, ubuntu-latest, ./out/why2-chat-server) (push) Successful in 2m51s
Test WHY2-logger / test-why2 (why2-logger, ./configure.sh, gdb -ex "run" -ex "quit" --batch, ubuntu-latest, ./out/why2-logger-test, valgrind --leak-check=full --show-leak-kinds=reachable --track-origins=yes -s) (push) Successful in 2m53s
Test Project / test-project (./configure.sh, gdb -ex "run" -ex "quit" --batch, ubuntu-latest, ./test) (push) Successful in 2m53s
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
All checks were successful
Test Project / test-project (./configure.sh, gdb -ex "run" -ex "quit" --batch, ubuntu-latest, ./test) (push) Successful in 1m49s
Codacy Scan / Codacy Security Scan (push) Successful in 2m22s
Test WHY2-core / test-why2 (why2, ./configure.sh, gdb -ex "run" -ex "quit" --batch, ubuntu-latest, ./out/why2-core-test, valgrind --leak-check=full --show-leak-kinds=reachable --track-origins=yes -s) (push) Successful in 2m22s
Test WHY2-logger / test-why2 (why2-logger, ./configure.sh, gdb -ex "run" -ex "quit" --batch, ubuntu-latest, ./out/why2-logger-test, valgrind --leak-check=full --show-leak-kinds=reachable --track-origins=yes -s) (push) Successful in 2m33s
Build WHY2-chat / test-why2 (./out/why2-chat-client, ./configure.sh, ubuntu-latest, ./out/why2-chat-server) (push) Successful in 3m20s
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
db032d3066
added send_socket_code_deallocate fn
sends code with params
2025-01-31 13:36:38 +01:00
1f9df8363a
added why2_send_socket_code fn 2025-01-31 12:39:55 +01:00
2e63191085
sending welcome packet code in code field 2025-01-31 12:37:57 +01:00
94969b5588
removed the stupid goto another way
All checks were successful
Codacy Scan / Codacy Security Scan (push) Successful in 11s
Build WHY2-chat / test-why2 (./out/why2-chat-client, ./configure.sh, ubuntu-latest, ./out/why2-chat-server) (push) Successful in 1m48s
Test Project / test-project (./configure.sh, gdb -ex "run" -ex "quit" --batch, ubuntu-latest, ./test) (push) Successful in 1m50s
Test WHY2-core / test-why2 (why2, ./configure.sh, gdb -ex "run" -ex "quit" --batch, ubuntu-latest, ./out/why2-core-test, valgrind --leak-check=full --show-leak-kinds=reachable --track-origins=yes -s) (push) Successful in 2m33s
Test WHY2-logger / test-why2 (why2-logger, ./configure.sh, gdb -ex "run" -ex "quit" --batch, ubuntu-latest, ./out/why2-logger-test, valgrind --leak-check=full --show-leak-kinds=reachable --track-origins=yes -s) (push) Successful in 2m43s
simply deleted it lol - i have no clue why i used the MSG_PEEK in the first place tho
2025-01-25 12:19:13 +01:00
99695875b1
revert "got rid of the dumbass goto in read_socket_raw"
All checks were successful
Codacy Scan / Codacy Security Scan (push) Successful in 6s
Build WHY2-chat / test-why2 (./out/why2-chat-client, ./configure.sh, ubuntu-latest, ./out/why2-chat-server) (push) Successful in 1m53s
Test Project / test-project (./configure.sh, gdb -ex "run" -ex "quit" --batch, ubuntu-latest, ./test) (push) Successful in 2m3s
Test WHY2-core / test-why2 (why2, ./configure.sh, gdb -ex "run" -ex "quit" --batch, ubuntu-latest, ./out/why2-core-test, valgrind --leak-check=full --show-leak-kinds=reachable --track-origins=yes -s) (push) Successful in 2m13s
Test WHY2-logger / test-why2 (why2-logger, ./configure.sh, gdb -ex "run" -ex "quit" --batch, ubuntu-latest, ./out/why2-logger-test, valgrind --leak-check=full --show-leak-kinds=reachable --track-origins=yes -s) (push) Successful in 2m25s
this reverts commit 37a615cb03f1f891c4e31fc54ead028db5a0ebf9

"and possibly created 10 new problems :))" ....... fuck me
2025-01-25 11:27:39 +01:00
5f1b5e2f92
added err todo about client password input 2024-11-17 22:35:56 +01:00
7790d194cb
added code for logging in 2024-09-02 15:34:46 +02:00