diff options
author | Werner Koch <[email protected]> | 2002-07-30 17:38:54 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2002-07-30 17:38:54 +0000 |
commit | 7de95ff2e642de9b6d4c5748e72013bd352e36fc (patch) | |
tree | 1fc0f3840ba79eebb9be78c1fd54b3b5a4bb2b99 /assuan/assuan-handler.c | |
parent | * options.h, g10.c (main), mainproc.c (proc_encrypted): Return a (diff) | |
download | gnupg-7de95ff2e642de9b6d4c5748e72013bd352e36fc.tar.gz gnupg-7de95ff2e642de9b6d4c5748e72013bd352e36fc.zip |
Changed the lincese for Assuan to LGPL.
Diffstat (limited to 'assuan/assuan-handler.c')
-rw-r--r-- | assuan/assuan-handler.c | 46 |
1 files changed, 33 insertions, 13 deletions
diff --git a/assuan/assuan-handler.c b/assuan/assuan-handler.c index 69b34b4fc..6ddfe8899 100644 --- a/assuan/assuan-handler.c +++ b/assuan/assuan-handler.c @@ -1,21 +1,21 @@ /* assuan-handler.c - dispatch commands - * Copyright (C) 2001 Free Software Foundation, Inc. + * Copyright (C) 2001, 2002 Free Software Foundation, Inc. * - * This file is part of GnuPG. + * This file is part of Assuan. * - * GnuPG is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. + * Assuan is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. * - * GnuPG 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 General Public License for more details. + * Assuan 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 + * Lesser General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA + * You should have received a copy of the GNU Lesser General Public + * License along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ #include <config.h> @@ -29,6 +29,26 @@ #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) { |