summaryrefslogtreecommitdiff
path: root/common/attrs.h
diff options
context:
space:
mode:
authorStef Walter <stefw@gnome.org>2013-02-19 14:05:34 +0100
committerStef Walter <stefw@gnome.org>2013-05-21 10:47:53 +0200
commitb73f4ef126bdead47262e29e47d159a89984d65f (patch)
tree0a7f7324ecca62dc7f252be87cd46948e44e8725 /common/attrs.h
parenta14ff781ebf231daa99990fd65c2312f26db93a8 (diff)
downloadp11-kit-b73f4ef126bdead47262e29e47d159a89984d65f.tar.gz
Add the log-calls module config option
If 'log-calls = yes' is set then all the PKCS#11 modules are logged to stderr.
Diffstat (limited to 'common/attrs.h')
-rw-r--r--common/attrs.h9
1 files changed, 9 insertions, 0 deletions
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);