[pkg-opensc-commit] [engine-pkcs11] 06/43: Handle PKCS#11 URLs which have type set to 'public'
Eric Dorland
eric at moszumanska.debian.org
Sun Jan 31 06:38:46 UTC 2016
This is an automated email from the git hooks/post-receive script.
eric pushed a commit to branch master
in repository engine-pkcs11.
commit e6909a2468994ba55f379ac30a501df61a3a0ffd
Author: Nikos Mavrogiannopoulos <nmav at redhat.com>
Date: Fri Dec 18 16:42:42 2015 +0100
Handle PKCS#11 URLs which have type set to 'public'
Relates to #28
---
src/engine_pkcs11.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/engine_pkcs11.c b/src/engine_pkcs11.c
index 4e07e5d..5f5e9c6 100644
--- a/src/engine_pkcs11.c
+++ b/src/engine_pkcs11.c
@@ -487,10 +487,13 @@ static int parse_pkcs11_uri(const char *uri, PKCS11_TOKEN **p_tok,
p = strchr(p, '=') + 1;
if ((end - p == 4 && !strncmp(p, "cert", 4)) ||
+ (end - p == 6 && !strncmp(p, "public", 6)) ||
(end - p == 7 && !strncmp(p, "private", 7))) {
/* Actually, just ignore it */
- } else
+ } else {
+ fprintf(stderr, "Unknown object type\n");
rv = 0;
+ }
} else {
rv = 0;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-opensc/engine-pkcs11.git
More information about the pkg-opensc-commit
mailing list