added missing flags to inputFlags constructors

This commit is contained in:
Václav Šmejkal 2022-06-08 19:25:54 +02:00
parent df7822975a
commit 5511210d89
No known key found for this signature in database
GPG Key ID: FD749A97DF2D5E19
4 changed files with 4 additions and 2 deletions

View File

@ -26,6 +26,7 @@ typedef struct
{ {
unsigned char noCheck; //BOOLEAN FOR SKIPPING VERSION CHECK unsigned char noCheck; //BOOLEAN FOR SKIPPING VERSION CHECK
unsigned char noOutput; //BOOLEAN FOR NOT PRINTING OUTPUT WHEN ENCRYPTING/DECRYPTING unsigned char noOutput; //BOOLEAN FOR NOT PRINTING OUTPUT WHEN ENCRYPTING/DECRYPTING
unsigned char noUpdate; //BOOLEAN FOR NOT UPDATING YOUR WHY VERSION IF OLD IS USED
} inputFlags; } inputFlags;
typedef struct typedef struct

View File

@ -5,7 +5,7 @@
int main(void) int main(void)
{ {
//RUN ENCRYPTION WITH TEXT_TO_ENCRYPT, GENERATE NEW KEY AND DO NOT CHECK FOR ACTIVE VERSION & PREVENT ANY OUTPUT //RUN ENCRYPTION WITH TEXT_TO_ENCRYPT, GENERATE NEW KEY AND DO NOT CHECK FOR ACTIVE VERSION & PREVENT ANY OUTPUT
outputFlags encryptedText = encryptText(TEXT_TO_ENCRYPT, NULL, (inputFlags) {1, 1}); outputFlags encryptedText = encryptText(TEXT_TO_ENCRYPT, NULL, (inputFlags) {1, 1, 1});
//SIMPLE TEXT //SIMPLE TEXT
printf printf

View File

@ -7,7 +7,7 @@ unsigned long getKeyLength()
inputFlags noFlags() inputFlags noFlags()
{ {
return (inputFlags) {0, 0}; return (inputFlags) {0, 0, 0};
} }
void setKeyLength(int keyLengthNew) void setKeyLength(int keyLengthNew)

View File

@ -17,6 +17,7 @@ int main(void)
{ {
0, //SKIP CHECK 0, //SKIP CHECK
0, //NO OUTPUT 0, //NO OUTPUT
0 //NO UPDATE
}; };
//SET KEY_LENGTH TO 100 //SET KEY_LENGTH TO 100