From fc562261c6bbb35dfed585a78fdec9a408b981c7 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Wed, 20 Mar 2013 10:55:06 +0100 Subject: attrs: Print out the CKA_VALUE for certificates when debugging While it's true that we shouldn't be pritning out CKA_VALUE in certain cases, like for keys, we obviously can do so for certificates. We don't have keys anyway, but in the interest of being general purpose use the class to determine whether CKA_VALUE can be printed --- common/tests/test-attrs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common/tests') diff --git a/common/tests/test-attrs.c b/common/tests/test-attrs.c index 61fcef3..324ed90 100644 --- a/common/tests/test-attrs.c +++ b/common/tests/test-attrs.c @@ -470,7 +470,7 @@ test_to_string (CuTest *tc) char *string; - string = p11_attr_to_string (&one); + string = p11_attr_to_string (&one, CKA_INVALID); CuAssertStrEquals (tc, "{ CKA_LABEL = (3) \"yay\" }", string); free (string); -- cgit v1.1