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. --- common/attrs.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'common/attrs.h') diff --git a/common/attrs.h b/common/attrs.h index 233ac79..2780013 100644 --- a/common/attrs.h +++ b/common/attrs.h @@ -36,6 +36,7 @@ #ifndef P11_ATTRS_H_ #define P11_ATTRS_H_ +#include "buffer.h" #include "compat.h" #include "pkcs11.h" @@ -112,9 +113,17 @@ bool p11_attrs_matchn (const CK_ATTRIBUTE *attrs, char * p11_attrs_to_string (const CK_ATTRIBUTE *attrs, int count); +void p11_attrs_format (p11_buffer *buffer, + const CK_ATTRIBUTE *attrs, + int count); + char * p11_attr_to_string (const CK_ATTRIBUTE *attr, CK_OBJECT_CLASS klass); +void p11_attr_format (p11_buffer *buffer, + const CK_ATTRIBUTE *attr, + CK_OBJECT_CLASS klass); + bool p11_attr_equal (const void *one, const void *two); -- cgit v1.1