From ae906571e5bfd7c75c88f54718001e3e1545f959 Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Fri, 3 Feb 2023 17:18:09 +0100 Subject: [PATCH] revert why2_generate_key type change revert c0e49247921b97c15e06427bcbbc3c0628bfff3d --- include/misc.h | 2 +- src/core/lib/utils/misc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/misc.h b/include/misc.h index 5297670..26c1ffb 100644 --- a/include/misc.h +++ b/include/misc.h @@ -24,7 +24,7 @@ along with this program. If not, see . #include void why2_generate_text_key_chain(char *key, int *textKeyChain, int textKeyChainSize); //GENERATES ARRAY FOR ENCRYPTION/DECRYPTION -enum WHY2_EXIT_CODES why2_generate_key(char *key, int keyLength); //GENERATE ENCRYPTION KEY +void why2_generate_key(char *key, int keyLength); //GENERATE ENCRYPTION KEY void why2_deallocate_output(why2_output_flags flags); //DEALLOCATES flags enum WHY2_EXIT_CODES why2_check_version(void); //THIS FUNCTION CHECKS IF LATEST WHY2_VERSION OF WHY2 IS USED enum WHY2_EXIT_CODES why2_check_key(char *key); //CHECKS IF KEY IS VALID diff --git a/src/core/lib/utils/misc.c b/src/core/lib/utils/misc.c index 8faccbe..725b870 100644 --- a/src/core/lib/utils/misc.c +++ b/src/core/lib/utils/misc.c @@ -411,7 +411,7 @@ unsigned long why2_compare_time_micro(struct timeval startTime, struct timeval f return (finishTime.tv_sec - startTime.tv_sec) * 1000000 + finishTime.tv_usec - startTime.tv_usec; } -enum WHY2_EXIT_CODES why2_generate_key(char *key, int keyLength) +void why2_generate_key(char *key, int keyLength) { int numberBuffer;