renamed WHY2_CHAT_PUB_KEY_LOCATION to WHY2_CHAT_KEY_LOCATION

This commit is contained in:
Václav Šmejkal 2024-02-23 11:08:19 +01:00
parent c89ae6c884
commit 923b9907db
Signed by: ENGO150
GPG Key ID: 4A57E86482968843
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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)