mirror of
git://git.gnupg.org/gnupg.git
synced 2025-04-12 22:11:29 +02:00
See ChangeLog: Sun Jan 3 15:28:44 CET 1999 Werner Koch
This commit is contained in:
parent
d6fa538a95
commit
e3e8d9b92f
@ -1,3 +1,8 @@
|
|||||||
|
Sun Jan 3 15:28:44 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
|
||||||
|
|
||||||
|
* acinclude.m4 (GNUPG_CHECK_RDYNAMIC): New.
|
||||||
|
* configure.in (DYNLOAD_CFLAGS): Use result from CHECK_RDYNAMIC
|
||||||
|
|
||||||
Wed Dec 23 13:18:14 CET 1998 Werner Koch <wk@isil.d.shuttle.de>
|
Wed Dec 23 13:18:14 CET 1998 Werner Koch <wk@isil.d.shuttle.de>
|
||||||
|
|
||||||
* README: Replaced the command overview with a short intro.
|
* README: Replaced the command overview with a short intro.
|
||||||
|
1
THANKS
1
THANKS
@ -48,6 +48,7 @@ Lars Kellogg-Stedman lars@bu.edu
|
|||||||
Marco d'Itri md@linux.it
|
Marco d'Itri md@linux.it
|
||||||
Mark Adler madler@alumni.caltech.edu
|
Mark Adler madler@alumni.caltech.edu
|
||||||
Markus Friedl Markus.Friedl@informatik.uni-erlangen.de
|
Markus Friedl Markus.Friedl@informatik.uni-erlangen.de
|
||||||
|
Martin Kahlert martin.kahlert@provi.de
|
||||||
Martin Schulte schulte@thp.uni-koeln.de
|
Martin Schulte schulte@thp.uni-koeln.de
|
||||||
Matthew Skala mskala@ansuz.sooke.bc.ca
|
Matthew Skala mskala@ansuz.sooke.bc.ca
|
||||||
Max Valianskiy maxcom@maxcom.ml.org
|
Max Valianskiy maxcom@maxcom.ml.org
|
||||||
|
6
TODO
6
TODO
@ -20,7 +20,11 @@ Important
|
|||||||
|
|
||||||
* See why we always get this "Hmmm public key lost"
|
* See why we always get this "Hmmm public key lost"
|
||||||
|
|
||||||
* print a warning when a revoked/expired secret is used.
|
* print a warning when a revoked/expired secret key is used.
|
||||||
|
|
||||||
|
* display trhe primary keyID in passphrase.c in addition to the
|
||||||
|
one for the requested key.
|
||||||
|
|
||||||
|
|
||||||
Needed
|
Needed
|
||||||
------
|
------
|
||||||
|
25
acinclude.m4
25
acinclude.m4
@ -187,6 +187,31 @@ define(GNUPG_CHECK_PIC,
|
|||||||
])
|
])
|
||||||
|
|
||||||
|
|
||||||
|
######################################################################
|
||||||
|
# Check for rdynamic flag
|
||||||
|
# This sets CFLAGS_RDYNAMIC to the required flags
|
||||||
|
######################################################################
|
||||||
|
dnl GNUPG_CHECK_RDYNAMIC
|
||||||
|
dnl
|
||||||
|
define(GNUPG_CHECK_RDYNAMIC,
|
||||||
|
[ AC_MSG_CHECKING(how to specify -rdynamic)
|
||||||
|
CFLAGS_RDYNAMIC=
|
||||||
|
if test "$cross_compiling" = yes; then
|
||||||
|
AC_MSG_RESULT(assume none)
|
||||||
|
else
|
||||||
|
case "$host_os" in
|
||||||
|
solaris*)
|
||||||
|
CFLAGS_RDYNAMIC="-Wl,-dy"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
CFLAGS_RDYNAMIC="-Wl,-export-dynamic"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
AC_MSG_RESULT($CFLAGS_RDYNAMIC)
|
||||||
|
fi
|
||||||
|
])
|
||||||
|
|
||||||
|
|
||||||
#####################################################################
|
#####################################################################
|
||||||
# Check for SysV IPC (from GIMP)
|
# Check for SysV IPC (from GIMP)
|
||||||
# And see whether we have a SHM_LOCK (FreeBSD does not have it).
|
# And see whether we have a SHM_LOCK (FreeBSD does not have it).
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
1999-01-01 Geoff Keating <geoffk@ozemail.com.au>
|
||||||
|
|
||||||
|
* Makefile.am (CLEANFILES): Also delete trustdb and any leftover
|
||||||
|
lockfiles.
|
||||||
|
|
||||||
Fri Nov 27 15:30:24 CET 1998 Werner Koch <wk@isil.d.shuttle.de>
|
Fri Nov 27 15:30:24 CET 1998 Werner Koch <wk@isil.d.shuttle.de>
|
||||||
|
|
||||||
* clearsig.test: Some more test cases.
|
* clearsig.test: Some more test cases.
|
||||||
|
@ -19,8 +19,8 @@ TEST_FILES = pubring.asc secring.asc plain-1o.asc plain-2o.asc plain-3o.asc \
|
|||||||
DATA_FILES = data-500 data-9000 data-32000 data-80000
|
DATA_FILES = data-500 data-9000 data-32000 data-80000
|
||||||
|
|
||||||
EXTRA_DIST = defs.inc run-gpg run-gpgm run-gpg.patterns $(TESTS) $(TEST_FILES)
|
EXTRA_DIST = defs.inc run-gpg run-gpgm run-gpg.patterns $(TESTS) $(TEST_FILES)
|
||||||
CLEANFILES = prepared.stamp x y z out err $(DATA_FILES) \
|
CLEANFILES = prepared.stamp x y yy z out err $(DATA_FILES) \
|
||||||
plain-1 plain-2 plain-3
|
plain-1 plain-2 plain-3 options trustdb.gpg *.lock .\#lk*
|
||||||
DISTCLEANFILES = pubring.gpg secring.gpg pubring.pkr secring.skr
|
DISTCLEANFILES = pubring.gpg secring.gpg pubring.pkr secring.skr
|
||||||
|
|
||||||
|
|
||||||
|
@ -5,4 +5,5 @@ gpg: NOTE: cipher algorithm 4 not found in preferences
|
|||||||
gpg: NOTE: secret key 2E5FA4F4 is NOT protected.
|
gpg: NOTE: secret key 2E5FA4F4 is NOT protected.
|
||||||
gpg: NOTE: secret key 439F02CA is NOT protected.
|
gpg: NOTE: secret key 439F02CA is NOT protected.
|
||||||
gpg: WARNING: using insecure random number generator
|
gpg: WARNING: using insecure random number generator
|
||||||
|
gpg: NOTE: signature key expired
|
||||||
gpg: NOTE: this is a development version!
|
gpg: NOTE: this is a development version!
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
Sun Jan 3 15:28:44 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
|
||||||
|
|
||||||
|
* rndunix.c (start_gatherer): Fixed stupid ==/= bug
|
||||||
|
|
||||||
|
1998-12-31 Geoff Keating <geoffk@ozemail.com.au>
|
||||||
|
|
||||||
|
* des.c (is_weak_key): Rewrite loop end condition.
|
||||||
|
|
||||||
Tue Dec 29 14:41:47 CET 1998 Werner Koch <wk@isil.d.shuttle.de>
|
Tue Dec 29 14:41:47 CET 1998 Werner Koch <wk@isil.d.shuttle.de>
|
||||||
|
|
||||||
* random.c: add unistd.h for getpid().
|
* random.c: add unistd.h for getpid().
|
||||||
|
@ -723,16 +723,13 @@ is_weak_key ( const byte *key )
|
|||||||
/* binary search in the weak key table */
|
/* binary search in the weak key table */
|
||||||
left = 0;
|
left = 0;
|
||||||
right = 63;
|
right = 63;
|
||||||
while(1)
|
while(left <= right)
|
||||||
{
|
{
|
||||||
middle = (left + right) / 2;
|
middle = (left + right) / 2;
|
||||||
|
|
||||||
if ( !(cmp_result=memcmp(work, weak_keys[middle], 8)) )
|
if ( !(cmp_result=memcmp(work, weak_keys[middle], 8)) )
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
if ( left == right )
|
|
||||||
break;
|
|
||||||
|
|
||||||
if ( cmp_result > 0 )
|
if ( cmp_result > 0 )
|
||||||
left = middle + 1;
|
left = middle + 1;
|
||||||
else
|
else
|
||||||
|
@ -627,7 +627,7 @@ start_gatherer( int pipefd )
|
|||||||
while( write( pipefd, &msg, sizeof(msg) ) != sizeof(msg) ) {
|
while( write( pipefd, &msg, sizeof(msg) ) != sizeof(msg) ) {
|
||||||
if( errno == EINTR )
|
if( errno == EINTR )
|
||||||
continue;
|
continue;
|
||||||
if( errno = EAGAIN ) {
|
if( errno == EAGAIN ) {
|
||||||
struct timeval tv;
|
struct timeval tv;
|
||||||
tv.tv_sec = 0;
|
tv.tv_sec = 0;
|
||||||
tv.tv_usec = 50000;
|
tv.tv_usec = 50000;
|
||||||
|
@ -112,6 +112,7 @@ esac
|
|||||||
|
|
||||||
|
|
||||||
GNUPG_CHECK_PIC
|
GNUPG_CHECK_PIC
|
||||||
|
GNUPG_CHECK_RDYNAMIC
|
||||||
if test "$NO_PIC" = yes; then
|
if test "$NO_PIC" = yes; then
|
||||||
try_dynload=no
|
try_dynload=no
|
||||||
fi
|
fi
|
||||||
@ -159,14 +160,14 @@ if test "$try_dynload" = yes ; then
|
|||||||
if test "$ac_cv_lib_dl_dlopen" = "yes"; then
|
if test "$ac_cv_lib_dl_dlopen" = "yes"; then
|
||||||
AC_DEFINE(USE_DYNAMIC_LINKING)
|
AC_DEFINE(USE_DYNAMIC_LINKING)
|
||||||
AC_DEFINE(HAVE_DL_DLOPEN)
|
AC_DEFINE(HAVE_DL_DLOPEN)
|
||||||
DYNLINK_LDFLAGS="-Wl,-export-dynamic"
|
DYNLINK_LDFLAGS="$CFLAGS_RDYNAMIC"
|
||||||
use_gnupg_extensions=yes
|
use_gnupg_extensions=yes
|
||||||
else
|
else
|
||||||
AC_CHECK_LIB(c,dlopen)
|
AC_CHECK_LIB(c,dlopen)
|
||||||
if test "$ac_cv_lib_c_dlopen" = "yes"; then
|
if test "$ac_cv_lib_c_dlopen" = "yes"; then
|
||||||
AC_DEFINE(USE_DYNAMIC_LINKING)
|
AC_DEFINE(USE_DYNAMIC_LINKING)
|
||||||
AC_DEFINE(HAVE_DL_DLOPEN)
|
AC_DEFINE(HAVE_DL_DLOPEN)
|
||||||
DYNLINK_LDFLAGS="-Wl,-export-dynamic"
|
DYNLINK_LDFLAGS="$CFLAGS_RDYNAMIC"
|
||||||
dnl fixme: this is probably false but it should
|
dnl fixme: this is probably false but it should
|
||||||
dnl work for freebsd
|
dnl work for freebsd
|
||||||
AC_DEFINE(DLSYM_NEEDS_UNDERSCORE)
|
AC_DEFINE(DLSYM_NEEDS_UNDERSCORE)
|
||||||
@ -176,7 +177,7 @@ if test "$try_dynload" = yes ; then
|
|||||||
if test "$ac_cv_lib_dld_dld_link" = "yes"; then
|
if test "$ac_cv_lib_dld_dld_link" = "yes"; then
|
||||||
AC_DEFINE(USE_DYNAMIC_LINKING)
|
AC_DEFINE(USE_DYNAMIC_LINKING)
|
||||||
AC_DEFINE(HAVE_DLD_DLD_LINK)
|
AC_DEFINE(HAVE_DLD_DLD_LINK)
|
||||||
DYNLINK_LDFLAGS="-Wl,-export-dynamic"
|
DYNLINK_LDFLAGS="$CFLAGS_RDYNAMIC"
|
||||||
use_gnupg_extensions=yes
|
use_gnupg_extensions=yes
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
@ -188,7 +188,7 @@ B<--export-all> [I<names>]
|
|||||||
Same as B<--export> but does also export keys which
|
Same as B<--export> but does also export keys which
|
||||||
are not compatible to OpenPGP.
|
are not compatible to OpenPGP.
|
||||||
|
|
||||||
B<--export-secret-keys> [I<names>
|
B<--export-secret-keys> [I<names>]
|
||||||
Same as B<--export>, but does export the secret keys.
|
Same as B<--export>, but does export the secret keys.
|
||||||
This is normally not very useful.
|
This is normally not very useful.
|
||||||
|
|
||||||
|
@ -16,6 +16,10 @@ Provides: gpg openpgp
|
|||||||
BuildRoot: /tmp/rpmbuild_%{name}
|
BuildRoot: /tmp/rpmbuild_%{name}
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Jan 02 1999 Fabio Coatti <cova@felix.unife.it>
|
||||||
|
- Added pl language file.
|
||||||
|
- Included g10/pubring.asc in documentation files.
|
||||||
|
|
||||||
* Sat Dec 19 1998 Fabio Coatti <cova@felix.unife.it>
|
* Sat Dec 19 1998 Fabio Coatti <cova@felix.unife.it>
|
||||||
- Modified the spec file provided by Caskey L. Dickson <caskey-at-technocage.com>
|
- Modified the spec file provided by Caskey L. Dickson <caskey-at-technocage.com>
|
||||||
- Now it can be built also by non-root. Installation has to be done as
|
- Now it can be built also by non-root. Installation has to be done as
|
||||||
@ -63,18 +67,21 @@ ln -s gpg.1 gpgm.1
|
|||||||
%doc %attr (-,root,root) doc/FAQ
|
%doc %attr (-,root,root) doc/FAQ
|
||||||
%doc %attr (-,root,root) doc/HACKING
|
%doc %attr (-,root,root) doc/HACKING
|
||||||
%doc %attr (-,root,root) doc/OpenPGP
|
%doc %attr (-,root,root) doc/OpenPGP
|
||||||
|
%doc %attr (-,root,root) g10/pubring.asc
|
||||||
|
|
||||||
%attr (-,root,root) /usr/man/man1/gpg.1
|
%attr (-,root,root) /usr/man/man1/gpg.1
|
||||||
%attr (-,root,root) /usr/man/man1/gpgm.1
|
%attr (-,root,root) /usr/man/man1/gpgm.1
|
||||||
%attr (4755,root,root) /usr/bin/gpg
|
%attr (4755,root,root) /usr/bin/gpg
|
||||||
%attr (755,root,root) /usr/bin/gpgm
|
%attr (755,root,root) /usr/bin/gpgm
|
||||||
#%attr (-,root,root) /usr/share/locale/en/LC_MESSAGES/%{name}.mo
|
|
||||||
%attr (-,root,root) /usr/share/locale/de/LC_MESSAGES/%{name}.mo
|
%attr (-,root,root) /usr/share/locale/de/LC_MESSAGES/%{name}.mo
|
||||||
%attr (-,root,root) /usr/share/locale/it/LC_MESSAGES/%{name}.mo
|
%attr (-,root,root) /usr/share/locale/it/LC_MESSAGES/%{name}.mo
|
||||||
%attr (-,root,root) /usr/share/locale/fr/LC_MESSAGES/%{name}.mo
|
%attr (-,root,root) /usr/share/locale/fr/LC_MESSAGES/%{name}.mo
|
||||||
%attr (-,root,root) /usr/share/locale/ru/LC_MESSAGES/%{name}.mo
|
%attr (-,root,root) /usr/share/locale/ru/LC_MESSAGES/%{name}.mo
|
||||||
%attr (-,root,root) /usr/share/locale/es_ES/LC_MESSAGES/%{name}.mo
|
%attr (-,root,root) /usr/share/locale/es_ES/LC_MESSAGES/%{name}.mo
|
||||||
%attr (-,root,root) /usr/share/locale/pt_BR/LC_MESSAGES/%{name}.mo
|
%attr (-,root,root) /usr/share/locale/pt_BR/LC_MESSAGES/%{name}.mo
|
||||||
|
%attr (-,root,root) /usr/share/locale/pl/LC_MESSAGES/%{name}.mo
|
||||||
|
|
||||||
|
|
||||||
%attr (-,root,root) /usr/lib/%{name}
|
%attr (-,root,root) /usr/lib/%{name}
|
||||||
%attr (-,root,root) /usr/share/%{name}
|
%attr (-,root,root) /usr/share/%{name}
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
Sun Jan 3 15:28:44 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
|
||||||
|
|
||||||
|
* dotlock.c (make_dotlock): print another informal message.
|
||||||
|
|
||||||
|
(make_dotlock): Removed the cpp checks.
|
||||||
|
|
||||||
|
|
||||||
Tue Dec 29 14:41:47 CET 1998 Werner Koch <wk@isil.d.shuttle.de>
|
Tue Dec 29 14:41:47 CET 1998 Werner Koch <wk@isil.d.shuttle.de>
|
||||||
|
|
||||||
* secmem.c: Moved unistd.h out of the #ifdef
|
* secmem.c: Moved unistd.h out of the #ifdef
|
||||||
|
@ -59,21 +59,20 @@ make_dotlock( const char *file_to_lock, long timeout )
|
|||||||
char *tname = NULL;
|
char *tname = NULL;
|
||||||
int have_tfile = 0;
|
int have_tfile = 0;
|
||||||
struct utsname uts;
|
struct utsname uts;
|
||||||
|
const char *nodename;
|
||||||
const char *dirpart;
|
const char *dirpart;
|
||||||
int dirpartlen;
|
int dirpartlen;
|
||||||
|
const char *maybe_dead="";
|
||||||
|
int backoff=0;
|
||||||
|
|
||||||
sprintf( pidstr, "%10d\n", getpid() );
|
sprintf( pidstr, "%10d\n", getpid() );
|
||||||
/* fixme: add the hostname to the second line (FQDN or IP addr?) */
|
/* fixme: add the hostname to the second line (FQDN or IP addr?) */
|
||||||
|
|
||||||
/* create a temporary file */
|
/* create a temporary file */
|
||||||
#if defined(SYS_NMLN) && SYS_NMLN < 8
|
|
||||||
#error Aiiih
|
|
||||||
#elif !defined(SYS_NMLN) && MAXHOSTNAMELEN < 8
|
|
||||||
/* (SunOS uses a structure of size MAXHOSTNAMELEN) */
|
|
||||||
#error Aiiih
|
|
||||||
#endif
|
|
||||||
if( uname( &uts ) )
|
if( uname( &uts ) )
|
||||||
strcpy( uts.nodename, "unknown" );
|
nodename = "unknown";
|
||||||
|
else
|
||||||
|
nodename = uts.nodename;
|
||||||
|
|
||||||
if( !(dirpart = strrchr( file_to_lock, '/' )) ) {
|
if( !(dirpart = strrchr( file_to_lock, '/' )) ) {
|
||||||
dirpart = ".";
|
dirpart = ".";
|
||||||
@ -85,13 +84,13 @@ make_dotlock( const char *file_to_lock, long timeout )
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef _THREAD_SAFE
|
#ifdef _THREAD_SAFE
|
||||||
tname = m_alloc( dirpartlen + 6 + strlen(uts.nodename) + 11+ 20 );
|
tname = m_alloc( dirpartlen + 6 + strlen(nodename) + 11+ 20 );
|
||||||
sprintf( tname, "%.*s/.#lk.%s.%d.%p",
|
sprintf( tname, "%.*s/.#lk.%s.%d.%p",
|
||||||
dirpartlen, dirpart, uts.nodename, getpid(), &pid );
|
dirpartlen, dirpart, nodename, getpid(), &pid );
|
||||||
#else
|
#else
|
||||||
tname = m_alloc( dirpartlen + 6 + strlen(uts.nodename) + 11 );
|
tname = m_alloc( dirpartlen + 6 + strlen(nodename) + 11 );
|
||||||
sprintf( tname, "%.*s/.#lk.%s.%d",
|
sprintf( tname, "%.*s/.#lk.%s.%d",
|
||||||
dirpartlen, dirpart, uts.nodename, getpid() );
|
dirpartlen, dirpart, nodename, getpid() );
|
||||||
#endif
|
#endif
|
||||||
do {
|
do {
|
||||||
errno = 0;
|
errno = 0;
|
||||||
@ -135,21 +134,24 @@ make_dotlock( const char *file_to_lock, long timeout )
|
|||||||
handle = lockname;
|
handle = lockname;
|
||||||
lockname = NULL;
|
lockname = NULL;
|
||||||
}
|
}
|
||||||
#if 0 /* we should not do this without checking the permissions */
|
|
||||||
/* and the hostname */
|
|
||||||
else if( kill(pid, 0) && errno == ESRCH ) {
|
else if( kill(pid, 0) && errno == ESRCH ) {
|
||||||
|
maybe_dead = " - probably dead";
|
||||||
|
#if 0 /* we should not do this without checking the permissions */
|
||||||
|
/* and the hostname */
|
||||||
log_info( "removing stale lockfile (created by %d)", pid );
|
log_info( "removing stale lockfile (created by %d)", pid );
|
||||||
remove( lockname );
|
remove( lockname );
|
||||||
goto retry;
|
goto retry;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
if( timeout == -1 ) {
|
if( timeout == -1 ) {
|
||||||
struct timeval tv;
|
struct timeval tv;
|
||||||
log_info( "waiting for lock (hold by %d) ...\n", pid );
|
log_info( "waiting for lock (hold by %d%s) ...\n", pid, maybe_dead );
|
||||||
/* can't use sleep, cause signals may be blocked */
|
/* can't use sleep, cause signals may be blocked */
|
||||||
tv.tv_sec = 1;
|
tv.tv_sec = 1 + backoff;
|
||||||
tv.tv_usec = 0;
|
tv.tv_usec = 0;
|
||||||
select(0, NULL, NULL, NULL, &tv);
|
select(0, NULL, NULL, NULL, &tv);
|
||||||
|
if( backoff < 10 )
|
||||||
|
backoff++ ;
|
||||||
goto retry;
|
goto retry;
|
||||||
}
|
}
|
||||||
/* fixme: implement timeouts */
|
/* fixme: implement timeouts */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user