diff options
author | Stef Walter <stef@memberwebs.com> | 2010-07-09 16:57:20 +0000 |
---|---|---|
committer | Stef Walter <stef@memberwebs.com> | 2010-07-10 23:58:26 +0000 |
commit | 8d7e551b8575e4916542f17ba3a5185816400f0e (patch) | |
tree | 2d5c4d5923b3764b13c0f2ff2a74d22c48f039e6 /egg/egg-dn.h | |
parent | 55fae7749a6a7365763acb5e21c6251846e9d9fa (diff) | |
download | gnome-keyring-8d7e551b8575e4916542f17ba3a5185816400f0e.tar.gz |
Use new DER decoding and encoding routines.
* Benefits are less copies of sensitive data in memory.
* More insightful parsing and API.
Diffstat (limited to 'egg/egg-dn.h')
-rw-r--r-- | egg/egg-dn.h | 29 |
1 files changed, 17 insertions, 12 deletions
diff --git a/egg/egg-dn.h b/egg/egg-dn.h index c205ba72..96fe5ff4 100644 --- a/egg/egg-dn.h +++ b/egg/egg-dn.h @@ -1,7 +1,7 @@ /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */ -/* egg-asn1.h - ASN.1 helper routines +/* egg-dn.h - ASN.1 helper routines - Copyright (C) 2007 Stefan Walter + Copyright (C) 2010 Stefan Walter The Gnome Keyring Library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as @@ -26,18 +26,23 @@ #include <glib.h> -#include <libtasn1.h> +gchar* egg_dn_read (GNode *node); -gchar* egg_dn_read (ASN1_TYPE asn, const gchar *part); +gchar* egg_dn_read_part (GNode *node, + const gchar *match); -gchar* egg_dn_read_part (ASN1_TYPE asn, const gchar *part, const gchar *match); +typedef void (*EggDnCallback) (guint index, + GQuark oid, + const guchar *value, + gsize n_value, + gpointer user_data); -typedef void (*EggDnCallback) (guint index, GQuark oid, const guchar *value, - gsize n_value, gpointer user_data); +gboolean egg_dn_parse (GNode *node, + EggDnCallback callback, + gpointer user_data); -gboolean egg_dn_parse (ASN1_TYPE asn, const gchar *part, - EggDnCallback callback, gpointer user_data); +gchar* egg_dn_print_value (GQuark oid, + const guchar *value, + gsize n_value); -gchar* egg_dn_print_value (GQuark oid, const guchar *value, gsize n_value); - -#endif /*EGG_DN_H_*/ +#endif /* EGG_DN_H_ */ |