mirror of
git://git.gnupg.org/gnupg.git
synced 2025-04-13 22:21:09 +02:00
See ChangeLog: Wed Dec 9 13:41:06 CET 1998 Werner Koch
This commit is contained in:
parent
918c684756
commit
a45f824150
@ -1,5 +1,10 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
|
||||||
|
# Fixme: we should not only do a --verify but also the output.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
. $srcdir/defs.inc || exit 3
|
. $srcdir/defs.inc || exit 3
|
||||||
|
|
||||||
# I can't compare the out because plain-3 has no LF as last charcater
|
# I can't compare the out because plain-3 has no LF as last charcater
|
||||||
@ -35,4 +40,15 @@ EOF
|
|||||||
echo "$usrpass1" | $srcdir/run-gpg --passphrase-fd 0 --clearsign -o x --yes y
|
echo "$usrpass1" | $srcdir/run-gpg --passphrase-fd 0 --clearsign -o x --yes y
|
||||||
$srcdir/run-gpg --verify x
|
$srcdir/run-gpg --verify x
|
||||||
|
|
||||||
|
# and one with one empty line at the end
|
||||||
|
cat >y <<EOF
|
||||||
|
line 1
|
||||||
|
line 2
|
||||||
|
line 3
|
||||||
|
there is a blank line after this
|
||||||
|
|
||||||
|
EOF
|
||||||
|
echo "$usrpass1" | $srcdir/run-gpg --passphrase-fd 0 --clearsign -o x --yes y
|
||||||
|
$srcdir/run-gpg --verify x
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,3 +1,12 @@
|
|||||||
|
Wed Dec 9 13:41:06 CET 1998 Werner Koch <wk@isil.d.shuttle.de>
|
||||||
|
|
||||||
|
* misc.c (trap_unaligned) [ALPHA]: Only if UAC_SIGBUS is defined.
|
||||||
|
|
||||||
|
* sign.c (write_dash_escaped): Add the forgotten patch by Brian Moore.
|
||||||
|
|
||||||
|
* compress.c (do_uncompress): Fixed the inflating bug.
|
||||||
|
|
||||||
|
|
||||||
Tue Dec 8 13:15:16 CET 1998 Werner Koch <wk@isil.d.shuttle.de>
|
Tue Dec 8 13:15:16 CET 1998 Werner Koch <wk@isil.d.shuttle.de>
|
||||||
|
|
||||||
* trustdb.c (upd_uid_record): Now uses the newest self-signature
|
* trustdb.c (upd_uid_record): Now uses the newest self-signature
|
||||||
|
@ -76,8 +76,8 @@ do_compress( compress_filter_context_t *zfx, z_stream *zs, int flush, IOBUF a )
|
|||||||
zs->next_out = zfx->outbuf;
|
zs->next_out = zfx->outbuf;
|
||||||
zs->avail_out = zfx->outbufsize;
|
zs->avail_out = zfx->outbufsize;
|
||||||
if( DBG_FILTER )
|
if( DBG_FILTER )
|
||||||
log_debug("call deflate: avail_in=%u, avail_out=%u\n",
|
log_debug("enter deflate: avail_in=%u, avail_out=%u, flush=%d\n",
|
||||||
(unsigned)zs->avail_in, (unsigned)zs->avail_out);
|
(unsigned)zs->avail_in, (unsigned)zs->avail_out, flush );
|
||||||
zrc = deflate( zs, flush );
|
zrc = deflate( zs, flush );
|
||||||
if( zrc == Z_STREAM_END && flush == Z_FINISH )
|
if( zrc == Z_STREAM_END && flush == Z_FINISH )
|
||||||
;
|
;
|
||||||
@ -89,8 +89,10 @@ do_compress( compress_filter_context_t *zfx, z_stream *zs, int flush, IOBUF a )
|
|||||||
}
|
}
|
||||||
n = zfx->outbufsize - zs->avail_out;
|
n = zfx->outbufsize - zs->avail_out;
|
||||||
if( DBG_FILTER )
|
if( DBG_FILTER )
|
||||||
log_debug("deflate returned: avail_in=%u, avail_out=%u, n=%u\n",
|
log_debug("leave deflate: "
|
||||||
(unsigned)zs->avail_in, (unsigned)zs->avail_out, (unsigned)n );
|
"avail_in=%u, avail_out=%u, n=%u, zrc=%d\n",
|
||||||
|
(unsigned)zs->avail_in, (unsigned)zs->avail_out,
|
||||||
|
(unsigned)n, zrc );
|
||||||
|
|
||||||
if( iobuf_write( a, zfx->outbuf, n ) ) {
|
if( iobuf_write( a, zfx->outbuf, n ) ) {
|
||||||
log_debug("deflate: iobuf_write failed\n");
|
log_debug("deflate: iobuf_write failed\n");
|
||||||
@ -132,12 +134,14 @@ do_uncompress( compress_filter_context_t *zfx, z_stream *zs,
|
|||||||
size_t n;
|
size_t n;
|
||||||
byte *p;
|
byte *p;
|
||||||
int c;
|
int c;
|
||||||
|
int refill = !zs->avail_in;
|
||||||
|
|
||||||
if( DBG_FILTER )
|
if( DBG_FILTER )
|
||||||
log_debug("do_uncompress: avail_in=%u, avail_out=%u\n",
|
log_debug("begin inflate: avail_in=%u, avail_out=%u, inbuf=%u\n",
|
||||||
(unsigned)zs->avail_in, (unsigned)zs->avail_out);
|
(unsigned)zs->avail_in, (unsigned)zs->avail_out,
|
||||||
|
(unsigned)zfx->inbufsize );
|
||||||
do {
|
do {
|
||||||
if( zs->avail_in < zfx->inbufsize ) {
|
if( zs->avail_in < zfx->inbufsize && refill ) {
|
||||||
n = zs->avail_in;
|
n = zs->avail_in;
|
||||||
if( !n )
|
if( !n )
|
||||||
zs->next_in = zfx->inbuf;
|
zs->next_in = zfx->inbuf;
|
||||||
@ -148,8 +152,9 @@ do_uncompress( compress_filter_context_t *zfx, z_stream *zs,
|
|||||||
}
|
}
|
||||||
zs->avail_in = n;
|
zs->avail_in = n;
|
||||||
}
|
}
|
||||||
|
refill = 1;
|
||||||
if( DBG_FILTER )
|
if( DBG_FILTER )
|
||||||
log_debug("call inflate: avail_in=%u, avail_out=%u\n",
|
log_debug("enter inflate: avail_in=%u, avail_out=%u\n",
|
||||||
(unsigned)zs->avail_in, (unsigned)zs->avail_out);
|
(unsigned)zs->avail_in, (unsigned)zs->avail_out);
|
||||||
#ifdef Z_SYNC_FLUSH
|
#ifdef Z_SYNC_FLUSH
|
||||||
zrc = inflate( zs, Z_SYNC_FLUSH );
|
zrc = inflate( zs, Z_SYNC_FLUSH );
|
||||||
@ -157,7 +162,7 @@ do_uncompress( compress_filter_context_t *zfx, z_stream *zs,
|
|||||||
zrc = inflate( zs, Z_PARTIAL_FLUSH );
|
zrc = inflate( zs, Z_PARTIAL_FLUSH );
|
||||||
#endif
|
#endif
|
||||||
if( DBG_FILTER )
|
if( DBG_FILTER )
|
||||||
log_debug("inflate returned: avail_in=%u, avail_out=%u, zrc=%d\n",
|
log_debug("leave inflate: avail_in=%u, avail_out=%u, zrc=%d\n",
|
||||||
(unsigned)zs->avail_in, (unsigned)zs->avail_out, zrc);
|
(unsigned)zs->avail_in, (unsigned)zs->avail_out, zrc);
|
||||||
if( zrc == Z_STREAM_END )
|
if( zrc == Z_STREAM_END )
|
||||||
rc = -1; /* eof */
|
rc = -1; /* eof */
|
||||||
|
@ -50,7 +50,7 @@ pull_in_libs(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#if defined(__linux__) && defined(__alpha__)
|
#if defined(__linux__) && defined(__alpha__) && defined(UAC_SIGBUS)
|
||||||
#warning using trap_unaligned
|
#warning using trap_unaligned
|
||||||
static int
|
static int
|
||||||
setsysinfo(unsigned long op, void *buffer, unsigned long size,
|
setsysinfo(unsigned long op, void *buffer, unsigned long size,
|
||||||
|
@ -512,6 +512,12 @@ write_dash_escaped( IOBUF inp, IOBUF out, MD_HANDLE md )
|
|||||||
}
|
}
|
||||||
if( state == 1 )
|
if( state == 1 )
|
||||||
md_putc(md, '\r');
|
md_putc(md, '\r');
|
||||||
|
else if( state == 2 ) { /* file ended with a new line */
|
||||||
|
md_putc(md, '\r');
|
||||||
|
md_putc(md, '\n');
|
||||||
|
iobuf_put( out, '\n');
|
||||||
|
}
|
||||||
|
|
||||||
if( !lastlf )
|
if( !lastlf )
|
||||||
iobuf_put( out, '\n' );
|
iobuf_put( out, '\n' );
|
||||||
|
|
||||||
|
@ -57,7 +57,7 @@ sed -e '/^diff.*VERSION/,/^+[0-9][0-9]*/ d' $tmp_name >> $diff_name
|
|||||||
rm $tmp_name
|
rm $tmp_name
|
||||||
|
|
||||||
echo "Signing and compressing patch file"
|
echo "Signing and compressing patch file"
|
||||||
../gnupg/g10/gpg --clearsign --not-dash-escaped -u "(gnupg sig)" \
|
gpg --clearsign --not-dash-escaped -u "(gnupg sig)" \
|
||||||
< $diff_name | gzip --best > $diff_name.gz
|
< $diff_name | gzip --best > $diff_name.gz
|
||||||
|
|
||||||
echo "Checking patch file"
|
echo "Checking patch file"
|
||||||
@ -71,7 +71,7 @@ if ! diff -urN "gnupg-$prev_ver/" "gnupg-$curr_ver/" >/dev/null ; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! zcat $diff_name.gz | ../gnupg/g10/gpg --batch --verify ; then
|
if ! zcat $diff_name.gz | gpg --batch --verify ; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -625,7 +625,7 @@ iobuf_openrw( const char *fname )
|
|||||||
|
|
||||||
/****************
|
/****************
|
||||||
* You can overwrite the normal iobuf behaviour by using this function.
|
* You can overwrite the normal iobuf behaviour by using this function.
|
||||||
* If used, the crwated iobuf is a simple wrapper around stdio.
|
* If used the iobuf is a simple wrapper around stdio.
|
||||||
* NULL if an error occures and sets errno
|
* NULL if an error occures and sets errno
|
||||||
*/
|
*/
|
||||||
IOBUF
|
IOBUF
|
||||||
|
Loading…
x
Reference in New Issue
Block a user