diff --git a/include/chat/crypto.h b/include/chat/crypto.h index 4be3d4e..e05e003 100644 --- a/include/chat/crypto.h +++ b/include/chat/crypto.h @@ -30,7 +30,7 @@ extern "C" { #define WHY2_CHAT_PRIME_ITERS 100 //NUMBER OF ITERATIONS WHEN CHECKING PRIME NUMBER #define WHY2_CHAT_RSA_EXPONENT 65537 //DEFAULT e -#define WHY2_CHAT_PUB_KEY_LOCATION WHY2_CHAT_CONFIG_DIR "/keys" //KEYS LOCATION +#define WHY2_CHAT_KEY_LOCATION WHY2_CHAT_CONFIG_DIR "/keys" //KEYS LOCATION void why2_chat_generate_keys(void); //GENERATE RSA KEYS diff --git a/src/chat/crypto.c b/src/chat/crypto.c index 9e39b29..4c79443 100644 --- a/src/chat/crypto.c +++ b/src/chat/crypto.c @@ -55,7 +55,7 @@ void generate_prime(mpz_t x) void why2_chat_generate_keys(void) { //GET PATH TO KEY DIR - char *path = why2_replace(WHY2_CHAT_PUB_KEY_LOCATION, "{USER}", getenv("USER")); + char *path = why2_replace(WHY2_CHAT_KEY_LOCATION, "{USER}", getenv("USER")); //CHECK IF KEYS EXIST if (access(path, R_OK) != 0)