aboutsummaryrefslogtreecommitdiffstats
path: root/include/cipher.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2009-08-20 08:41:15 +0000
committerWerner Koch <[email protected]>2009-08-20 08:41:15 +0000
commit7cde92403c2134a20818a9c499b60450a3addfcb (patch)
treef7e9acb88cd05bfd6e142bfde026f0405876e290 /include/cipher.h
parentFixed bug#920 (diff)
downloadgnupg-7cde92403c2134a20818a9c499b60450a3addfcb.tar.gz
gnupg-7cde92403c2134a20818a9c499b60450a3addfcb.zip
2009-08-20 Daiki Ueno <[email protected]>
* mainproc.c (proc_encrypted): Clear passphrase cached with S2K cache ID if decryption failed. * passphrase.c (passphrase_to_dek_ext): Set dek->s2k_cacheid. * gpgv.c (passphrase_clear_cache): New stub.
Diffstat (limited to 'include/cipher.h')
-rw-r--r--include/cipher.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/cipher.h b/include/cipher.h
index 0d75fa6cd..8e198283d 100644
--- a/include/cipher.h
+++ b/include/cipher.h
@@ -94,6 +94,7 @@ typedef struct
int use_mdc;
int symmetric;
byte key[32]; /* This is the largest used keylen (256 bit). */
+ char s2k_cacheid[1+16+1];
} DEK;