[pkg-opensc-commit] [pkcs11-helper] 25/53: 64bit fixup - fixup

Eric Dorland eric at moszumanska.debian.org
Fri Jan 6 23:39:52 UTC 2017


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

eric pushed a commit to tag pkcs11-helper-1.03
in repository pkcs11-helper.

commit cb9df743a2f19141ee6b9c3d612a862ef632c2ef
Author: alonbl <alonbl at 485eb718-1723-0410-b8a9-88cf21a28c35>
Date:   Thu Feb 15 19:29:31 2007 +0000

    64bit fixup - fixup
---
 lib/pkcs11h-openssl.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/lib/pkcs11h-openssl.c b/lib/pkcs11h-openssl.c
index 4e05b18..92fb807 100644
--- a/lib/pkcs11h-openssl.c
+++ b/lib/pkcs11h-openssl.c
@@ -316,7 +316,7 @@ __pkcs11h_openssl_sign (
 		(void *)rsa
 	);
 
-	myrsa_size=RSA_size (rsa);
+	myrsa_size = RSA_size (rsa);
 
 	if (type == NID_md5_sha1) {
 		enc = (unsigned char *)m;
@@ -370,7 +370,7 @@ __pkcs11h_openssl_sign (
 		}
 	}
 
-	if (enc_len > (myrsa_size-RSA_PKCS1_PADDING_SIZE)) {
+	if (enc_len > (myrsa_size - RSA_PKCS1_PADDING_SIZE)) {
 		rv = CKR_KEY_SIZE_RANGE;
 		goto cleanup;
 	}
@@ -385,7 +385,7 @@ __pkcs11h_openssl_sign (
 		"PKCS#11: Performing signature"
 	);
 
-	*siglen = myrsa_size;
+	size_temp = myrsa_size;
 
 	if (
 		(rv = pkcs11h_certificate_signAny (
@@ -401,6 +401,7 @@ __pkcs11h_openssl_sign (
 		goto cleanup;
 	}
 
+	*siglen = (unsigned int)size_temp;
 	rv = CKR_OK;
 
 cleanup:

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



More information about the pkg-opensc-commit mailing list