Release 0.2.1

This commit is contained in:
Werner Koch 2001-04-02 08:40:32 +00:00
parent 5b561c2f11
commit bf6779bf74
74 changed files with 387 additions and 41 deletions

20
AUTHORS
View File

@ -1,9 +1,23 @@
Program: gpgme Program: gpgme
Maintainer: Werner Koch <wk@gnupg.org> Maintainer: Werner Koch <wk@g10code.com>
FSF <gnu@gnu.org> FSF <gnu@gnu.org>
* Code taken from GnuPG: gpgme/w32-util.c - Code taken from GnuPG 1.0: gpgme/w32-util.c, GnuPG 1.1: jnlib/.
g10 Code GmbH <code@g10code.com>
- All stuff since mid march 2001.
Werner Koch <wk@gnupg.org> Werner Koch <wk@gnupg.org>
* Design and most stuff. - Design and most stuff.
Copyright 2001 g10 Code GmbH
This file is free software; as a special exception the author gives
unlimited permission to copy and/or distribute it, with or without
modifications, as long as this notice is preserved.
This file is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

View File

@ -1,3 +1,9 @@
2001-04-02 Werner Koch <wk@gnupg.org>
Released 0.2.1.
Changed the copyright notices all over the place.
2001-02-28 Werner Koch <wk@gnupg.org> 2001-02-28 Werner Koch <wk@gnupg.org>
Released 0.2.0. Released 0.2.0.
@ -6,3 +12,14 @@
* autogen.sh: Added option --build-w32. * autogen.sh: Added option --build-w32.
Copyright 2001 g10 Code GmbH
This file is free software; as a special exception the author gives
unlimited permission to copy and/or distribute it, with or without
modifications, as long as this notice is preserved.
This file is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

14
INSTALL
View File

@ -1,3 +1,17 @@
Installation Instructions for GPGME
===================================
Copyright 2001 g10 Code GmbH
This file is free software; as a special exception the author gives
unlimited permission to copy and/or distribute it, with or without
modifications, as long as this notice is preserved.
This file is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Basic Installation Basic Installation
================== ==================

View File

@ -1,3 +1,23 @@
# Copyright (C) 2000 Werner Koch (dd9jn)
# Copyright (C) 2001 g10 Code GmbH
#
# This file is part of GPGME.
#
# GPGME 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.
#
# GPGME 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.
#
# 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
## Process this file with automake to produce Makefile.in
EXTRA_DIST = README-alpha autogen.sh EXTRA_DIST = README-alpha autogen.sh

20
NEWS
View File

@ -0,0 +1,20 @@
Noteworthy changes in version 0.2.1 (2001-04-02)
------------------------------------------------
* Changed debug output and GPGME_DEBUG variable (gpgme/debug.c)
* Handle GnuPG's new key capabilities output and support revocation
et al. attributes
* Made the W32 support more robust.
Copyright 2001 g10 Code GmbH
This file is free software; as a special exception the author gives
unlimited permission to copy and/or distribute it, with or without
modifications, as long as this notice is preserved.
This file is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

View File

@ -1,3 +1,22 @@
# Copyright (C) 2000 Werner Koch (dd9jn)
# Copyright (C) 2001 g10 Code GmbH
#
# This file is part of GPGME.
#
# GPGME 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.
#
# GPGME 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.
#
# 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
## Process this file with automake to produce Makefile.in ## Process this file with automake to produce Makefile.in
bin_PROGRAMS = gpgme bin_PROGRAMS = gpgme

View File

@ -1,3 +1,22 @@
# Copyright (C) 2000 Werner Koch (dd9jn)
# Copyright (C) 2001 g10 Code GmbH
#
# This file is part of GPGME.
#
# GPGME 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.
#
# GPGME 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.
#
# 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
## Process this file with automake to produce Makefile.in ## Process this file with automake to produce Makefile.in
EXTRA_DIST = WINE-LICENSE WINE-AUTHORS EXTRA_DIST = WINE-LICENSE WINE-AUTHORS

View File

@ -1,6 +1,24 @@
# configure.in for GPGME # configure.in for GPGME
# Copyright (C) 2000 Werner Koch (dd9jn)
# Copyright (C) 2001 g10 Code GmbH
# #
dnl (Process this file with autoconf to produce a configure script.) # This file is part of GPGME.
#
# GPGME 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.
#
# GPGME 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.
#
# 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
# (Process this file with autoconf to produce a configure script.)
AC_REVISION($Revision$)dnl AC_REVISION($Revision$)dnl
AC_INIT(gpgme/gpgme.h) AC_INIT(gpgme/gpgme.h)
@ -13,11 +31,11 @@ AM_MAINTAINER_MODE
# AGE, set REVISION to 0. # AGE, set REVISION to 0.
# 3. Interfaces removed (BAD, breaks upward compatibility): Increment # 3. Interfaces removed (BAD, breaks upward compatibility): Increment
# CURRENT, set AGE and REVISION to 0. # CURRENT, set AGE and REVISION to 0.
AM_INIT_AUTOMAKE(gpgme,0.2.0a) AM_INIT_AUTOMAKE(gpgme,0.2.1)
LIBGPGME_LT_CURRENT=3 LIBGPGME_LT_CURRENT=3
LIBGPGME_LT_AGE=3 LIBGPGME_LT_AGE=3
LIBGPGME_LT_REVISION=0 LIBGPGME_LT_REVISION=0
NEED_GPG_VERSION=1.0.4e NEED_GPG_VERSION=1.0.4f
############################################## ##############################################
AC_SUBST(LIBGPGME_LT_CURRENT) AC_SUBST(LIBGPGME_LT_CURRENT)
@ -32,7 +50,7 @@ dnl
AC_ARG_PROGRAM AC_ARG_PROGRAM
dnl Don't default to build static libs dnl Don't default to build static libs
AM_DISABLE_STATIC dnl AM_DISABLE_STATIC
AM_PROG_LIBTOOL AM_PROG_LIBTOOL
if test "$GCC" = yes; then if test "$GCC" = yes; then

View File

@ -1,3 +1,11 @@
2001-03-30 Werner Koch <wk@gnupg.org>
* debug.c (debug_init): Allow to specify a debug file.
(_gpgme_debug_level): New.
* posix-io.c (_gpgme_io_read, _gpgme_io_write): Print output.
(_gpgme_io_select): Debug only with level > 2.
2001-03-15 Werner Koch <wk@gnupg.org> 2001-03-15 Werner Koch <wk@gnupg.org>
* rungpg.c: Included time.h. * rungpg.c: Included time.h.
@ -33,7 +41,7 @@
2001-02-28 Werner Koch <wk@gnupg.org> 2001-02-28 Werner Koch <wk@gnupg.org>
* w32-io.c (destroy_reader): Set sop_me flag. * w32-io.c (destroy_reader): Set stop_me flag.
(writer,create_writer,destroy_writer,find_writer,kill_writer): New. (writer,create_writer,destroy_writer,find_writer,kill_writer): New.
(_gpgme_io_write): Use a writer thread to avaoid blocking. (_gpgme_io_write): Use a writer thread to avaoid blocking.
(_gpgme_io_close): Cleanup a writer thread (_gpgme_io_close): Cleanup a writer thread
@ -163,3 +171,15 @@
2001-01-05 Werner Koch <wk@gnupg.org> 2001-01-05 Werner Koch <wk@gnupg.org>
* data.c (gpgme_data_rewind): Allow to rewind data_type_none. * data.c (gpgme_data_rewind): Allow to rewind data_type_none.
Copyright 2001 g10 Code GmbH
This file is free software; as a special exception the author gives
unlimited permission to copy and/or distribute it, with or without
modifications, as long as this notice is preserved.
This file is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

View File

@ -1,4 +1,23 @@
# Process this file with automake to produce Makefile.in # Copyright (C) 2000 Werner Koch (dd9jn)
# Copyright (C) 2001 g10 Code GmbH
#
# This file is part of GPGME.
#
# GPGME 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.
#
# GPGME 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.
#
# 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
## Process this file with automake to produce Makefile.in
EXTRA_DIST = gpgme-config.in gpgme.m4 mkerrors mkstatus EXTRA_DIST = gpgme-config.in gpgme.m4 mkerrors mkstatus
BUILT_SOURCES = errors.c status-table.h BUILT_SOURCES = errors.c status-table.h

View File

@ -1,5 +1,6 @@
/* context.h /* context.h
* Copyright (C) 2000 Werner Koch (dd9jn) * Copyright (C) 2000 Werner Koch (dd9jn)
* Copyright (C) 2001 g10 Code GmbH
* *
* This file is part of GPGME. * This file is part of GPGME.
* *

View File

@ -1,5 +1,6 @@
/* data.c /* data.c
* Copyright (C) 2000 Werner Koch (dd9jn) * Copyright (C) 2000 Werner Koch (dd9jn)
* Copyright (C) 2001 g10 Code GmbH
* *
* This file is part of GPGME. * This file is part of GPGME.
* *

View File

@ -1,5 +1,5 @@
/* debug.c /* debug.c
* Copyright (C) 2001 Werner Koch (dd9jn) * Copyright (C) 2001 g10 Code GmbH
* *
* This file is part of GPGME. * This file is part of GPGME.
* *
@ -24,6 +24,7 @@
#include <string.h> #include <string.h>
#include <stdarg.h> #include <stdarg.h>
#include <unistd.h> #include <unistd.h>
#include <ctype.h>
#include <assert.h> #include <assert.h>
#include "util.h" #include "util.h"
@ -37,6 +38,34 @@ struct debug_control_s {
}; };
static int debug_level = 0; static int debug_level = 0;
static FILE *errfp = NULL;
/****************
* remove leading and trailing white spaces
*/
static char *
trim_spaces( char *str )
{
char *string, *p, *mark;
string = str;
/* find first non space character */
for( p=string; *p && isspace( *(byte*)p ) ; p++ )
;
/* move characters */
for( (mark = NULL); (*string = *p); string++, p++ )
if( isspace( *(byte*)p ) ) {
if( !mark )
mark = string ;
}
else
mark = NULL ;
if( mark )
*mark = '\0' ; /* remove trailing spaces */
return str ;
}
static void static void
debug_init (void) debug_init (void)
@ -48,15 +77,51 @@ debug_init (void)
LOCK (debug_lock); LOCK (debug_lock);
if (!initialized) { if (!initialized) {
const char *e = getenv ("GPGME_DEBUG"); const char *e = getenv ("GPGME_DEBUG");
const char *s1, *s2;;
debug_level = e? atoi (e): 0;
initialized = 1; initialized = 1;
debug_level = 0;
errfp = stderr;
if (e) {
debug_level = atoi (e);
s1 = strchr (e, ':');
if (s1
#ifndef HAVE_DOSISH_SYSTEM
&& getuid () == geteuid ()
#endif
) {
char *p;
FILE *fp;
s1++;
if ( !(s2 = strchr (s1, ':')) )
s2 = s1 + strlen(s1);
p = xtrymalloc (s2-s1+1);
if (p) {
memcpy (p, s1, s2-s1);
p[s2-s1] = 0;
trim_spaces (p);
fp = fopen (p,"a");
if (fp) {
setvbuf (fp, NULL, _IOLBF, 0);
errfp = fp;
}
xfree (p);
}
}
}
if (debug_level > 0) if (debug_level > 0)
fprintf (stderr,"gpgme_debug: level=%d\n", debug_level); fprintf (errfp,"gpgme_debug: level=%d\n", debug_level);
} }
UNLOCK (debug_lock); UNLOCK (debug_lock);
} }
int
_gpgme_debug_level ()
{
return debug_level;
}
void void
_gpgme_debug (int level, const char *format, ...) _gpgme_debug (int level, const char *format, ...)
@ -69,12 +134,12 @@ _gpgme_debug (int level, const char *format, ...)
va_start ( arg_ptr, format ) ; va_start ( arg_ptr, format ) ;
LOCK (debug_lock); LOCK (debug_lock);
vfprintf (stderr, format, arg_ptr) ; vfprintf (errfp, format, arg_ptr) ;
va_end ( arg_ptr ) ; va_end ( arg_ptr ) ;
if( format && *format && format[strlen(format)-1] != '\n' ) if( format && *format && format[strlen(format)-1] != '\n' )
putc ('\n', stderr); putc ('\n', errfp);
UNLOCK (debug_lock); UNLOCK (debug_lock);
fflush (stderr); fflush (errfp);
} }
@ -144,11 +209,11 @@ _gpgme_debug_end (void **helper, const char *text)
rewind (ctl->fp); rewind (ctl->fp);
LOCK (debug_lock); LOCK (debug_lock);
while ( (c=getc (ctl->fp)) != EOF ) { while ( (c=getc (ctl->fp)) != EOF ) {
putc (c, stderr); putc (c, errfp);
last_c = c; last_c = c;
} }
if (last_c != '\n') if (last_c != '\n')
putc ('\n', stderr); putc ('\n', errfp);
UNLOCK (debug_lock); UNLOCK (debug_lock);
fclose (ctl->fp); fclose (ctl->fp);

View File

@ -1,5 +1,6 @@
/* decrypt.c - decrypt functions /* decrypt.c - decrypt functions
* Copyright (C) 2000 Werner Koch (dd9jn) * Copyright (C) 2000 Werner Koch (dd9jn)
* Copyright (C) 2001 g10 Code GmbH
* *
* This file is part of GPGME. * This file is part of GPGME.
* *

View File

@ -1,5 +1,5 @@
/* delete.c - delete a key /* delete.c - delete a key
* Copyright (C) 2001 Werner Koch (dd9jn) * Copyright (C) 2001 g10 Code GmbH
* *
* This file is part of GPGME. * This file is part of GPGME.
* *

View File

@ -1,5 +1,6 @@
/* encrypt.c - encrypt functions /* encrypt.c - encrypt functions
* Copyright (C) 2000 Werner Koch (dd9jn) * Copyright (C) 2000 Werner Koch (dd9jn)
* Copyright (C) 2001 g10 Code GmbH
* *
* This file is part of GPGME. * This file is part of GPGME.
* *

View File

@ -1,5 +1,6 @@
/* export.c - encrypt functions /* export.c - encrypt functions
* Copyright (C) 2000 Werner Koch (dd9jn) * Copyright (C) 2000 Werner Koch (dd9jn)
* Copyright (C) 2001 g10 Code GmbH
* *
* This file is part of GPGME. * This file is part of GPGME.
* *

View File

@ -1,5 +1,6 @@
/* genkey.c - key generation /* genkey.c - key generation
* Copyright (C) 2000 Werner Koch (dd9jn) * Copyright (C) 2000 Werner Koch (dd9jn)
* Copyright (C) 2001 g10 Code GmbH
* *
* This file is part of GPGME. * This file is part of GPGME.
* *

View File

@ -1,5 +1,6 @@
/* gpgme.c - GnuPG Made Easy /* gpgme.c - GnuPG Made Easy
* Copyright (C) 2000 Werner Koch (dd9jn) * Copyright (C) 2000 Werner Koch (dd9jn)
* Copyright (C) 2001 g10 Code GmbH
* *
* This file is part of GPGME. * This file is part of GPGME.
* *

View File

@ -1,5 +1,6 @@
/* gpgme.h - GnuPG Made Easy /* gpgme.h - GnuPG Made Easy
* Copyright (C) 2000 Werner Koch (dd9jn) * Copyright (C) 2000 Werner Koch (dd9jn)
* Copyright (C) 2001 g10 Code GmbH
* *
* This file is part of GPGME. * This file is part of GPGME.
* *
@ -43,7 +44,7 @@ extern "C" {
* let autoconf (using the AM_PATH_GPGME macro) check that this * let autoconf (using the AM_PATH_GPGME macro) check that this
* header matches the installed library. * header matches the installed library.
* Warning: Do not edit the next line. configure will do that for you! */ * Warning: Do not edit the next line. configure will do that for you! */
#define GPGME_VERSION "0.2.0a" #define GPGME_VERSION "0.2.1"

View File

@ -1,5 +1,6 @@
/* impoirt.c - encrypt functions /* import.c - encrypt functions
* Copyright (C) 2000 Werner Koch (dd9jn) * Copyright (C) 2000 Werner Koch (dd9jn)
* Copyright (C) 2001 g10 Code GmbH
* *
* This file is part of GPGME. * This file is part of GPGME.
* *

View File

@ -1,5 +1,6 @@
/* io.h - I/O functions /* io.h - I/O functions
* Copyright (C) 2000 Werner Koch (dd9jn) * Copyright (C) 2000 Werner Koch (dd9jn)
* Copyright (C) 2001 g10 Code GmbH
* *
* This file is part of GPGME. * This file is part of GPGME.
* *

View File

@ -1,5 +1,6 @@
/* key.c - Key and keyList objects /* key.c - Key and keyList objects
* Copyright (C) 2000 Werner Koch (dd9jn) * Copyright (C) 2000 Werner Koch (dd9jn)
* Copyright (C) 2001 g10 Code GmbH
* *
* This file is part of GPGME. * This file is part of GPGME.
* *

View File

@ -1,5 +1,6 @@
/* key.h /* key.h
* Copyright (C) 2000 Werner Koch (dd9jn) * Copyright (C) 2000 Werner Koch (dd9jn)
* Copyright (C) 2001 g10 Code GmbH
* *
* This file is part of GPGME. * This file is part of GPGME.
* *

View File

@ -1,5 +1,6 @@
/* keylist.c - key listing /* keylist.c - key listing
* Copyright (C) 2000 Werner Koch (dd9jn) * Copyright (C) 2000 Werner Koch (dd9jn)
* Copyright (C) 2001 g10 Code GmbH
* *
* This file is part of GPGME. * This file is part of GPGME.
* *

View File

@ -2,6 +2,7 @@
# mkerrors - Extract error strings from gpgme.h # mkerrors - Extract error strings from gpgme.h
# and create C source for gpgme_strerror # and create C source for gpgme_strerror
# Copyright (C) 2000 Werner Koch (dd9jn) # Copyright (C) 2000 Werner Koch (dd9jn)
# Copyright (C) 2001 g10 Code GmbH
# #
# This file is part of GPGME. # This file is part of GPGME.
# #

View File

@ -2,6 +2,7 @@
# mkstatus - Extract error strings from rungpg.h # mkstatus - Extract error strings from rungpg.h
# and create a lookup table # and create a lookup table
# Copyright (C) 2000 Werner Koch (dd9jn) # Copyright (C) 2000 Werner Koch (dd9jn)
# Copyright (C) 2001 g10 Code GmbH
# #
# This file is part of GPGME. # This file is part of GPGME.
# #

View File

@ -1,5 +1,6 @@
/* ops.h - internal operations stuff /* ops.h - internal operations stuff
* Copyright (C) 2000 Werner Koch (dd9jn) * Copyright (C) 2000 Werner Koch (dd9jn)
* Copyright (C) 2001 g10 Code GmbH
* *
* This file is part of GPGME. * This file is part of GPGME.
* *

View File

@ -1,5 +1,6 @@
/* posix-io.c - Posix I/O functions /* posix-io.c - Posix I/O functions
* Copyright (C) 2000 Werner Koch (dd9jn) * Copyright (C) 2000 Werner Koch (dd9jn)
* Copyright (C) 2001 g10 Code GmbH
* *
* This file is part of GPGME. * This file is part of GPGME.
* *
@ -52,6 +53,9 @@ _gpgme_io_read ( int fd, void *buffer, size_t count )
nread = read (fd, buffer, count); nread = read (fd, buffer, count);
} while (nread == -1 && errno == EINTR ); } while (nread == -1 && errno == EINTR );
DEBUG2 ("fd %d: got %d bytes\n", fd, nread ); DEBUG2 ("fd %d: got %d bytes\n", fd, nread );
if ( nread > 0 ) {
_gpgme_debug (2, "fd %d: got `%.*s'\n", fd, nread, buffer );
}
return nread; return nread;
} }
@ -62,6 +66,7 @@ _gpgme_io_write ( int fd, const void *buffer, size_t count )
int nwritten; int nwritten;
DEBUG2 ("fd %d: about to write %d bytes\n", fd, (int)count ); DEBUG2 ("fd %d: about to write %d bytes\n", fd, (int)count );
_gpgme_debug (2, "fd %d: write `%.*s'\n", fd, (int)count, buffer );
do { do {
nwritten = write (fd, buffer, count); nwritten = write (fd, buffer, count);
} while (nwritten == -1 && errno == EINTR ); } while (nwritten == -1 && errno == EINTR );
@ -256,13 +261,14 @@ _gpgme_io_select ( struct io_select_fd_s *fds, size_t nfds )
static fd_set writefds; static fd_set writefds;
int any, i, max_fd, n, count; int any, i, max_fd, n, count;
struct timeval timeout = { 1, 0 }; /* Use a 1s timeout */ struct timeval timeout = { 1, 0 }; /* Use a 1s timeout */
void *dbg_help; void *dbg_help = NULL;
FD_ZERO ( &readfds ); FD_ZERO ( &readfds );
FD_ZERO ( &writefds ); FD_ZERO ( &writefds );
max_fd = 0; max_fd = 0;
DEBUG_BEGIN (dbg_help, "gpgme:select on [ "); if ( _gpgme_debug_level () > 2 )
DEBUG_BEGIN (dbg_help, "gpgme:select on [ ");
any = 0; any = 0;
for ( i=0; i < nfds; i++ ) { for ( i=0; i < nfds; i++ ) {
if ( fds[i].fd == -1 ) if ( fds[i].fd == -1 )
@ -288,7 +294,7 @@ _gpgme_io_select ( struct io_select_fd_s *fds, size_t nfds )
} }
fds[i].signaled = 0; fds[i].signaled = 0;
} }
DEBUG_END (dbg_help, "]" ); DEBUG_END (dbg_help, "]" );
if ( !any ) if ( !any )
return 0; return 0;
@ -300,7 +306,8 @@ _gpgme_io_select ( struct io_select_fd_s *fds, size_t nfds )
return -1; /* error */ return -1; /* error */
} }
DEBUG_BEGIN (dbg_help, "select OK [ " ); if ( _gpgme_debug_level () > 2 )
DEBUG_BEGIN (dbg_help, "select OK [ " );
if (DEBUG_ENABLED(dbg_help)) { if (DEBUG_ENABLED(dbg_help)) {
for (i=0; i <= max_fd; i++ ) { for (i=0; i <= max_fd; i++ ) {
if (FD_ISSET (i, &readfds) ) if (FD_ISSET (i, &readfds) )

View File

@ -1,5 +1,6 @@
/* posix-sema.c /* posix-sema.c
* Copyright (C) 2001 Werner Koch (dd9jn) * Copyright (C) 2001 Werner Koch (dd9jn)
* Copyright (C) 2001 g10 Code GmbH
* *
* This file is part of GPGME. * This file is part of GPGME.
* *

View File

@ -1,5 +1,6 @@
/* posix-util.c - Utility functions for Posix /* posix-util.c - Utility functions for Posix
* Copyright (C) 2001 Werner Koch (dd9jn) * Copyright (C) 2001 Werner Koch (dd9jn)
* Copyright (C) 2001 g10 Code GmbH
* *
* This file is part of GPGME. * This file is part of GPGME.
* *

View File

@ -1,5 +1,6 @@
/* recipient.c - mainatin recipient sets /* recipient.c - mainatin recipient sets
* Copyright (C) 2000 Werner Koch (dd9jn) * Copyright (C) 2000 Werner Koch (dd9jn)
* Copyright (C) 2001 g10 Code GmbH
* *
* This file is part of GPGME. * This file is part of GPGME.
* *

View File

@ -1,5 +1,6 @@
/* rungpg.c /* rungpg.c
* Copyright (C) 2000 Werner Koch (dd9jn) * Copyright (C) 2000 Werner Koch (dd9jn)
* Copyright (C) 2001 g10 Code GmbH
* *
* This file is part of GPGME. * This file is part of GPGME.
* *

View File

@ -1,5 +1,6 @@
/* rungpg.h - gpg calling functions /* rungpg.h - gpg calling functions
* Copyright (C) 2000 Werner Koch (dd9jn) * Copyright (C) 2000 Werner Koch (dd9jn)
* Copyright (C) 2001 g10 Code GmbH
* *
* This file is part of GPGME. * This file is part of GPGME.
* *

View File

@ -1,5 +1,6 @@
/* sema.h - definitions for semaphores /* sema.h - definitions for semaphores
* Copyright (C) 2001 Werner Koch (dd9jn) * Copyright (C) 2001 Werner Koch (dd9jn)
* Copyright (C) 2001 g10 Code GmbH
* *
* This file is part of GPGME. * This file is part of GPGME.
* *

View File

@ -1,5 +1,6 @@
/* sign.c - signing functions /* sign.c - signing functions
* Copyright (C) 2000 Werner Koch (dd9jn) * Copyright (C) 2000 Werner Koch (dd9jn)
* Copyright (C) 2001 g10 Code GmbH
* *
* This file is part of GPGME. * This file is part of GPGME.
* *

View File

@ -1,5 +1,6 @@
/* signers.c - maintain signer sets /* signers.c - maintain signer sets
* Copyright (C) 2001 Werner Koch (dd9jn) * Copyright (C) 2001 Werner Koch (dd9jn)
* Copyright (C) 2001 g10 Code GmbH
* *
* This file is part of GPGME. * This file is part of GPGME.
* *

View File

@ -1,5 +1,6 @@
/* syshdr.h - System specfic header files /* syshdr.h - System specfic header files
* Copyright (C) 2000 Werner Koch (dd9jn) * Copyright (C) 2000 Werner Koch (dd9jn)
* Copyright (C) 2001 g10 Code GmbH
* *
* This file is part of GPGME. * This file is part of GPGME.
* *

View File

@ -1,5 +1,6 @@
/* trustlist.c - key listing /* trustlist.c - key listing
* Copyright (C) 2000 Werner Koch (dd9jn) * Copyright (C) 2000 Werner Koch (dd9jn)
* Copyright (C) 2001 g10 Code GmbH
* *
* This file is part of GPGME. * This file is part of GPGME.
* *

View File

@ -1,5 +1,6 @@
/* types.h - Some type definitions /* types.h - Some type definitions
* Copyright (C) 2000 Werner Koch (dd9jn) * Copyright (C) 2000 Werner Koch (dd9jn)
* Copyright (C) 2001 g10 Code GmbH
* *
* This file is part of GPGME. * This file is part of GPGME.
* *

View File

@ -1,5 +1,6 @@
/* util.c /* util.c
* Copyright (C) 2000 Werner Koch (dd9jn) * Copyright (C) 2000 Werner Koch (dd9jn)
* Copyright (C) 2001 g10 Code GmbH
* *
* This file is part of GPGME. * This file is part of GPGME.
* *

View File

@ -1,5 +1,6 @@
/* util.h /* util.h
* Copyright (C) 2000 Werner Koch (dd9jn) * Copyright (C) 2000 Werner Koch (dd9jn)
* Copyright (C) 2001 g10 Code GmbH
* *
* This file is part of GPGME. * This file is part of GPGME.
* *
@ -47,6 +48,7 @@ void _gpgme_free ( void *a );
void _gpgme_debug (int level, const char *format, ...); void _gpgme_debug (int level, const char *format, ...);
int _gpgme_debug_level (void);
void _gpgme_debug_begin ( void **helper, int level, const char *text); void _gpgme_debug_begin ( void **helper, int level, const char *text);
int _gpgme_debug_enabled ( void **helper ); int _gpgme_debug_enabled ( void **helper );
void _gpgme_debug_add (void **helper, const char *format, ...); void _gpgme_debug_add (void **helper, const char *format, ...);

View File

@ -1,5 +1,6 @@
/* verify.c - signature verification /* verify.c - signature verification
* Copyright (C) 2000 Werner Koch (dd9jn) * Copyright (C) 2000 Werner Koch (dd9jn)
* Copyright (C) 2001 g10 Code GmbH
* *
* This file is part of GPGME. * This file is part of GPGME.
* *

View File

@ -1,5 +1,6 @@
/* version.c - version check /* version.c - version check
* Copyright (C) 2000 Werner Koch (dd9jn) * Copyright (C) 2000 Werner Koch (dd9jn)
* Copyright (C) 2001 g10 Code GmbH
* *
* This file is part of GPGME. * This file is part of GPGME.
* *

View File

@ -1,5 +1,6 @@
/* w32-io.c - W32 API I/O functions /* w32-io.c - W32 API I/O functions
* Copyright (C) 2000 Werner Koch (dd9jn) * Copyright (C) 2000 Werner Koch (dd9jn)
* Copyright (C) 2001 g10 Code GmbH
* *
* This file is part of GPGME. * This file is part of GPGME.
* *

View File

@ -1,5 +1,6 @@
/* w32-sema.c /* w32-sema.c
* Copyright (C) 2001 Werner Koch (dd9jn) * Copyright (C) 2001 Werner Koch (dd9jn)
* Copyright (C) 2001 g10 Code GmbH
* *
* This file is part of GPGME. * This file is part of GPGME.
* *

View File

@ -1,6 +1,7 @@
/* w32-util.c - Utility functions for the W32 API /* w32-util.c - Utility functions for the W32 API
* Copyright (C) 2001 Werner Koch (dd9jn)
* Copyright (C) 1999 Free Software Foundation, Inc * Copyright (C) 1999 Free Software Foundation, Inc
* Copyright (C) 2001 Werner Koch (dd9jn)
* Copyright (C) 2001 g10 Code GmbH
* *
* This file is part of GPGME. * This file is part of GPGME.
* *

View File

@ -1,5 +1,6 @@
/* wait.c /* wait.c
* Copyright (C) 2000 Werner Koch (dd9jn) * Copyright (C) 2000 Werner Koch (dd9jn)
* Copyright (C) 2001 g10 Code GmbH
* *
* This file is part of GPGME. * This file is part of GPGME.
* *

View File

@ -1,5 +1,6 @@
/* wait.h - definitions for wait.c /* wait.h - definitions for wait.c
* Copyright (C) 2000 Werner Koch (dd9jn) * Copyright (C) 2000 Werner Koch (dd9jn)
* Copyright (C) 2001 g10 Code GmbH
* *
* This file is part of GPGME. * This file is part of GPGME.
* *

View File

@ -39,3 +39,14 @@ Mon Jan 24 13:04:28 CET 2000 Werner Koch <wk@gnupg.de>
(log_printf): New. (log_printf): New.
(do_logv): Add kludge to insert LFs. (do_logv): Add kludge to insert LFs.
Copyright 2000 Werner Koch (dd9jn)
Copyright 2001 g10 Code GmbH
This file is free software; as a special exception the author gives
unlimited permission to copy and/or distribute it, with or without
modifications, as long as this notice is preserved.
This file is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

View File

@ -1,3 +1,21 @@
# Copyright (C) 1999, 2000, 2001 Feee Software Soundation, Inc.
#
# This file is part of GnuPG
#
# 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.
#
# 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.
#
# 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
## Process this file with automake to produce Makefile.in ## Process this file with automake to produce Makefile.in
EXTRA_DIST = README EXTRA_DIST = README
@ -16,4 +34,3 @@ libjnlib_a_SOURCES = libjnlib-config.h \
types.h mischelp.h types.h mischelp.h

View File

@ -1,5 +1,5 @@
/* [argparse.c wk 17.06.97] Argument Parser for option handling /* [argparse.c wk 17.06.97] Argument Parser for option handling
* Copyright (C) 1998, 1999, 2000 Free Software Foundation, Inc. * Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
* *
* This file is part of GnuPG. * This file is part of GnuPG.
* *

View File

@ -1,5 +1,5 @@
/* argparse.h /* argparse.h
* Copyright (C) 1998,1999 Free Software Foundation, Inc. * Copyright (C) 1998,1999,2000,2001 Free Software Foundation, Inc.
* *
* This file is part of GnuPG. * This file is part of GnuPG.
* *

View File

@ -1,5 +1,5 @@
/* dotlock.c - dotfile locking /* dotlock.c - dotfile locking
* Copyright (C) 1998,2000 Free Software Foundation, Inc. * Copyright (C) 1998,2000,2001 Free Software Foundation, Inc.
* *
* This file is part of GnuPG. * This file is part of GnuPG.
* *

View File

@ -1,5 +1,5 @@
/* dotlock.h /* dotlock.h
* Copyright (C) 2000 Free Software Foundation, Inc. * Copyright (C) 2000, 2001 Free Software Foundation, Inc.
* *
* This file is part of GnuPG. * This file is part of GnuPG.
* *

View File

@ -1,5 +1,5 @@
/* libjnlib-config.h - local configuration of the jnlib functions /* libjnlib-config.h - local configuration of the jnlib functions
* Copyright (C) 2000 Free Software Foundation, Inc. * Copyright (C) 2000, 2001 Free Software Foundation, Inc.
* *
* This file is part of GnuPG. * This file is part of GnuPG.
* *

View File

@ -1,5 +1,5 @@
/* logging.c - useful logging functions /* logging.c - useful logging functions
* Copyright (C) 1998, 1999, 2000 Free Software Foundation, Inc. * Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
* *
* This file is part of GnuPG. * This file is part of GnuPG.
* *

View File

@ -1,5 +1,5 @@
/* logging.h /* logging.h
* Copyright (C) 1999, 2000 Free Software Foundation, Inc. * Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
* *
* This file is part of GnuPG. * This file is part of GnuPG.
* *

View File

@ -1,5 +1,5 @@
/* mischelp.h /* mischelp.h
* Copyright (C) 1999 Free Software Foundation, Inc. * Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
* *
* This file is part of GnuPG. * This file is part of GnuPG.
* *

View File

@ -1,5 +1,5 @@
/* stringhelp.c - standard string helper functions /* stringhelp.c - standard string helper functions
* Copyright (C) 1998, 1999 Free Software Foundation, Inc. * Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
* *
* This file is part of GnuPG. * This file is part of GnuPG.
* *

View File

@ -1,5 +1,5 @@
/* stringhelp.h /* stringhelp.h
* Copyright (C) 1998,1999 Free Software Foundation, Inc. * Copyright (C) 1998,1999,2000,2001 Free Software Foundation, Inc.
* *
* This file is part of GnuPG. * This file is part of GnuPG.
* *

View File

@ -1,5 +1,5 @@
/* types.h /* types.h
* Copyright (C) 1999, 2000 Free Software Foundation, Inc. * Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
* *
* This file is part of GnuPG. * This file is part of GnuPG.
* *

View File

@ -1,5 +1,5 @@
/* xmalloc.c - standard malloc wrappers /* xmalloc.c - standard malloc wrappers
* Copyright (C) 1999 Free Software Foundation, Inc. * Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
* *
* This file is part of GnuPG. * This file is part of GnuPG.
* *

View File

@ -1,5 +1,5 @@
/* xmalloc.h /* xmalloc.h
* Copyright (C) 1999 Free Software Foundation, Inc. * Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
* *
* This file is part of GnuPG. * This file is part of GnuPG.
* *

View File

@ -1,4 +1,24 @@
## Process this file with automake to create Makefile.in # Copyright (C) 2000 Werner Koch (dd9jn)
# Copyright (C) 2001 g10 Code GmbH
#
# This file is part of GPGME.
#
# GPGME 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.
#
# GPGME 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.
#
# 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
## Process this file with automake to produce Makefile.in
TESTS_ENVIRONMENT = GNUPGHOME=. TESTS_ENVIRONMENT = GNUPGHOME=.

View File

@ -1,5 +1,6 @@
/* t-encrypt.c - regression test /* t-encrypt.c - regression test
* Copyright (C) 2000 Werner Koch (dd9jn) * Copyright (C) 2000 Werner Koch (dd9jn)
* Copyright (C) 2001 g10 Code GmbH
* *
* This file is part of GPGME. * This file is part of GPGME.
* *

View File

@ -1,5 +1,6 @@
/* t-encrypt.c - regression test /* t-encrypt.c - regression test
* Copyright (C) 2000 Werner Koch (dd9jn) * Copyright (C) 2000 Werner Koch (dd9jn)
* Copyright (C) 2001 g10 Code GmbH
* *
* This file is part of GPGME. * This file is part of GPGME.
* *

View File

@ -1,5 +1,6 @@
/* t-export.c - regression test /* t-export.c - regression test
* Copyright (C) 2000 Werner Koch (dd9jn) * Copyright (C) 2000 Werner Koch (dd9jn)
* Copyright (C) 2001 g10 Code GmbH
* *
* This file is part of GPGME. * This file is part of GPGME.
* *

View File

@ -1,5 +1,6 @@
/* t-genkey.c - regression test /* t-genkey.c - regression test
* Copyright (C) 2000 Werner Koch (dd9jn) * Copyright (C) 2000 Werner Koch (dd9jn)
* Copyright (C) 2001 g10 Code GmbH
* *
* This file is part of GPGME. * This file is part of GPGME.
* *

View File

@ -1,5 +1,6 @@
/* t-import.c - regression test /* t-import.c - regression test
* Copyright (C) 2000 Werner Koch (dd9jn) * Copyright (C) 2000 Werner Koch (dd9jn)
* Copyright (C) 2001 g10 Code GmbH
* *
* This file is part of GPGME. * This file is part of GPGME.
* *

View File

@ -1,5 +1,6 @@
/* t-keylist.c - regression test /* t-keylist.c - regression test
* Copyright (C) 2000 Werner Koch (dd9jn) * Copyright (C) 2000 Werner Koch (dd9jn)
* Copyright (C) 2001 g10 Code GmbH
* *
* This file is part of GPGME. * This file is part of GPGME.
* *

View File

@ -1,5 +1,6 @@
/* t-sign.c - regression test /* t-sign.c - regression test
* Copyright (C) 2000 Werner Koch (dd9jn) * Copyright (C) 2000 Werner Koch (dd9jn)
* Copyright (C) 2001 g10 Code GmbH
* *
* This file is part of GPGME. * This file is part of GPGME.
* *

View File

@ -1,5 +1,6 @@
/* t-trustlist.c - regression test /* t-trustlist.c - regression test
* Copyright (C) 2000 Werner Koch (dd9jn) * Copyright (C) 2000 Werner Koch (dd9jn)
* Copyright (C) 2001 g10 Code GmbH
* *
* This file is part of GPGME. * This file is part of GPGME.
* *

View File

@ -1,5 +1,6 @@
/* t-verify.c - regression test /* t-verify.c - regression test
* Copyright (C) 2000 Werner Koch (dd9jn) * Copyright (C) 2000 Werner Koch (dd9jn)
* Copyright (C) 2001 g10 Code GmbH
* *
* This file is part of GPGME. * This file is part of GPGME.
* *