aboutsummaryrefslogtreecommitdiff
path: root/kms/client/kms_client.h
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2023-11-12 10:55:02 +0100
committerdec05eba <dec05eba@protonmail.com>2023-11-12 10:55:02 +0100
commit290db495ff81d2af965198a8892c8f49b9d6daf7 (patch)
treebc6e26e299d920fe23cb5655e53ca8a331a394a4 /kms/client/kms_client.h
parent1ac862d155e10f050e6f6cca5381f9f5a3528d98 (diff)
kms client/server: replace unix domain socket file with socketpair after connecting (fixes issue of .gsr-kms-socket files remaining in $HOME)
Diffstat (limited to 'kms/client/kms_client.h')
-rw-r--r--kms/client/kms_client.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/kms/client/kms_client.h b/kms/client/kms_client.h
index 254637b..02f2dd1 100644
--- a/kms/client/kms_client.h
+++ b/kms/client/kms_client.h
@@ -7,9 +7,10 @@
typedef struct {
pid_t kms_server_pid;
- int socket_fd;
- int client_fd;
- char socket_path[PATH_MAX];
+ int initial_socket_fd;
+ int initial_client_fd;
+ char initial_socket_path[PATH_MAX];
+ int socket_pair[2];
} gsr_kms_client;
/* |card_path| should be a path to card, for example /dev/dri/card0 */