diff --git a/src/core/lib/flags.c b/src/core/lib/flags.c index b835f33..cc2a8d4 100644 --- a/src/core/lib/flags.c +++ b/src/core/lib/flags.c @@ -82,6 +82,11 @@ why2_bool why2_get_flags_changed(void) return flagsChanged; } +char *why2_get_memory_identifier(void) +{ + return memory_identifier; +} + //SETTERS void why2_set_encryption_separator(char encryptionSeparatorNew) { @@ -109,6 +114,16 @@ void why2_set_encryption_operation(why2_encryption_operation_cb newEncryptionOpe encryptionOperation_cb = newEncryptionOperation; } +void why2_set_memory_identifier(char *new_memory_identifier) +{ + memory_identifier = new_memory_identifier; +} + +void why2_reset_memory_identifier(void) +{ + memory_identifier = DEFAULT_MEMORY_IDENTIFIER; +} + //SOME OTHER SHIT int encryptionOperation(int text, int encryptedText) {