[pkg-opensc-commit] [pkcs11-helper] 118/253: More debug messages

Eric Dorland eric at moszumanska.debian.org
Fri Jan 6 23:39:10 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 71438a401b4f843ce22e0aa74f75d09fce8d4af4
Author: Alon Bar-Lev <alon.barlev at gmail.com>
Date:   Fri Jun 22 15:59:55 2007 +0000

    More debug messages
---
 lib/pkcs11h-core.c    |  8 ++++++++
 lib/pkcs11h-session.c | 18 ++++++++++++++++++
 2 files changed, 26 insertions(+)

diff --git a/lib/pkcs11h-core.c b/lib/pkcs11h-core.c
index ce62a1c..b64b414 100644
--- a/lib/pkcs11h-core.c
+++ b/lib/pkcs11h-core.c
@@ -761,6 +761,14 @@ pkcs11h_addProvider (
 		(char *)info.manufacturerID,
 		sizeof (info.manufacturerID)
 	);
+
+	_PKCS11H_DEBUG (
+		PKCS11H_LOG_DEBUG2,
+		"PKCS#11: pkcs11h_addProvider Provider '%s' manufacturerID '%s'",
+		reference,
+		provider->manufacturerID
+	);
+
 	provider->enabled = TRUE;
 
 	if (_g_pkcs11h_data->providers == NULL) {
diff --git a/lib/pkcs11h-session.c b/lib/pkcs11h-session.c
index fe2df6c..502e776 100644
--- a/lib/pkcs11h-session.c
+++ b/lib/pkcs11h-session.c
@@ -599,6 +599,15 @@ _pkcs11h_session_reset (
 
 	*p_slot = _PKCS11H_INVALID_SLOT_ID;
 
+	_PKCS11H_DEBUG (
+		PKCS11H_LOG_DEBUG2,
+		"PKCS#11: _pkcs11h_session_reset Expected token manufacturerID='%s' model='%s', serialNumber='%s', label='%s'",
+		session->token_id->manufacturerID,
+		session->token_id->model,
+		session->token_id->serialNumber,
+		session->token_id->label
+	);
+
 	while (!found) {
 		_pkcs11h_provider_t current_provider = NULL;
 
@@ -667,6 +676,15 @@ _pkcs11h_session_reset (
 					goto retry11;
 				}
 
+				_PKCS11H_DEBUG (
+					PKCS11H_LOG_DEBUG2,
+					"PKCS#11: _pkcs11h_session_reset Found token manufacturerID='%s' model='%s', serialNumber='%s', label='%s'",
+					token_id->manufacturerID,
+					token_id->model,
+					token_id->serialNumber,
+					token_id->label
+				);
+
 				if (
 					pkcs11h_token_sameTokenId (
 						session->token_id,

-- 
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