summaryrefslogtreecommitdiff
path: root/egg/egg-dn.h
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 /egg/egg-dn.h
parent328b23e59e7bfc867cf591d818a5136b4c69578e (diff)
downloadgnome-keyring-f0033332d99e797ee3b5a1b2a1f1b155d73124d4.tar.gz
[egg] Move the DN functionality into its own file.
Diffstat (limited to 'egg/egg-dn.h')
-rw-r--r--egg/egg-dn.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/egg/egg-dn.h b/egg/egg-dn.h
new file mode 100644
index 00000000..c205ba72
--- /dev/null
+++ b/egg/egg-dn.h
@@ -0,0 +1,43 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
+/* egg-asn1.h - ASN.1 helper routines
+
+ Copyright (C) 2007 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
+ published by the Free Software Foundation; either version 2 of the
+ License, or (at your option) any later version.
+
+ The Gnome Keyring Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Library General Public License for more details.
+
+ You should have received a copy of the GNU Library General Public
+ License along with the Gnome Library; see the file COPYING.LIB. If not,
+ write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ Boston, MA 02111-1307, USA.
+
+ Author: Stef Walter <stef@memberwebs.com>
+*/
+
+#ifndef EGG_DN_H_
+#define EGG_DN_H_
+
+#include <glib.h>
+
+#include <libtasn1.h>
+
+gchar* egg_dn_read (ASN1_TYPE asn, const gchar *part);
+
+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);
+
+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);
+
+#endif /*EGG_DN_H_*/