[pkg-opensc-commit] [pkcs11-helper] 126/253: Fix openssl decrypt return code
Eric Dorland
eric at moszumanska.debian.org
Fri Jan 6 23:39:11 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 8c236509b946a91a1a55eb49c660b792f7cfe2db
Author: Alon Bar-Lev <alon.barlev at gmail.com>
Date: Thu Oct 4 00:03:39 2007 +0000
Fix openssl decrypt return code
---
ChangeLog | 2 ++
lib/pkcs11h-openssl.c | 2 +-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index be27755..bd0db63 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -11,6 +11,8 @@ $Id$
* Add more invalid characters to serialization string.
+ * Fix openssl decrypt return code.
+
2007-06-13 - Version 1.03
* Autoconf fixups.
diff --git a/lib/pkcs11h-openssl.c b/lib/pkcs11h-openssl.c
index f72bdd0..4e9ec86 100644
--- a/lib/pkcs11h-openssl.c
+++ b/lib/pkcs11h-openssl.c
@@ -264,7 +264,7 @@ cleanup:
pkcs11h_getMessage (rv)
);
- return rv == CKR_OK ? 1 : -1;
+ return rv == CKR_OK ? tlen : -1;
}
#if OPENSSL_VERSION_NUMBER < 0x00907000L
--
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