764 Commits

Author SHA1 Message Date
0a61d0ad57
removed returned object from why2_generate_key 2023-02-03 17:19:43 +01:00
ae906571e5
revert why2_generate_key type change
revert c0e49247921b97c15e06427bcbbc3c0628bfff3d
2023-02-03 17:18:09 +01:00
9207c1c309
processing exit value of why2_generate_key's fread
didn't I say removing all TODOs?
2023-02-03 17:16:15 +01:00
c0e4924792
changed why2_generate_key's type to WHY2_EXIT_CODES 2023-02-03 17:15:40 +01:00
02dd68b385
processing exit value of why2_check_version's fread
removing all TODOs
2023-02-03 17:06:02 +01:00
bbb09428d1
renamed all 'public' identificators to snake_case
I mean the identificators user gets in contact with
2023-02-03 17:03:46 +01:00
84a1f4ec8b
renamed why2_input_flags' why2_no_output back to noOutput 2023-02-03 16:53:37 +01:00
f4975050e4
added 'bypass' to why2_clean_memory
if you pass DEFAULT_IDENTIFIER as parameter every node is deallocated
2023-02-03 16:43:04 +01:00
cd4c94024a
fixed why2_clean_memory memory leak
wow 'garbage collector' that cases memory leaks

pls don't laugh at me :(
2023-02-03 16:37:58 +01:00
990476787f
added explanatory comment to why2_clean_memory declaration 2023-02-03 16:37:00 +01:00
fdf1b4e696
idk random reformatting 2023-02-03 16:12:53 +01:00
6cad1c3079
removed unused include from flags 2023-02-02 18:10:32 +01:00
1be000e46d
changed version_check to core_version_check in why2_check_version 2023-02-02 18:06:59 +01:00
e0cacd52a7
implemented why2_clean_memory in encrypter 2023-02-02 18:05:21 +01:00
eec8d13a5c
added identifier reset at the end of why2_clean_memory 2023-02-02 17:56:56 +01:00
c2cc6aa4ba
implemented linked list & renamed some stuff
it was causing double declaration compiler problems but why tf
2023-02-02 17:44:32 +01:00
28aff070eb
added void parameter to remove_node_from_end 2023-02-02 17:40:14 +01:00
00fbba4159
created get_last_node_identifier function 2023-02-02 17:39:53 +01:00
cc91298e5f
created linked list stuff in flags 2023-02-02 17:36:56 +01:00
f0f0fa02e7
removed unused allocations
NOTE: This wasn't causing any memory leaks, I just made my own realloc where you can pass NULL as pointer
2023-02-02 17:20:45 +01:00
33354b8921
implemented why2_clean_memory in why2_check_version 2023-02-02 17:10:08 +01:00
7f503ebafa
changed DEFAULT_MEMORY_IDENTIFIER to "" 2023-02-02 16:59:07 +01:00
b49f582c5c
defined why2_clean_memory
it should be complete now, time to implement it
2023-02-02 16:53:25 +01:00
790eada639
fixed possible segfault in remove_node 2023-02-02 16:52:42 +01:00
77b5d5acae
defined why2_get_default_memory_identifier 2023-02-02 16:43:40 +01:00
aa6b484363
declared why2_get_default_memory_identifier 2023-02-02 16:42:55 +01:00
abbd820778
declared why2_clean_memory 2023-02-02 16:40:24 +01:00
1b9d0a04d8
implemented memory_identifier in memory
added it to every node
2023-02-02 16:37:04 +01:00
b36bf1a850
defined why2_get_memory_identifier, why2_set_memory_identifier and why2_reset_memory_identifier 2023-02-02 16:33:54 +01:00
2c7130304f
created memory_identifier flag 2023-02-02 16:32:13 +01:00
70335e67ad
declared why2_get_memory_identifier, why2_set_memory_identifier and why2_reset_memory_identifier 2023-02-02 16:28:47 +01:00
9bfa7453ec
fixed why2_realloc memory leak
so basically - this function was running realloc SO free() was used... I need why2_free() :D

fixed that fucking leak yay
2023-02-02 15:50:43 +01:00
c9c65badad
variable name typo fix 2023-02-02 15:34:41 +01:00
c3e602de90
random reformatting 2023-02-02 15:27:05 +01:00
17cc602629
fixed possible get_node issue 2023-02-02 15:24:26 +01:00
568ac4e43e
renamed get_node's parameter to pointer 2023-02-02 15:19:25 +01:00
273caad781
replaced doubly linked list with single linked list in memory
there's now much smaller place for bugs, BUT THEY ARE STILL THERE wtf
2023-02-02 15:09:22 +01:00
d885e62502
fixed WHY2_LOGGER_EXIT_CODES typo 2023-02-01 16:14:01 +01:00
f405c486c8
I have no idea what I'm doing 2023-02-01 16:10:51 +01:00
d1b3960799
fixed some potention segfault 2023-02-01 15:59:04 +01:00
115a4c20de
fixed some shitty bugs in remove_node
yay now like 4561456456 bugs remain
2023-02-01 15:53:58 +01:00
85731bab38
added check if pointer was found in why2_free 2023-02-01 15:26:17 +01:00
f8f53b4305
implemented why2_strdup
hehe
2023-02-01 15:11:27 +01:00
0b4ca30ec9
defined why2_strdup
I hope I won't fuck up anything by this
2023-02-01 15:10:10 +01:00
d5ae68c621
declared why2_strdup 2023-02-01 15:07:07 +01:00
66560fd033
reformated why2_free
I just realized I am freeing with why2_free ALL THE TIME, so it is causing some problems when freeing like strdup or anything
2023-02-01 15:06:00 +01:00
c8e2c4226d
added list deallocation to remove_node 2023-01-31 19:03:02 +01:00
fefc2f83e2
fixed remove_node linking problems
the fucking memory leaks remain
2023-01-31 18:52:52 +01:00
7dd4f08d55
removed unused stdlib includes 2023-01-31 18:20:35 +01:00
7a017b3a8c
fixed some linked list shit 2023-01-31 18:17:59 +01:00