aboutsummaryrefslogtreecommitdiffstats
path: root/g10/encode.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>1998-10-16 16:00:17 +0000
committerWerner Koch <[email protected]>1998-10-16 16:00:17 +0000
commite81e0970f7ab6c815f3396168d47fc6ab57fdf30 (patch)
tree175aa8c360560b30cf500a91eb72b34e16bdedc4 /g10/encode.c
parentbackup (diff)
downloadgnupg-e81e0970f7ab6c815f3396168d47fc6ab57fdf30.tar.gz
gnupg-e81e0970f7ab6c815f3396168d47fc6ab57fdf30.zip
last local commit
Diffstat (limited to 'g10/encode.c')
-rw-r--r--g10/encode.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/g10/encode.c b/g10/encode.c
index bc4742607..0d8a84c94 100644
--- a/g10/encode.c
+++ b/g10/encode.c
@@ -118,12 +118,14 @@ encode_simple( const char *filename, int mode )
if( opt.armor )
iobuf_push_filter( out, armor_filter, &afx );
+ #ifdef ENABLE_COMMENT_PACKETS
else {
write_comment( out, "#created by GNUPG v" VERSION " ("
PRINTABLE_OS_NAME ")");
if( opt.comment_string )
write_comment( out, opt.comment_string );
}
+ #endif
if( s2k && !opt.rfc1991 ) {
PKT_symkey_enc *enc = m_alloc_clear( sizeof *enc );
enc->version = 4;
@@ -224,13 +226,14 @@ encode_crypt( const char *filename, STRLIST remusr )
if( opt.armor )
iobuf_push_filter( out, armor_filter, &afx );
+ #ifdef ENABLE_COMMENT_PACKETS
else {
write_comment( out, "#created by GNUPG v" VERSION " ("
PRINTABLE_OS_NAME ")");
if( opt.comment_string )
write_comment( out, opt.comment_string );
}
-
+ #endif
/* create a session key */
cfx.dek = m_alloc_secure( sizeof *cfx.dek );
if( !opt.def_cipher_algo ) { /* try to get it from the prefs */