aboutsummaryrefslogtreecommitdiffstats
path: root/context.cpp
diff options
context:
space:
mode:
authorubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910>2008-08-16 15:04:44 +0000
committerubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910>2008-08-16 15:04:44 +0000
commit6d3f57c0ffe2c8956c64dc7fed52733cfd1ecced (patch)
tree5b27db8335b2a314229b6dac16f041288f4cd509 /context.cpp
parentreorganized svn to support tags and branches (diff)
downloadgpg4usb-6d3f57c0ffe2c8956c64dc7fed52733cfd1ecced.tar.gz
gpg4usb-6d3f57c0ffe2c8956c64dc7fed52733cfd1ecced.zip
start of binary-file handling (decrypt/encrypt), kind of works, but still a lot has to be done
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@145 34ebc366-c3a9-4b3c-9f84-69acf7962910
Diffstat (limited to 'context.cpp')
-rw-r--r--context.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/context.cpp b/context.cpp
index 9db8aad..481ac62 100644
--- a/context.cpp
+++ b/context.cpp
@@ -76,7 +76,7 @@ Context::Context()
/** Setting the output type must be done at the beginning */
- /** think this means ascii-amor --> ? */
+ /** think this means ascii-armor --> ? */
gpgme_set_armor(m_ctx, 1);
/** passphrase-callback */
gpgme_set_passphrase_cb(m_ctx, passphraseCb, this);
@@ -178,9 +178,8 @@ void Context::deleteKeys(QList<QString> *uidList)
}
}
-/** Encrypt String, return String
- * should also use QByteArray, so be removed
- * in should be std::vector<key> & recipients (703 in context.cpp)
+/** Encrypt inBuffer for reciepients-uids, write
+ * result to outBuffer
*/
bool Context::encrypt(QList<QString> *uidList, const QByteArray &inBuffer, QByteArray *outBuffer)
{