aboutsummaryrefslogtreecommitdiff
path: root/security/pinentry/files/patch-assuan::assuan-handler.c
diff options
context:
space:
mode:
Diffstat (limited to 'security/pinentry/files/patch-assuan::assuan-handler.c')
-rw-r--r--security/pinentry/files/patch-assuan::assuan-handler.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/security/pinentry/files/patch-assuan::assuan-handler.c b/security/pinentry/files/patch-assuan::assuan-handler.c
new file mode 100644
index 000000000000..3c73877a6b13
--- /dev/null
+++ b/security/pinentry/files/patch-assuan::assuan-handler.c
@@ -0,0 +1,27 @@
+--- assuan/assuan-handler.c.orig Thu Jan 30 07:58:09 2003
++++ assuan/assuan-handler.c Thu Jan 30 07:58:27 2003
+@@ -29,6 +29,24 @@
+ #define digitp(a) ((a) >= '0' && (a) <= '9')
+
+
++#if !HAVE_FOPENCOOKIE
++/* Provide structure for our dummy replacement function. Usually this
++ is defined in ../common/util.h but assuan should be self
++ contained. */
++/* Fixme: Remove fopencoookie :-(( */
++typedef struct
++{
++ ssize_t (*read)(void*,char*,size_t);
++ ssize_t (*write)(void*,const char*,size_t);
++ int (*seek)(void*,off_t*,int);
++ int (*close)(void*);
++} _IO_cookie_io_functions_t;
++typedef _IO_cookie_io_functions_t cookie_io_functions_t;
++FILE *fopencookie (void *cookie, const char *opentype,
++ cookie_io_functions_t funclist);
++#endif /*!HAVE_FOPENCOOKIE*/
++
++
+ static int
+ dummy_handler (ASSUAN_CONTEXT ctx, char *line)
+ {