[pkg-opensc-commit] [libp11] 47/86: Fixed some compiler warnings
Eric Dorland
eric at moszumanska.debian.org
Sun Jul 24 21:40:21 UTC 2016
This is an automated email from the git hooks/post-receive script.
eric pushed a commit to branch master
in repository libp11.
commit 6e9d412dae0f359b6a6c23f8f1d9bd3c77802a0e
Author: Michał Trojnara <Michal.Trojnara at stunnel.org>
Date: Wed Feb 10 14:29:24 2016 +0100
Fixed some compiler warnings
---
src/p11_ec.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/p11_ec.c b/src/p11_ec.c
index 7fb321c..4a608db 100644
--- a/src/p11_ec.c
+++ b/src/p11_ec.c
@@ -315,10 +315,10 @@ static ECDSA_SIG * pkcs11_ecdsa_do_sign(const unsigned char *dgst, int dlen,
if (sig) {
#if OPENSSL_VERSION_NUMBER >= 0x10100000L
/*
- * OpenSSL 1.1 does not have a way to allocate r and s
- * in ECDSA_SIG as it is now hidden.
+ * OpenSSL 1.1 does not have a way to allocate r and s
+ * in ECDSA_SIG as it is now hidden.
* Will us dummy ASN1 so r and s are allocated then
- * use ECDSA_SIG_get0 to get access to r and s
+ * use ECDSA_SIG_get0 to get access to r and s
* can then update r annd s
*/
const unsigned char *a;
@@ -461,7 +461,6 @@ static int pkcs11_ec_ckey(void *out,
size_t peerbuflen;
unsigned char *peerbuf = NULL;
const EC_GROUP *ecgroup = NULL;
- const EC_POINT *ecpoint = NULL;
CK_ECDH1_DERIVE_PARAMS ecdh_parms;
PKCS11_KEY * key = NULL;
@@ -498,7 +497,6 @@ static int pkcs11_ec_ckey(void *out,
ecdh_parms.ulPublicDataLen = peerbuflen;
ecdh_parms.pPublicData = peerbuf;
-
ret = pkcs11_ecdh_derive_internal(&buf, &buflen, CKM_ECDH1_DERIVE,
(const void *)&ecdh_parms, NULL, key);
@@ -537,6 +535,7 @@ static void alloc_ec_ex_index()
}
}
+#if 0
static void free_ec_ex_index()
{
if (ec_ex_index > 0) {
@@ -547,6 +546,7 @@ static void free_ec_ex_index()
ec_ex_index = 0;
}
}
+#endif
/*
* Overload the default OpenSSL methods for ECDSA
--
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