804 Commits

Author SHA1 Message Date
6cce28c65a
implemented why2_malloc & why2_calloc & why2_free 2023-01-29 20:39:52 +01:00
e075c022fa
defined why2_calloc & why2_free
same thing as why2_malloc
2023-01-29 20:36:54 +01:00
3491d89a86
declared why2_calloc & why2_free 2023-01-29 20:35:16 +01:00
f04c5447f1
added memory header to why2 header 2023-01-29 20:28:40 +01:00
2bfec0be95
defined why2_malloc
it will be technically just malloc with adding the allocated memory to linked list of something like that; you get the idea
2023-01-29 20:27:19 +01:00
9c7f40a825
declared why2_malloc 2023-01-29 20:25:32 +01:00
3ec087da2f
created memory header & source file
abcdefghijklmnopqrstuvwxyz
2023-01-29 20:19:29 +01:00
5e8cf54145
renamed every global function & flag
basically - it's in snake_case now AND there's "why2_" at the beginning
2023-01-29 20:14:11 +01:00
da25700f11
implemented misc.c movement in makefile 2023-01-29 19:46:29 +01:00
dc20b49cc5
moved why2-core's misc to utils directory 2023-01-29 19:46:01 +01:00
a35ac047f3
renamed RETURN_CODES to LOGGER_EXIT_CODES
I should probably add "WHY2" at beginning of every flag, function etc.

but I'm to lazy for that :)
2023-01-27 16:16:20 +01:00
1a209b8675
replaced some why2_bool with EXIT_CODES 2023-01-27 16:14:04 +01:00
5524a4b6e5
renamed boolean typedef to why2_bool
to prevent from conflicts
2023-01-27 16:03:01 +01:00
5c50174212
fixed one remaining memory leak from checkVersion
lmao I thought the memory leak was bug in json-c :DD
2023-01-27 15:31:37 +01:00
b50ed767ac
fixed allocation sizes in decryptLogger
removed the todo yay
2023-01-27 14:31:53 +01:00
d01dc9dc47
added debug flag to CFLAGS 2023-01-27 14:26:37 +01:00
5fd017c6fb
replaced malloc & strcpy with strdup in core-test 2023-01-26 13:34:14 +01:00
c75c4fd84b
replaced all memset with calloc 2023-01-26 12:59:30 +01:00
44bc62c73b
fixed unused copy of usedText
idk
2023-01-26 12:52:22 +01:00
bf96f9e55e
replaced malloc with strcpy with strdup
heh
2023-01-26 12:48:07 +01:00
4ec8edafcb
completed deallocation functions
I mean it worked fine, but now it sets strings to null etc.
2023-01-26 10:26:01 +01:00
e2eca1e3ea
revert "removed unused void casts"
yes so it works on my machine

but not on debian-based; fuck

reverts commit 8700f38260350cec20b6c48b30eda977018faab9.
2023-01-25 20:38:56 +01:00
8700f38260
removed unused void casts
wtf without it, it was throwing compile errors (like month ago) and now it works perfectly fine wtfff
2023-01-25 20:37:26 +01:00
c5255bfa3e
added few more tests to logger-test 2023-01-25 20:33:05 +01:00
3b7622b846
fixed deallocateDecryptedOutput's bad variable type 2023-01-25 14:18:53 +01:00
91435a29c8
implemented decryptedOutput in logger-test 2023-01-25 14:17:18 +01:00
07c787b22e
implemented deallocateDecryptedOutput 2023-01-25 14:16:12 +01:00
d16f48b760
replaced deallocateDoublePointer with deallocateDecryptedOutput 2023-01-25 14:13:52 +01:00
e7282dec5a
changed decrypLogger type to decryptedOutput
cuz length
2023-01-25 13:50:47 +01:00
6e3e05aa0b
created decryptedOutput typedef 2023-01-25 13:45:37 +01:00
c001f9c6bb
implemented WRITE_MESSAGEs in logger-test 2023-01-25 13:44:34 +01:00
79c39d6ee0
created WRITE_MESSAGE_2 & WRITE_MESSAGE_3
more testing yk
2023-01-25 12:19:53 +01:00
1fb64603bb
renamed WRITE_MESSAGE to WRITE_MESSAGE_1 2023-01-25 12:16:35 +01:00
0a0eb94a83
implemented deallocateDoublePointer in utils' decryptLogger 2023-01-25 12:11:57 +01:00
caaa9f9b00
implemented deallocateDoublePointer in logger-test 2023-01-25 12:10:21 +01:00
abecff2c33
defined deallocateDoublePointer
idk if it is safe, but it works heh
2023-01-25 12:09:13 +01:00
38ab5ac67d
declared deallocateDoublePointer function 2023-01-25 12:00:09 +01:00
299001a8f7
removed unused removeSpaces function 2023-01-25 11:06:13 +01:00
b794cab66f
added code to logger-test for comparing WRITE_MESSAGE and decrypted logger output
ma englant gut
2023-01-25 10:44:09 +01:00
3673f24964
rewrote whole decryptLogger
yay that shit works now

weeeeeeeeeeeeeeeeeee
2023-01-25 10:41:50 +01:00
e782676c85
removed unused print
I forgor
2023-01-24 12:26:47 +01:00
25b2690ab5
changed decryptLogger type to char** 2023-01-24 12:17:42 +01:00
6620382d4e
created code for decrypting logger
send part of this update tho
2023-01-24 12:16:16 +01:00
000021b9a2
FINALLY created code for loading logFile as pointer-to-pointer char
I should probably fix the valgrind issues heh..
2023-01-24 11:58:47 +01:00
f2a62fdb7b
added colon to WRITE_FORMAT flag
and implemented it => that flag is used for getting length of log prefix so yeah you get it

hehe
2023-01-24 11:55:42 +01:00
914e7a2020
added read mode to logFile creation 2023-01-21 21:09:48 +01:00
b71bab6749
added vgcores to clean rule 2023-01-06 15:25:57 +01:00
c3229e76a6
added vgcores to ignored 2023-01-06 15:25:16 +01:00
900cde63ca
moved some makefile variables on better place
smart yk
2023-01-06 15:20:39 +01:00
596d6aff9a
removing newline from logMessage 2022-12-11 17:59:43 +01:00