mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-16 03:24:07 +00:00
b6478e3ed3
revocation lists (X.509). PR: 51577 Submitted by: Michael Nottebrock <michaelnottebrock@gmx.net>
28 lines
851 B
C
28 lines
851 B
C
--- 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)
|
|
{
|