aboutsummaryrefslogtreecommitdiffstats
path: root/src/gpg/function/GpgKeyManager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpg/function/GpgKeyManager.cpp')
-rw-r--r--src/gpg/function/GpgKeyManager.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gpg/function/GpgKeyManager.cpp b/src/gpg/function/GpgKeyManager.cpp
index 9e24b3d6..998c27a7 100644
--- a/src/gpg/function/GpgKeyManager.cpp
+++ b/src/gpg/function/GpgKeyManager.cpp
@@ -33,7 +33,7 @@
bool GpgFrontend::GpgKeyManager::signKey(
const GpgFrontend::GpgKey& target, GpgFrontend::KeyArgsList& keys,
const std::string& uid,
- const std::unique_ptr<boost::gregorian::date>& expires) {
+ const std::unique_ptr<boost::posix_time::ptime>& expires) {
using namespace boost::posix_time;
BasicOperator::GetInstance().SetSigners(keys);
@@ -44,7 +44,7 @@ bool GpgFrontend::GpgKeyManager::signKey(
if (expires == nullptr)
flags |= GPGME_KEYSIGN_NOEXPIRE;
else
- expires_time_t = to_time_t(ptime(*expires));
+ expires_time_t = to_time_t(*expires);
auto err = check_gpg_error(gpgme_op_keysign(
ctx, gpgme_key_t(target), uid.c_str(), expires_time_t, flags));
@@ -70,7 +70,7 @@ bool GpgFrontend::GpgKeyManager::revSign(
bool GpgFrontend::GpgKeyManager::setExpire(
const GpgFrontend::GpgKey& key, std::unique_ptr<GpgSubKey>& subkey,
- std::unique_ptr<boost::gregorian::date>& expires) {
+ std::unique_ptr<boost::posix_time::ptime>& expires) {
using namespace boost::posix_time;
unsigned long expires_time = 0;