52 Commits

Author SHA1 Message Date
8617e4ca7e
simplified opening VERSIONS file 2022-07-24 16:43:03 +02:00
cfdfd2aa2c
replaced UC with _Bool 2022-07-22 18:22:42 +02:00
340834adf6
implemented math callbacks in TKCh generation => made code easier
part 3/3 (done lol)
2022-07-22 17:46:37 +02:00
6a821910f3
created math operation function using callbacks
part 2/3
2022-07-22 17:43:01 +02:00
86cd1e31c0
created math operations callbacks
part 1/3
2022-07-22 17:42:26 +02:00
0f01cde0f1
[E&D CHANGE] reversed textKeyChain generation
tag 'old-generation-but_newer' contains older generation

https://github.com/ENGO150/WHY2/tree/old-generation-but_newer
2022-07-11 19:12:41 +02:00
8363ff25ea
implemented getFlags in misc 2022-07-10 18:27:00 +02:00
163cbb8c6d
removed inputFlags from misc functions
getter time babyyy
2022-07-10 18:24:44 +02:00
212f0205c5
renamed noUpdate flag to update & swapped its value everywhere
it was kinda annoying when you were trying to disable it with positive value :DD
2022-07-10 17:51:31 +02:00
c3e7caf4b3
added missing installCommand deallocation to auto-update
NOTE: function 'replaceWord' returns allocated text
2022-06-21 19:14:06 +02:00
9ffefa4419
biatch, added every missing type cast
if you're asking why, look at next commit
2022-06-19 17:19:03 +02:00
4aa80c199c
fixed (I hope) every allocation size
"Just use Valgrind", they said.... I should listen to them
2022-06-13 18:13:27 +02:00
b5e27a1857
changed checking functions type from I to UC 2022-06-12 17:20:55 +02:00
ebe54b4b4a
added missing SUCCESS value to skipping check in checkVersion 2022-06-12 16:37:32 +02:00
99e1ca932d
added missing SUCCESS exit to checkKey & checkText 2022-06-12 16:36:41 +02:00
827331c2ff
changed all other checking functions type to int 2022-06-12 16:35:43 +02:00
d196818ec0
changed checkVersion return type to int
it will return exitCode
2022-06-12 16:34:19 +02:00
f9bdbb1053
replaced all exit calls by returning noOutput 2022-06-12 16:28:16 +02:00
23663d5524
added warning
sad
2022-06-11 19:05:23 +02:00
388f0d05c7
created code for auto-update
it's just beta - you have to run program with root perms
2022-06-11 19:00:24 +02:00
7d36275b2a
made 'else' prettier 2022-06-10 19:48:45 +02:00
312e362674
replaced all skipCheck for noCheck 2022-06-08 19:26:24 +02:00
64c225f56e
added missing space to compareTimeMicro 2022-05-30 19:18:37 +02:00
9823b5044a
added elapsedTime to outputFlags
this returns elapsed time in microseconds
2022-05-30 19:09:47 +02:00
abbe519ab4
added unusedKeySize to outputFlags
this returns positive number, which represents how many chars from key are unused
2022-05-30 18:01:21 +02:00
96945a4d31
simplified getting content of fileBuffer in checkVersion
i have no idea why it was like that
2022-05-29 18:40:33 +02:00
7714e45019 changed countIntLength type from I to UL 2022-05-29 17:47:50 +02:00
e3790a2bff changed keyLength type from I to UL 2022-05-29 17:46:16 +02:00
4e0a0c7a27 created function checkText
this checks if text has some content
2022-05-29 16:49:18 +02:00
0d64f4fa7c changed textKeyChain generation
it's a little change but it will make encryption/decryption old text UNSUCCESSFUL
2022-05-28 19:45:26 +02:00
3d48c87d8b made generating textKeyChain more variable 2022-05-28 19:41:57 +02:00
ad6209b1cb changed generateTextKeyChain's key type from array to pointer 2022-05-28 19:38:46 +02:00
252bdef502 added note for unknown version 2022-05-26 19:50:58 +02:00
073cdd2468 moved checking for valid key to misc
I'm trying to make code variable as much as possible
2022-05-26 18:40:46 +02:00
35959a4393 changed textKeyChain generation > fixed possible buffer overflow 2022-05-25 17:51:57 +02:00
12557a6a94 removed new FUCKING trailing spaces 2022-05-25 17:20:10 +02:00
cffdd22b85 found some better way to rewind FILE in version checking
just removing that TODO
2022-05-25 17:18:39 +02:00
6282bc6aec removed only char sizeof
'cause char length is 1 lulw
2022-05-24 18:56:32 +02:00
ef4f9f5084 reverted the sizeof removing
I have no idea
2022-05-24 18:45:44 +02:00
70a2040bab removed unused sizeof
fixing my recent mistakes
2022-05-24 18:03:08 +02:00
cea8f06ad8 changed maximal line length (versions.json) to 32
I think 32 is enough/fine
2022-05-24 17:54:25 +02:00
a1503d6b74 changed buffer for versions.json to correct size
it was set to 256 and guess what? the current versions.json is EXACTLY 256 characters long lmaoo
2022-05-24 17:51:19 +02:00
64bc4482a6 added exit note to DOWNLOAD_FAILED 2022-05-21 18:35:51 +02:00
f2da93818b removed *all* trailing spaces
God, please...
2022-05-21 15:46:19 +02:00
60f0ef807e fixed checkVersion problem(s)
this was caused to invalid buffer
2022-05-12 18:42:17 +02:00
6486f500b6 created code for checking how old is your release
don't ask
2022-05-11 18:15:03 +02:00
1f2031b18c removed double-deallocation problem
this was caused by CURL
2022-05-11 18:00:12 +02:00
f09db993e7 added all missing deallocations (hopefully) 2022-05-11 17:50:01 +02:00
7b5f1ba9b6 created function for deallocating outputFlags 2022-05-08 19:54:46 +02:00
7c86692363 added inputFlags as checkVersion parameter 2022-05-06 17:48:28 +02:00