mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-10-14 02:22:03 +08:00
The TLS private keys are kept into a privileged process.
That process is called security-module (sec-mod) and communicates with the workers using a unix domain socket.
This commit is contained in:
@@ -179,6 +179,8 @@ unsigned j;
|
||||
if (pid_file == NULL)
|
||||
READ_STRING("pid-file", pid_file, 0);
|
||||
|
||||
READ_STRING("socket-file", config->socket_file_prefix, 1);
|
||||
|
||||
READ_STRING("banner", config->banner, 0);
|
||||
READ_TF("always-require-cert", config->force_cert_auth, 0, 1);
|
||||
READ_TF("use-utmp", config->use_utmp, 0, 1);
|
||||
@@ -353,6 +355,7 @@ unsigned i;
|
||||
DEL(config->xml_config_hash);
|
||||
DEL(config->cert_hash);
|
||||
#endif
|
||||
DEL(config->socket_file_prefix);
|
||||
DEL(config->plain_passwd);
|
||||
DEL(config->ocsp_response);
|
||||
DEL(config->banner);
|
||||
@@ -411,3 +414,11 @@ FILE* fp;
|
||||
fprintf(fp, "%u", (unsigned)getpid());
|
||||
fclose(fp);
|
||||
}
|
||||
|
||||
void remove_pid_file(void)
|
||||
{
|
||||
if (pid_file==NULL)
|
||||
return;
|
||||
|
||||
remove(pid_file);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user