summaryrefslogtreecommitdiff
path: root/security/gnome-keyring/files/patch-egg_egg-asn1x.h
blob: dd0c4049f58d99be53162513d99fc5e7e6f54504 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
--- egg/egg-asn1x.h.orig	2010-10-19 06:11:38.000000000 +0400
+++ egg/egg-asn1x.h	2013-11-04 08:27:50.000000000 +0400
@@ -25,6 +25,7 @@
 #define EGG_ASN1X_H_
 
 #include <glib.h>
+#include <libtasn1.h>
 
 #ifndef HAVE_EGG_ALLOCATOR
 typedef void* (*EggAllocator) (void* p, gsize);
@@ -33,15 +34,13 @@
 
 typedef gboolean (*EggAsn1xEncoder) (gpointer data, guchar *buf, gsize n_buf);
 
-struct static_struct_asn;
-
-GNode*              egg_asn1x_create                 (const struct static_struct_asn *defs,
+GNode*              egg_asn1x_create                 (const ASN1_ARRAY_TYPE *defs,
                                                       const gchar *type);
 
-GNode*              egg_asn1x_create_quark           (const struct static_struct_asn *defs,
+GNode*              egg_asn1x_create_quark           (const ASN1_ARRAY_TYPE *defs,
                                                       GQuark type);
 
-GNode*              egg_asn1x_create_and_decode      (const struct static_struct_asn *defs,
+GNode*              egg_asn1x_create_and_decode      (const ASN1_ARRAY_TYPE *defs,
                                                       const gchar *type,
                                                       gconstpointer data,
                                                       gsize n_data);
@@ -167,10 +166,10 @@
 
 void                egg_asn1x_destroy                (gpointer asn);
 
-glong               egg_asn1x_parse_time_general     (const gchar *time,
+time_t               egg_asn1x_parse_time_general     (const gchar *time,
                                                       gssize n_time);
 
-glong               egg_asn1x_parse_time_utc         (const gchar *time,
+time_t               egg_asn1x_parse_time_utc         (const gchar *time,
                                                       gssize n_time);
 
 gssize              egg_asn1x_element_length         (gconstpointer data,