Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Pkcs11 Proxy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mirrored_repos
smallstep
Pkcs11 Proxy
Commits
4c918f96
Commit
4c918f96
authored
12 years ago
by
Leif Johansson
Browse files
Options
Downloads
Patches
Plain Diff
forgot to initialize p11 library in inetd-mode
parent
9628786a
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
gck-rpc-daemon-standalone.c
+1
-1
1 addition, 1 deletion
gck-rpc-daemon-standalone.c
gck-rpc-dispatch.c
+4
-2
4 additions, 2 deletions
gck-rpc-dispatch.c
gck-rpc-layer.h
+1
-1
1 addition, 1 deletion
gck-rpc-layer.h
with
6 additions
and
4 deletions
gck-rpc-daemon-standalone.c
+
1
−
1
View file @
4c918f96
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
gck-rpc-dispatch.c
+
4
−
2
View file @
4c918f96
...
...
@@ -101,7 +101,7 @@ void gck_rpc_log(const char *msg, ...)
va_list
ap
;
va_start
(
ap
,
msg
);
vfprintf
(
std
out
,
msg
,
ap
);
vfprintf
(
std
err
,
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
);
}
...
...
This diff is collapsed.
Click to expand it.
gck-rpc-layer.h
+
1
−
1
View file @
4c918f96
...
...
@@ -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_ */
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment