1542 Commits

Author SHA1 Message Date
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
c0c0ad6894
using codes in exit_client fn 2025-01-31 14:11:27 +01:00
0781fc4caf
fixed uninitialized variable 2025-01-31 14:07:29 +01:00
a3c54207db
sending WHY2_CHAT_CODE_VERSION as a code
this is the last one. now time for 20 hours of debugging.... yay
2025-01-31 14:05:30 +01:00
c120d38804
sending WHY2_CHAT_CODE_PM as a code 2025-01-31 14:04:40 +01:00
9ab4f50fc6
sending WHY2_CHAT_CODE_LIST as a code 2025-01-31 14:01:41 +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
ea018644f2
skipping strdup on NULL string param 2025-01-31 12:37:08 +01:00
4649b7ccf6
added WHY2_CHAT_COMMAND_PM to client help page 2025-01-30 22:51:41 +01:00
61fdb17018
created WHY2_CHAT_COMMAND_PM macro 2025-01-30 22:49:38 +01:00
e34f92b0d8
renamed WHY2_CHAT_COMMAND_PM to WHY2_CHAT_COMMAND_DM
All checks were successful
Codacy Scan / Codacy Security Scan (push) Successful in 14s
Build WHY2-chat / test-why2 (./out/why2-chat-client, ./configure.sh, ubuntu-latest, ./out/why2-chat-server) (push) Successful in 1m49s
Test Project / test-project (./configure.sh, gdb -ex "run" -ex "quit" --batch, ubuntu-latest, ./test) (push) Successful in 2m6s
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 2m12s
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 2m24s
these will be direct messages - unencrypted communication between two users
2025-01-30 21:20:59 +01:00
6f773bcecf
replaced RSA comment with ECC 2025-01-30 20:23:21 +01:00
c1e7aba879
defined why2_chat_ecc_verify_signature
All checks were successful
Codacy Scan / Codacy Security Scan (push) Successful in 10s
Build WHY2-chat / test-why2 (./out/why2-chat-client, ./configure.sh, ubuntu-latest, ./out/why2-chat-server) (push) Successful in 1m45s
Test Project / test-project (./configure.sh, gdb -ex "run" -ex "quit" --batch, ubuntu-latest, ./test) (push) Successful in 1m42s
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 2m18s
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 2m28s
one commit, 8 hours of going crazy together with AI
2025-01-30 20:07:19 +01:00
ac88620d99
added key parameter to why2_chat_ecc_verify_signature declaration 2025-01-30 20:06:20 +01:00
c8d197f6b9
returning length in base64_decode 2025-01-30 19:58:44 +01:00
210d23369b
implemented base64 delimiter 2025-01-30 19:38:47 +01:00
b859c88dcc
declared why2_chat_ecc_verify_signature 2025-01-30 19:38:02 +01:00
7c2c8b9138
created WHY2_CHAT_BASE64_LENGTH_DELIMITER macro 2025-01-30 19:37:49 +01:00
d764002546
added base64_decode fn
All checks were successful
Codacy Scan / Codacy Security Scan (push) Successful in 22s
Build WHY2-chat / test-why2 (./out/why2-chat-client, ./configure.sh, ubuntu-latest, ./out/why2-chat-server) (push) Successful in 1m56s
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 2m17s
Test Project / test-project (./configure.sh, gdb -ex "run" -ex "quit" --batch, ubuntu-latest, ./test) (push) Successful in 2m16s
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 2m29s
and tweaked the encode fn a bit
2025-01-29 22:44:46 +01:00
685b8e446e
defined why2_chat_ecc_sign
and its not working as expected lol

i will fix it in next commits, i just need this for change comparison
2025-01-29 21:15:24 +01:00
0b3cb2f957
added local base64_encode fn 2025-01-29 21:14:39 +01:00
5cc8c43b62
declared why2_chat_ecc_sign
used for signing message with ECC
2025-01-29 21:13:59 +01:00
8d17915a05
generating only one keyfile
lol ima stoopid - it seems you need only private key file and you can generate the pub from it
2025-01-29 20:52:16 +01:00
b977d0dd40
removed unused key macro
and renamed the key file
2025-01-29 20:50:54 +01:00
8b7aa98b70
removed GMP dependency
All checks were successful
Test Project / test-project (./configure.sh, gdb -ex "run" -ex "quit" --batch, ubuntu-latest, ./test) (push) Successful in 3m26s
Codacy Scan / Codacy Security Scan (push) Successful in 3m50s
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 3m58s
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 4m8s
Build WHY2-chat / test-why2 (./out/why2-chat-client, ./configure.sh, ubuntu-latest, ./out/why2-chat-server) (push) Successful in 4m56s
2025-01-29 16:35:45 +01:00
eff50818ea
added code for ecc keypair generation
also removed unused rsa shit
2025-01-29 16:35:02 +01:00
b833b56aef
changed up crypto header for ECC update
ill replace rsa with ecc i guess. Why? i fucking hate myself
2025-01-29 16:33: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
56672a3cfd
fixed distro ifs case
All checks were successful
Codacy Scan / Codacy Security Scan (push) Successful in 5s
Build WHY2-chat / test-why2 (./out/why2-chat-client, ./configure.sh, ubuntu-latest, ./out/why2-chat-server) (push) Successful in 1m43s
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 2m24s
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 2m35s
moo
2025-01-25 10:50:52 +01:00
6eeddbd14e
replaced lsb_release with os-release file
Some checks failed
Codacy Scan / Codacy Security Scan (push) Successful in 7s
Build WHY2-chat / test-why2 (./out/why2-chat-client, ./configure.sh, ubuntu-latest, ./out/why2-chat-server) (push) Failing after 37s
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 50s
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 53s
Test Project / test-project (./configure.sh, gdb -ex "run" -ex "quit" --batch, ubuntu-latest, ./test) (push) Failing after 50s
also supporting X-based distributions
2025-01-25 10:45:35 +01:00
17a73d9157
implemented anon flags in logger
All checks were successful
Codacy Scan / Codacy Security Scan (push) Successful in 1m45s
Build WHY2-chat / test-why2 (./out/why2-chat-client, ./configure.sh, ubuntu-latest, ./out/why2-chat-server) (push) Successful in 3m42s
Test Project / test-project (./configure.sh, gdb -ex "run" -ex "quit" --batch, ubuntu-latest, ./test) (push) Successful in 3m41s
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 4m11s
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 4m24s
2025-01-13 19:55:54 +01:00
520f8bce34
created anon fns for core-flags changed vars
calling sets flag without changing flag_changed variable
2025-01-13 19:54:44 +01:00
9e5016feb7
defined why2_get_padding_changed
and guess what it returns
2025-01-13 19:46:00 +01:00
59d6252fe3
declared why2_get_padding_changed fn 2025-01-13 19:45:19 +01:00
64f54fadce
added padding_changed to core-flags 2025-01-13 19:44:39 +01:00
4451b848f7
changed weird variable names in core-flags 2025-01-13 19:42:05 +01:00
917b466b11
replacing \n with space in logger
instead of null-term and breaking the string
2025-01-13 19:22:53 +01:00