From b73f4ef126bdead47262e29e47d159a89984d65f Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Tue, 19 Feb 2013 14:05:34 +0100 Subject: Add the log-calls module config option If 'log-calls = yes' is set then all the PKCS#11 modules are logged to stderr. --- doc/manual/Makefile.am | 1 + doc/manual/p11-kit-sharing.xml | 5 +++++ doc/manual/pkcs11.conf.xml | 19 +++++++++++++++++++ 3 files changed, 25 insertions(+) (limited to 'doc') diff --git a/doc/manual/Makefile.am b/doc/manual/Makefile.am index 084e941..e306fb1 100644 --- a/doc/manual/Makefile.am +++ b/doc/manual/Makefile.am @@ -52,6 +52,7 @@ IGNORE_HFILES= \ conf.h \ debug.h \ dict.h \ + log.h \ mock.h \ modules.h \ pkcs11.h \ diff --git a/doc/manual/p11-kit-sharing.xml b/doc/manual/p11-kit-sharing.xml index 0989923..bf0ed01 100644 --- a/doc/manual/p11-kit-sharing.xml +++ b/doc/manual/p11-kit-sharing.xml @@ -94,6 +94,11 @@ C_CloseAllSessions function to be used without closing sessions for other callers of the same PKCS#11 module. + + Managed modules have ability to log PKCS#11 method calls for debugging + purposes. See the log-calls = yes + module configuration option. + diff --git a/doc/manual/pkcs11.conf.xml b/doc/manual/pkcs11.conf.xml index 1051ee1..1ff2562 100644 --- a/doc/manual/pkcs11.conf.xml +++ b/doc/manual/pkcs11.conf.xml @@ -157,6 +157,15 @@ x-custom : text of trust policy information such as certificate anchors and black lists. + + log-calls: + + Set to yes to write a log to stderr of all the + calls into the module. This is only supported for managed modules. + + This argument is optonal and defaults to no. + + Do not specify both enable-in and disable-in @@ -196,6 +205,16 @@ x-custom : text This argument is optonal. + + log-calls: + + Set to yes to write a log to stderr of all the + calls into all configured modules. This is only supported for managed + modules. + + This argument is optional. + + Other fields may be present, but it is recommended that field names -- cgit v1.1