aboutsummaryrefslogtreecommitdiffstats
path: root/gpgcontext.cpp
diff options
context:
space:
mode:
authorubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910>2011-12-28 16:08:06 +0000
committerubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910>2011-12-28 16:08:06 +0000
commit971699f978b8314edfa489d104080247fac3d0bb (patch)
treef9c40d8ed42d01063d6340e79bfbab5a634fdbb0 /gpgcontext.cpp
parentshow useful error message when no matching private key for decryption found (diff)
downloadgpg4usb-971699f978b8314edfa489d104080247fac3d0bb.tar.gz
gpg4usb-971699f978b8314edfa489d104080247fac3d0bb.zip
return empty key if nothing found
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@710 34ebc366-c3a9-4b3c-9f84-69acf7962910
Diffstat (limited to 'gpgcontext.cpp')
-rw-r--r--gpgcontext.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/gpgcontext.cpp b/gpgcontext.cpp
index 76ba5b3..e28ce41 100644
--- a/gpgcontext.cpp
+++ b/gpgcontext.cpp
@@ -752,6 +752,8 @@ GpgKey GpgContext::getKeyByFpr(QString fpr) {
return key;
}
}
+
+ return GpgKey();
}
@@ -766,6 +768,8 @@ GpgKey GpgContext::getKeyById(QString id) {
return key;
}
}
+
+ return GpgKey();
}
}