create key pair if it is not found in database
This commit is contained in:
parent
294662e2ae
commit
74952aae1c
1 changed files with 1 additions and 0 deletions
|
@ -64,6 +64,7 @@ keypair_t *get_keypair(char *username)
|
|||
FILE *pkf = fopen(pk_path, "r");
|
||||
FILE *skf = fopen(sk_path, "r");
|
||||
if (!pkf || !skf) {
|
||||
create_keypair(username);
|
||||
printf("Error opening key files.\n");
|
||||
return NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue