summaryrefslogtreecommitdiff
path: root/common/attrs.h
diff options
context:
space:
mode:
authorStef Walter <stefw@gnome.org>2013-03-18 20:59:57 +0100
committerStef Walter <stefw@gnome.org>2013-03-18 21:54:48 +0100
commit128239732a5b7e184d5d9c505402630ee9215080 (patch)
tree8432e2758971c4eecf56881cfe55803831985079 /common/attrs.h
parent1ad9f98b11f3f0d411bf9517f1dc8985ea3dbe2a (diff)
attrs: Change p11_attrs_to_string() to allow static templates
Allow passing the number of attributes to print, which lets us use this directly on templates passed in by callers of the PKCS#11 API.
Diffstat (limited to 'common/attrs.h')
-rw-r--r--common/attrs.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/attrs.h b/common/attrs.h
index f6eb950..87e0af1 100644
--- a/common/attrs.h
+++ b/common/attrs.h
@@ -104,7 +104,8 @@ bool p11_attrs_matchn (const CK_ATTRIBUTE *attrs,
const CK_ATTRIBUTE *match,
CK_ULONG count);
-char * p11_attrs_to_string (const CK_ATTRIBUTE *attrs);
+char * p11_attrs_to_string (const CK_ATTRIBUTE *attrs,
+ int count);
char * p11_attr_to_string (const CK_ATTRIBUTE *attr);