diff --git a/src/gpg/GpgContext.cpp b/src/gpg/GpgContext.cpp index c885ac94..e3f10056 100644 --- a/src/gpg/GpgContext.cpp +++ b/src/gpg/GpgContext.cpp @@ -209,13 +209,12 @@ gpgme_error_t GpgContext::test_passphrase_cb(void *opaque, const char *uid_hint, } while (res > 0 && off != pass_len); return off == pass_len ? 0 : gpgme_error_from_errno(errno); - return 0; } gpgme_error_t GpgContext::test_status_cb(void *hook, const char *keyword, const char *args) { LOG(INFO) << "keyword" << keyword; - return 0; + return GPG_ERR_NO_ERROR; } } // namespace GpgFrontend \ No newline at end of file diff --git a/src/gpg/GpgGenKeyInfo.cpp b/src/gpg/GpgGenKeyInfo.cpp index 124c66e8..f67aaa1f 100644 --- a/src/gpg/GpgGenKeyInfo.cpp +++ b/src/gpg/GpgGenKeyInfo.cpp @@ -168,7 +168,6 @@ void GpgFrontend::GenKeyInfo::setKeySize(int m_key_size) { void GpgFrontend::GenKeyInfo::setExpired( const boost::posix_time::ptime &m_expired) { using namespace boost::gregorian; - auto current = boost::posix_time::second_clock::local_time(); if (!isNonExpired()) { GenKeyInfo::expired_ = m_expired; }