aboutsummaryrefslogtreecommitdiffstats
path: root/context.h
diff options
context:
space:
mode:
authorubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910>2010-08-27 14:22:39 +0000
committerubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910>2010-08-27 14:22:39 +0000
commit1491bf832e06d0c1c3f6c9ced236c090263002d3 (patch)
tree3b3cecda5a662c4bc214aa76200ede16e1455c22 /context.h
parentfix bug that crashes windows-build when encrypting twice (diff)
downloadgpg4usb-1491bf832e06d0c1c3f6c9ced236c090263002d3.tar.gz
gpg4usb-1491bf832e06d0c1c3f6c9ced236c090263002d3.zip
implement remember password functionality
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@367 34ebc366-c3a9-4b3c-9f84-69acf7962910
Diffstat (limited to 'context.h')
-rw-r--r--context.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/context.h b/context.h
index 234ec5b..a023ce0 100644
--- a/context.h
+++ b/context.h
@@ -67,7 +67,7 @@ public:
bool encrypt(QStringList *uidList, const QByteArray &inBuffer,
QByteArray *outBuffer);
bool decrypt(const QByteArray &inBuffer, QByteArray *outBuffer);
- void clearCache();
+ void clearPasswordCache();
void exportSecretKey(QString uid, QByteArray *outBuffer);
gpgme_key_t getKeyDetails(QString uid);
@@ -80,6 +80,7 @@ private:
gpgme_error_t err;
gpgme_error_t readToBuffer(gpgme_data_t in, QByteArray *outBuffer);
QByteArray mPasswordCache;
+ QSettings settings;
bool debug;
void checkErr(gpgme_error_t err) const;
void checkErr(gpgme_error_t err, QString comment) const;