Store encryption key's in XDG cache directory and make location changable

This commit is contained in:
Iwan Timmer
2015-08-02 19:57:34 +02:00
parent 2d365fbeed
commit ddbec9661a
4 changed files with 22 additions and 2 deletions
+2
View File
@@ -25,6 +25,7 @@
#include "limelight-common/Limelight.h"
#include <sys/stat.h>
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
@@ -416,6 +417,7 @@ int gs_quit_app(PSERVER_DATA server) {
}
int gs_init(PSERVER_DATA server, const char *address, const char *keyDirectory) {
mkdir(keyDirectory, 00755);
if (load_unique_id(keyDirectory) != GS_OK)
return GS_FAILED;