Allow the CSTP layer to operate without TLS

That also introduces a unix domain socket under which connections to the
server can occur.
This commit is contained in:
Nikos Mavrogiannopoulos
2014-09-23 16:08:29 +02:00
parent ddcb609c5d
commit 4ea5a56ace
12 changed files with 435 additions and 244 deletions
+2
View File
@@ -82,6 +82,7 @@ static struct cfg_options available_options[] = {
{ .name = "disconnect-script", .type = OPTION_STRING, .mandatory = 0 },
{ .name = "pid-file", .type = OPTION_STRING, .mandatory = 0 },
{ .name = "socket-file", .type = OPTION_STRING, .mandatory = 1 },
{ .name = "unix-conn-file", .type = OPTION_STRING, .mandatory = 0 },
{ .name = "occtl-socket-file", .type = OPTION_STRING, .mandatory = 0 },
{ .name = "banner", .type = OPTION_STRING, .mandatory = 0 },
{ .name = "use-seccomp", .type = OPTION_BOOLEAN, .mandatory = 0 },
@@ -436,6 +437,7 @@ unsigned force_cert_auth;
if (reload == 0 && pid_file[0] == 0)
READ_STATIC_STRING("pid-file", pid_file);
READ_STRING("unix-conn-file", config->unix_conn_file);
READ_STRING("socket-file", config->socket_file_prefix);
READ_STRING("occtl-socket-file", config->occtl_socket_file);
if (config->occtl_socket_file == NULL)