renamed WHY2_CHAT_PUB_KEY_LOCATION to WHY2_CHAT_KEY_LOCATION
This commit is contained in:
parent
c89ae6c884
commit
923b9907db
@ -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
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user