Skip to content
Snippets Groups Projects
Commit 4c918f96 authored by Leif Johansson's avatar Leif Johansson
Browse files

forgot to initialize p11 library in inetd-mode

parent 9628786a
No related branches found
No related tags found
No related merge requests found
......@@ -119,7 +119,7 @@ int main(int argc, char *argv[])
path = SOCKET_PATH;
if (strcmp(path,"-") == 0) {
gck_rpc_layer_inetd();
gck_rpc_layer_inetd(funcs);
} else {
sock = gck_rpc_layer_initialize(path, funcs);
if (sock == -1)
......
......@@ -101,7 +101,7 @@ void gck_rpc_log(const char *msg, ...)
va_list ap;
va_start(ap, msg);
vfprintf(stdout, msg, ap);
vfprintf(stderr, msg, ap);
printf("\n");
va_end(ap);
}
......@@ -2240,7 +2240,7 @@ void gck_rpc_layer_accept(void)
pthread_mutex_unlock(&pkcs11_dispatchers_mutex);
}
void gck_rpc_layer_inetd(void)
void gck_rpc_layer_inetd(CK_FUNCTION_LIST_PTR module)
{
CallState cs;
......@@ -2249,6 +2249,8 @@ void gck_rpc_layer_inetd(void)
cs.read = &read;
cs.write = &write;
pkcs11_module = module;
run_dispatch_thread(&cs);
}
......
......@@ -17,6 +17,6 @@ void gck_rpc_layer_uninitialize(void);
void gck_rpc_layer_accept(void);
/* Run a single connection off of STDIN - call from inetd or stunnel */
void gck_rpc_layer_inetd(void);
void gck_rpc_layer_inetd(CK_FUNCTION_LIST_PTR funcs);
#endif /* GCKRPC_LAYER_H_ */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment