[gcr] gck: Fix tests with p11-kit 0.13 and later
- From: Stefan Walter <stefw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gcr] gck: Fix tests with p11-kit 0.13 and later
- Date: Tue, 25 Sep 2012 13:54:58 +0000 (UTC)
commit fcd65c6dae9ce51ce0fabafc66af98766e5a879e
Author: Stef Walter <stefw gnome org>
Date: Thu Sep 20 15:33:15 2012 +0200
gck: Fix tests with p11-kit 0.13 and later
* p11-kit now encodes all characters in the 'id' part of a PKCS#11 URI
https://bugzilla.gnome.org/show_bug.cgi?id=684477
gck/tests/test-gck-uri.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gck/tests/test-gck-uri.c b/gck/tests/test-gck-uri.c
index 8370133..8c733d3 100644
--- a/gck/tests/test-gck-uri.c
+++ b/gck/tests/test-gck-uri.c
@@ -357,7 +357,7 @@ test_build_with_attributes (void)
g_assert (g_str_has_prefix (uri, "pkcs11:"));
g_assert (strstr (uri, "object=The%20Label"));
g_assert (strstr (uri, "object-type=data"));
- g_assert (strstr (uri, "id=TEST%00"));
+ g_assert (strstr (uri, "id=%54%45%53%54%00") || strstr (uri, "id=TEST%00"));
g_free (uri);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]