diff options
author | Daiki Ueno <dueno@redhat.com> | 2017-01-11 09:32:19 +0100 |
---|---|---|
committer | Daiki Ueno <ueno@gnu.org> | 2017-02-17 10:25:55 +0100 |
commit | 0684cd7b7f815b411ea5041c021f92ca5ef42606 (patch) | |
tree | ffb7006ea208c5574441d51ac82edec115474460 /p11-kit/remote.c | |
parent | c28ff652e5d6c6ddff513716e22064e0e17a58d3 (diff) |
rpc: Add PKCS#11 module that connects to socket
This patch adds a PKCS#11 module that connects to the p11-kit server
exposed on the filesystem. The filename of the socket is determined in
the following order:
- $P11_KIT_SERVER_ADDRESS, if the envvar is available
- $XDG_RUNTIME_DIR/p11-kit/pkcs11, if the envvar is available
- /run/$(id -u)/p11-kit/pkcs11, if /run/$(id -u) exists
- /var/run/$(id -u)/p11-kit/pkcs11, if /var/run/$(id -u) exists
- ~/.cache/p11-kit/pkcs11.
Note that the program loading this module may have called setuid() and
secure_getenv() which we use for fetching envvars could return NULL.
Diffstat (limited to 'p11-kit/remote.c')
-rw-r--r-- | p11-kit/remote.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/p11-kit/remote.c b/p11-kit/remote.c index eaff134..37d8d5e 100644 --- a/p11-kit/remote.c +++ b/p11-kit/remote.c @@ -73,7 +73,7 @@ serve_module_from_uri (const char *uri_string) goto out; } - iter = p11_kit_iter_new (uri, P11_KIT_ITER_WANT_TOKENS); + iter = p11_kit_iter_new (uri, P11_KIT_ITER_WITH_TOKENS | P11_KIT_ITER_WITHOUT_OBJECTS); p11_kit_uri_free (uri); if (iter == NULL) goto out; |