[Pkg-fedora-ds-maintainers] [libapache2-mod-nss] 21/156: Fix lunasa problem. The key we generate must work for both encryption and decryption. By default generate key only returns encryption keys.
Timo Aaltonen
tjaalton-guest at moszumanska.debian.org
Wed Jul 2 13:55:23 UTC 2014
This is an automated email from the git hooks/post-receive script.
tjaalton-guest pushed a commit to branch master
in repository libapache2-mod-nss.
commit 08d5d7d88f295b40eeb23bbe4149326488054ea5
Author: rrelyea <>
Date: Wed Jul 6 22:31:03 2005 +0000
Fix lunasa problem. The key we generate must work for both encryption and
decryption. By default generate key only returns encryption keys.
bob
---
nss_pcache.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/nss_pcache.c b/nss_pcache.c
index 9baa829..50f9684 100644
--- a/nss_pcache.c
+++ b/nss_pcache.c
@@ -146,8 +146,8 @@ CreatePk11PinStore(Pk11PinStore **out, const char *tokenName, const char *pin)
}
/* Generate a key and parameters to do the encryption */
- store->key = PK11_KeyGen(store->slot, store->mech->type,
- 0, 0, 0);
+ store->key = PK11_TokenKeyGenWithFlags(store->slot, store->mech->type,
+ NULL, 0, NULL, CKF_ENCRYPT|CKF_DECRYPT, PR_FALSE, NULL);
if (store->key == 0)
{
/* PR_SetError(xxx); */
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-fedora-ds/libapache2-mod-nss.git
More information about the Pkg-fedora-ds-maintainers
mailing list