[pkg-opensc-commit] [libp11] 229/239: removed unused variables

Eric Dorland eric at moszumanska.debian.org
Sat Oct 17 06:21:37 UTC 2015


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

eric pushed a commit to branch master
in repository libp11.

commit 7fc9788a388bb4b36f728f6238852d9038e34dd6
Author: Nikos Mavrogiannopoulos <nmav at redhat.com>
Date:   Fri Oct 9 15:31:31 2015 +0200

    removed unused variables
---
 src/p11_ec.c   | 1 -
 src/p11_key.c  | 1 -
 src/p11_load.c | 1 -
 src/p11_ops.c  | 5 -----
 4 files changed, 8 deletions(-)

diff --git a/src/p11_ec.c b/src/p11_ec.c
index a4df712..860f10d 100644
--- a/src/p11_ec.c
+++ b/src/p11_ec.c
@@ -225,7 +225,6 @@ static int pkcs11_ecdsa_sign_setup(EC_KEY *ec, BN_CTX *ctx_in,
 static ECDSA_SIG * pkcs11_ecdsa_do_sign(const unsigned char *dgst, int dlen,
 			const BIGNUM *inv, const BIGNUM *r, EC_KEY * ec)
 {
-	int type;
 	unsigned char sigret[512]; /* HACK for now */
 	ECDSA_SIG * sig = NULL;
 	PKCS11_KEY * key = NULL;
diff --git a/src/p11_key.c b/src/p11_key.c
index f578904..c2c63ca 100644
--- a/src/p11_key.c
+++ b/src/p11_key.c
@@ -98,7 +98,6 @@ PKCS11_KEY *PKCS11_find_key_from_key(PKCS11_KEY * keyin)
         PKCS11_KEY_private *kinpriv;
         PKCS11_KEY_private *kpriv;
         PKCS11_KEY *key;
-        int isprivate;
         unsigned int n, count;
 
         kinpriv = PRIVKEY(keyin);
diff --git a/src/p11_load.c b/src/p11_load.c
index a93378c..afc37c2 100644
--- a/src/p11_load.c
+++ b/src/p11_load.c
@@ -115,7 +115,6 @@ int PKCS11_CTX_reload(PKCS11_CTX * ctx)
 	PKCS11_CTX_private *priv = PRIVCTX(ctx);
 	CK_C_INITIALIZE_ARGS _args;
 	CK_C_INITIALIZE_ARGS *args = NULL;
-	CK_INFO ck_info;
 	int rv;
 
 	/* Tell the PKCS11 to initialize itself */
diff --git a/src/p11_ops.c b/src/p11_ops.c
index a7b81fd..aa5af81 100644
--- a/src/p11_ops.c
+++ b/src/p11_ops.c
@@ -75,15 +75,10 @@ PKCS11_sign(int type, const unsigned char *m, unsigned int m_len,
 	int rv, ssl = ((type == NID_md5_sha1) ? 1 : 0);
 	unsigned char *encoded = NULL;
 	int sigsize;
-	PKCS11_KEY_private *priv;
-	PKCS11_SLOT *slot;
 
 	if (key == NULL)
 		return 0;
 
-	priv = PRIVKEY(key);
-	slot = TOKEN2SLOT(priv->parent);
-
 	CHECK_KEY_FORK(key);
 
 	sigsize = PKCS11_get_key_size(key);

-- 
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