[pkg-opensc-commit] [opensc] 01/50: pkcs15-crypt: allow decipher for key with 'unwrap' usage
Eric Dorland
eric at moszumanska.debian.org
Sat May 28 03:35:45 UTC 2016
This is an automated email from the git hooks/post-receive script.
eric pushed a commit to branch master
in repository opensc.
commit 696e4119a57fda4409009b841bc4d8cfe0a99eee
Author: Viktor Tarasov <viktor.tarasov at gmail.com>
Date: Mon Mar 28 19:59:28 2016 +0200
pkcs15-crypt: allow decipher for key with 'unwrap' usage
---
src/tools/pkcs15-crypt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/tools/pkcs15-crypt.c b/src/tools/pkcs15-crypt.c
index 76b7273..e4e4375 100644
--- a/src/tools/pkcs15-crypt.c
+++ b/src/tools/pkcs15-crypt.c
@@ -477,7 +477,7 @@ int main(int argc, char * const argv[])
fprintf(stderr, "Found %s!\n", p15card->tokeninfo->label);
if (do_decipher) {
- if ((err = get_key(SC_PKCS15_PRKEY_USAGE_DECRYPT, &key))
+ if ((err = get_key(SC_PKCS15_PRKEY_USAGE_DECRYPT|SC_PKCS15_PRKEY_USAGE_UNWRAP, &key))
|| (err = decipher(key)))
goto end;
action_count--;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-opensc/opensc.git
More information about the pkg-opensc-commit
mailing list