179 Commits

Author SHA1 Message Date
af1a1d8855
showing client whether he is logging in or registering 2025-02-04 22:07:18 +01:00
ffcdfa0657
created is_server & set_server functions 2025-02-03 21:11:18 +01:00
b6dff4d2f3
included stddef in crypto header
All checks were successful
Codacy Scan / Codacy Security Scan (push) Successful in 16s
Build WHY2-chat / test-why2 (./out/why2-chat-client, ./configure.sh, ubuntu-latest, ./out/why2-chat-server) (push) Successful in 1m32s
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 2m15s
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 2m27s
cause github actions are way too stupid...
2025-02-02 21:58:23 +01:00
97ee13591e
created WHY2_CHAT_MESSAGE_DELIMITER macro 2025-02-02 18:08:30 +01:00
4c7100760b
changed base64_encode length to size_t* 2025-02-02 15:01:20 +01:00
0a9a716ffe
moved base64 fns to crypto header 2025-02-02 14:59:52 +01:00
90be3ebc21
passing key to send/receive functions 2025-02-02 00:02:56 +01:00
7b2f55e3ae
created client_server_key fns 2025-02-01 22:11:39 +01:00
481bce366c
removed message parameter from why2_chat_ecc_shared_key 2025-02-01 21:54:43 +01:00
4317c9fa5d
renamed why2_chat_ecc_encrypt to why2_chat_ecc_shared_key
it will be used only for encrypting WHY2 key
2025-02-01 21:49:42 +01:00
ca6b81943a
moved SC codes one up 2025-02-01 21:18:20 +01:00
a242fbea95
added cs/sc key exchange macros 2025-02-01 21:06:50 +01:00
ee309b2cbb
created WHY2_CHAT_CODE_USERNAME macro 2025-02-01 21:01:13 +01:00
6c53169f09
added askin_username getter & setter 2025-02-01 20:47:45 +01:00
2970878bce
created WHY2_CHAT_CODE_USERNAME macro 2025-02-01 20:39:36 +01:00
a42764f6d6
created WHY2_CHAT_CODE_SUCCESS and WHY2_CHAT_CODE_FAILURE macros 2025-02-01 16:32:58 +01:00
61c06dc25a
created why2_get_authority_cert_path fn 2025-02-01 16:26:32 +01:00
43f4d31023
created WHY2_CHAT_AUTHORITY_CERTS_EXTENSION macro 2025-02-01 16:23:33 +01:00
82a572bda1
created why2_toml_write_preserve rust fn
same as why2_toml_write but does not remove comments
2025-02-01 16:04:04 +01:00
3227814edf
created why2_get_client_config_path fn 2025-02-01 15:24:23 +01:00
89c0f87678
created WHY2_CHAT_CODE_CLIENT_KEY_EXCHANGE macro 2025-02-01 14:58:39 +01:00
e51a6bf4e8
created why2_chat_ecc_encrypt fn 2025-02-01 14:54:11 +01:00
145f8d790f
created WHY2_CHAT_PADDING macro
how much padding should be used in chat encryption
2025-02-01 14:53:05 +01:00
ea1bb6789e
added length parameter to why2_sha256 2025-02-01 14:37:53 +01:00
c10677c29c
added plain why2_listen_authority fn 2025-02-01 13:41:59 +01:00
7eaee3a89c
created WHY2_CHAT_CODE_KEY_EXCHANGE macro 2025-02-01 13:21:48 +01:00
bf354372ff
created why2_chat_ecc_deserialize_public_key fn 2025-02-01 13:03:21 +01:00
7bb6e38a99
created why2_chat_ecc_serialize_public_key fn 2025-02-01 12:55:39 +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
316bdcc778
created _WHY2_ACCEPT_THREAD_PARAMS struct 2025-01-31 16:52:25 +01:00
1928519757
created WHY2_CHAT_SERVER_TYPE enum 2025-01-31 16:32:20 +01:00
8c80d3b815
added plain why2_authority_communicate_thread fn 2025-01-31 16:29:06 +01:00
78fc77cd69
created WHY2_CHAT_AUTHORITY_DIR macro 2025-01-31 15:59:14 +01:00
ee1c784b84
removed WHY_SA macro
first of all, its stupid. second thing - sa? seriously?
2025-01-31 15:56:17 +01:00
0994558a39
created WHY2_CHAT_AUTHORITY_PORT macro 2025-01-31 15:53:42 +01:00
2768280e7f
declared why2_chat_init_authority 2025-01-31 15:52:00 +01:00
1f9df8363a
added why2_send_socket_code fn 2025-01-31 12:39:55 +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
ac88620d99
added key parameter to why2_chat_ecc_verify_signature declaration 2025-01-30 20:06:20 +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
5cc8c43b62
declared why2_chat_ecc_sign
used for signing message with ECC
2025-01-29 21:13:59 +01:00
b977d0dd40
removed unused key macro
and renamed the key file
2025-01-29 20:50:54 +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
fb2ac1a7bb
moved checksum stuff to core-crypto
also created the core-crypto
2024-11-19 21:57:29 +01:00
f3bd52b674
declared why2_checksum_segment 2024-11-19 21:39:34 +01:00
4ff03864d0
included the rust fn in config header 2024-09-02 15:14:53 +02:00
e06a237491
replaced asking_password with boolean 2024-09-01 20:57:29 +02:00