aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--context.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/context.cpp b/context.cpp
index af3df86..1c48a1b 100644
--- a/context.cpp
+++ b/context.cpp
@@ -66,8 +66,8 @@ Context::Context()
#endif
QString gpgKeys = appPath + "/keydb";
err = gpgme_ctx_set_engine_info(mCtx, GPGME_PROTOCOL_OpenPGP,
- gpgBin.toAscii().constData(),
- gpgKeys.toAscii().constData());
+ gpgBin.toUtf8().constData(),
+ gpgKeys.toUtf8().constData());
checkErr(err);
@@ -151,9 +151,11 @@ bool Context::exportKeys(QList<QString> *uidList, QByteArray *outBuffer)
gpgme_key_t Context::getKeyDetails(QString uid)
{
- gpgme_error_t err;
+// gpgme_error_t err;
gpgme_key_t key;
+ qDebug() << "before";
+
/*gpgme_op_keylist_start (mCctx, uid.toAscii().constData(), 0);
gpgme_op_keylist_next (mCtx, &key);
qDebug() << key->subkeys->keyid);
@@ -164,7 +166,7 @@ gpgme_key_t Context::getKeyDetails(QString uid)
gpgme_key_release (key);*/
gpgme_get_key (mCtx, uid.toAscii().constData(), &key, 1);
-
+ qDebug() << "after";
return key;
}