[gnome-keyring] [gck] Fix test parsing ASN.1 data.
- From: Stefan Walter <stefw src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-keyring] [gck] Fix test parsing ASN.1 data.
- Date: Mon, 10 Aug 2009 16:22:28 +0000 (UTC)
commit b363ae95cbc0584b747befeb602b4df7538597ad
Author: Stef Walter <stef memberwebs com>
Date: Mon Aug 10 16:17:02 2009 +0000
[gck] Fix test parsing ASN.1 data.
pkcs11/gck/tests/unit-test-data-der.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/pkcs11/gck/tests/unit-test-data-der.c b/pkcs11/gck/tests/unit-test-data-der.c
index cc04dfd..d1960c9 100644
--- a/pkcs11/gck/tests/unit-test-data-der.c
+++ b/pkcs11/gck/tests/unit-test-data-der.c
@@ -298,7 +298,7 @@ find_extension (ASN1_TYPE asn, const guchar *data, gsize n_data, const gchar *oi
if (!exoid)
return NULL;
- if (n_exoid == strlen (oid) && strcmp ((gchar*)exoid, oid) == 0) {
+ if (n_exoid - 1 == strlen (oid) && strcmp ((gchar*)exoid, oid) == 0) {
g_free (exoid);
name = g_strdup_printf ("tbsCertificate.extensions.?%u.extnValue", index);
value = egg_asn1_read_content (asn, data, n_data, name, n_extension);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]