[pkg-opensc-commit] [libp11] 11/13: Removed unused variables

Eric Dorland eric at moszumanska.debian.org
Mon May 22 03:43:01 UTC 2017


This is an automated email from the git hooks/post-receive script.

eric pushed a commit to annotated tag libp11-0.4.5
in repository libp11.

commit ca5dd8ceed106e5104ac8d30274924eebe978546
Author: Michał Trojnara <Michal.Trojnara at stunnel.org>
Date:   Sat Mar 11 13:08:01 2017 +0100

    Removed unused variables
---
 src/p11_cert.c | 1 -
 src/p11_key.c  | 3 ---
 2 files changed, 4 deletions(-)

diff --git a/src/p11_cert.c b/src/p11_cert.c
index b4212f7..b20e229 100644
--- a/src/p11_cert.c
+++ b/src/p11_cert.c
@@ -91,7 +91,6 @@ static int pkcs11_find_certs(PKCS11_TOKEN *token)
 {
 	PKCS11_SLOT *slot = TOKEN2SLOT(token);
 	PKCS11_CTX *ctx = SLOT2CTX(slot);
-	PKCS11_TOKEN_private *tpriv = PRIVTOKEN(token);
 	PKCS11_SLOT_private *spriv = PRIVSLOT(slot);
 	CK_OBJECT_CLASS cert_search_class;
 	CK_ATTRIBUTE cert_search_attrs[] = {
diff --git a/src/p11_key.c b/src/p11_key.c
index 16101bd..c38fb48 100644
--- a/src/p11_key.c
+++ b/src/p11_key.c
@@ -338,7 +338,6 @@ EVP_PKEY *pkcs11_get_key(PKCS11_KEY *key, int isPrivate)
  */
 int pkcs11_authenticate(PKCS11_KEY *key)
 {
-	PKCS11_KEY_private *kpriv = PRIVKEY(key);
 	PKCS11_TOKEN *token = KEY2TOKEN(key);
 	PKCS11_SLOT *slot = TOKEN2SLOT(token);
 	PKCS11_SLOT_private *spriv = PRIVSLOT(slot);
@@ -422,9 +421,7 @@ static int pkcs11_find_keys(PKCS11_TOKEN *token, unsigned int type)
 {
 	PKCS11_SLOT *slot = TOKEN2SLOT(token);
 	PKCS11_CTX *ctx = TOKEN2CTX(token);
-	PKCS11_TOKEN_private *tpriv = PRIVTOKEN(token);
 	PKCS11_SLOT_private *spriv = PRIVSLOT(slot);
-	PKCS11_keys *keys = (type == CKO_PRIVATE_KEY) ? &tpriv->prv : &tpriv->pub;
 	CK_OBJECT_CLASS key_search_class;
 	CK_ATTRIBUTE key_search_attrs[1] = {
 		{CKA_CLASS, &key_search_class, sizeof(key_search_class)},

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-opensc/libp11.git



More information about the pkg-opensc-commit mailing list