From 2f4c73ce0983c6e124fdb89332b3981c3fff60ca Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Sat, 13 Apr 2024 12:26:47 +0200 Subject: [PATCH] created why2_chat_deallocate_keys fn --- include/chat/crypto.h | 1 + src/chat/crypto.c | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/include/chat/crypto.h b/include/chat/crypto.h index 50d627b..10fa7bd 100644 --- a/include/chat/crypto.h +++ b/include/chat/crypto.h @@ -36,6 +36,7 @@ extern "C" { #define WHY2_CHAT_KEY_BASE 62 //BASE IN THE GENERATED KEYS ARE STORED IN WHY2_CHAT_KEY_LOCATION void why2_chat_init_keys(void); //INIT (POSSIBLY GENERATE) RSA KEYS +void why2_chat_deallocate_keys(void); //DEALLOCATE :) (NO SLUR HERE) #ifdef __cplusplus } diff --git a/src/chat/crypto.c b/src/chat/crypto.c index 192363e..671bb0f 100644 --- a/src/chat/crypto.c +++ b/src/chat/crypto.c @@ -115,4 +115,10 @@ void why2_chat_init_keys(void) //DEALLOCATION why2_deallocate(path); +} + +void why2_chat_deallocate_keys(void) +{ + //YOU FUCKING IDIOT DEALLOCATE KEYS + //ARE YOU REALLY THAT DUMB? } \ No newline at end of file