[pkg-opensc-commit] [pkcs11-helper] 41/53: Fixed GnuTLS compilation

Eric Dorland eric at moszumanska.debian.org
Fri Jan 6 23:39:54 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 9c7e7bdb7f579fb7ec9432057d334604e57cd568
Author: alonbl <alonbl at 485eb718-1723-0410-b8a9-88cf21a28c35>
Date:   Mon May 14 07:26:33 2007 +0000

    Fixed GnuTLS compilation
---
 ChangeLog            | 3 +++
 lib/pkcs11h-crypto.c | 4 ++--
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 092ccf9..2a2e74f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -17,6 +17,9 @@ $Id$
 
 * Block signals for own threads using pthread calls.
 
+* Fixup compilation error when using GnuTLS only environment, thank to
+  Simon Josefsson.
+
 2007-10-05 - Version 1.02
 
 * Switch to free implementation of PKCS#11 headers.
diff --git a/lib/pkcs11h-crypto.c b/lib/pkcs11h-crypto.c
index 18e29b7..4c241fd 100644
--- a/lib/pkcs11h-crypto.c
+++ b/lib/pkcs11h-crypto.c
@@ -687,12 +687,12 @@ __pkcs11h_crypto_gnutls_certificate_is_issuer (
 	_PKCS11H_ASSERT (issuer_blob!=NULL);
 	_PKCS11H_ASSERT (cert_blob!=NULL);
 
-	if (ok && gnutls_x509_crt_init (&cert_issuer) != GNUTLS_E_SUCCESS) {
+	if (gnutls_x509_crt_init (&cert_issuer) != GNUTLS_E_SUCCESS) {
 		/* gnutls sets output */
 		cert_issuer = NULL;
 		goto cleanup;
 	}
-	if (ok && gnutls_x509_crt_init (&cert_cert) != GNUTLS_E_SUCCESS) {
+	if (gnutls_x509_crt_init (&cert_cert) != GNUTLS_E_SUCCESS) {
 		/* gnutls sets output */
 		cert_cert = NULL;
 		goto 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