[gnome-keyring] [pkcs11] Fix errors parsing certificates.
- From: Stefan Walter <stefw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-keyring] [pkcs11] Fix errors parsing certificates.
- Date: Sun, 5 Sep 2010 21:08:51 +0000 (UTC)
commit bc7f95c8890b3fae3dff3f519745d98267629e8b
Author: Stef Walter <stef memberwebs com>
Date: Sun Sep 5 21:08:04 2010 +0000
[pkcs11] Fix errors parsing certificates.
* From recent ASN.1 migration.
pkcs11/gkm/gkm-certificate.c | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/pkcs11/gkm/gkm-certificate.c b/pkcs11/gkm/gkm-certificate.c
index 734535e..1dbfb81 100644
--- a/pkcs11/gkm/gkm-certificate.c
+++ b/pkcs11/gkm/gkm-certificate.c
@@ -229,7 +229,7 @@ find_certificate_extension (GkmCertificate *self, GQuark oid)
break;
/* See if it's the same */
- exoid = egg_asn1x_get_oid_as_quark (egg_asn1x_node (self->pv->asn1, "extnID", NULL));
+ exoid = egg_asn1x_get_oid_as_quark (egg_asn1x_node (node, "extnID", NULL));
if(exoid == oid)
return index;
@@ -326,10 +326,9 @@ gkm_certificate_real_get_attribute (GkmObject *base, GkmSession *session, CK_ATT
case CKA_END_DATE:
g_return_val_if_fail (self->pv->asn1, CKR_GENERAL_ERROR);
when = egg_asn1x_get_time_as_long (egg_asn1x_node (self->pv->asn1,
- attr->type == CKA_START_DATE ?
- "tbsCertificate.validity.notBefore" :
- "tbsCertificate.validity.notAfter",
- NULL));
+ "tbsCertificate", "validity",
+ attr->type == CKA_START_DATE ? "notBefore" : "notAfter",
+ NULL));
if (when < 0)
return CKR_FUNCTION_FAILED;
return gkm_attribute_set_date (attr, when);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]