summaryrefslogtreecommitdiff
path: root/pkcs11/gkm
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2009-12-30 23:45:08 +0000
committerStef Walter <stef@memberwebs.com>2010-06-24 03:03:19 +0000
commitf0033332d99e797ee3b5a1b2a1f1b155d73124d4 (patch)
tree5d32bb66e702edfa60e3847f9ce7d19f6e11d1e7 /pkcs11/gkm
parent328b23e59e7bfc867cf591d818a5136b4c69578e (diff)
downloadgnome-keyring-f0033332d99e797ee3b5a1b2a1f1b155d73124d4.tar.gz
[egg] Move the DN functionality into its own file.
Diffstat (limited to 'pkcs11/gkm')
-rw-r--r--pkcs11/gkm/gkm-certificate.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/pkcs11/gkm/gkm-certificate.c b/pkcs11/gkm/gkm-certificate.c
index 5c5b9d00..0db73275 100644
--- a/pkcs11/gkm/gkm-certificate.c
+++ b/pkcs11/gkm/gkm-certificate.c
@@ -36,6 +36,8 @@
#include "gkm-transaction.h"
#include "gkm-util.h"
+#include "egg/egg-dn.h"
+
#include "pkcs11/pkcs11.h"
#include "pkcs11/pkcs11g.h"
@@ -730,11 +732,11 @@ gkm_certificate_get_label (GkmCertificate *self)
g_return_val_if_fail (self->pv->asn1, "");
/* Look for the CN in the certificate */
- label = egg_asn1_read_dn_part (self->pv->asn1, "tbsCertificate.subject.rdnSequence", "cn");
+ label = egg_dn_read_part (self->pv->asn1, "tbsCertificate.subject.rdnSequence", "cn");
/* Otherwise use the full DN */
if (!label)
- label = egg_asn1_read_dn (self->pv->asn1, "tbsCertificate.subject.rdnSequence");
+ label = egg_dn_read (self->pv->asn1, "tbsCertificate.subject.rdnSequence");
if (!label)
label = g_strdup (_("Unnamed Certificate"));