aboutsummaryrefslogtreecommitdiffstats
path: root/g10/build-packet.c
diff options
context:
space:
mode:
authorDavid Shaw <[email protected]>2002-10-31 15:40:42 +0000
committerDavid Shaw <[email protected]>2002-10-31 15:40:42 +0000
commit20c99d180a3f9c5d0134ff8c5fc62c434ae50c02 (patch)
treea954f28f4fdbdbb399d14e67e19fe5230a606322 /g10/build-packet.c
parent* util.h: Add wipememory() macro. (diff)
downloadgnupg-20c99d180a3f9c5d0134ff8c5fc62c434ae50c02.tar.gz
gnupg-20c99d180a3f9c5d0134ff8c5fc62c434ae50c02.zip
* build-packet.c (do_plaintext), encode.c (encode_sesskey, encode_simple,
encode_crypt), sign.c (write_plaintext_packet): Use wipememory() instead of memset() to wipe sensitive memory as the memset() might be optimized away.
Diffstat (limited to '')
-rw-r--r--g10/build-packet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/build-packet.c b/g10/build-packet.c
index da1cbbe39..936cc90d6 100644
--- a/g10/build-packet.c
+++ b/g10/build-packet.c
@@ -555,7 +555,7 @@ do_plaintext( IOBUF out, int ctb, PKT_plaintext *pt )
}
n += nbytes;
}
- memset(buf,0,1000); /* at least burn the buffer */
+ wipememory(buf,1000); /* burn the buffer */
if( !pt->len )
iobuf_set_block_mode(out, 0 ); /* write end marker */
else if( n != pt->len )