aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>1998-04-30 16:56:17 +0000
committerWerner Koch <[email protected]>1998-04-30 16:56:17 +0000
commit45f1328259f082d90551c491f3817e772ff1d197 (patch)
tree368606ba6ea65849d934084f8531bc58deeb2d7f
parentx (diff)
downloadgnupg-45f1328259f082d90551c491f3817e772ff1d197.tar.gz
gnupg-45f1328259f082d90551c491f3817e772ff1d197.zip
xxx
Diffstat (limited to '')
-rw-r--r--g10/ChangeLog4
-rw-r--r--g10/sign.c12
2 files changed, 14 insertions, 2 deletions
diff --git a/g10/ChangeLog b/g10/ChangeLog
index a5a012c80..2402a59c1 100644
--- a/g10/ChangeLog
+++ b/g10/ChangeLog
@@ -1,3 +1,7 @@
+Thu Apr 30 16:33:34 1998 Werner Koch ([email protected])
+
+ * sign.c (clearsign_file): Fixed "Hash: " armor line.
+
Tue Apr 28 14:27:42 1998 Werner Koch ([email protected])
* parse-packet.c (parse_subpkt): Some new types.
diff --git a/g10/sign.c b/g10/sign.c
index d804f576b..5c68bbb6d 100644
--- a/g10/sign.c
+++ b/g10/sign.c
@@ -400,8 +400,16 @@ clearsign_file( const char *fname, STRLIST locusr, const char *outfile )
goto leave;
}
- iobuf_writestr(out, "-----BEGIN PGP SIGNED MESSAGE-----\n"
- "Hash: RIPEMD160\n\n" );
+ iobuf_writestr(out, "-----BEGIN PGP SIGNED MESSAGE-----\n" );
+ if( opt.def_digest_algo == DIGEST_ALGO_MD5 )
+ iobuf_writestr(out, "\n" );
+ else {
+ const char *s = digest_algo_to_string(opt.def_digest_algo);
+ assert(s);
+ iobuf_writestr(out, s );
+ iobuf_writestr(out, "\n\n" );
+ }
+
textmd = md_open(opt.def_digest_algo, 0);
iobuf_push_filter( inp, text_filter, &tfx );