[pkg-opensc-commit] [pkcs11-helper] 84/253: 64bit fixup - fixup
Eric Dorland
eric at moszumanska.debian.org
Fri Jan 6 23:39:07 UTC 2017
This is an automated email from the git hooks/post-receive script.
eric pushed a commit to branch master
in repository pkcs11-helper.
commit a12cc2247b7ae0b78a4a4fa9a411a295b5313e61
Author: Alon Bar-Lev <alon.barlev at gmail.com>
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