aboutsummaryrefslogtreecommitdiffstats
path: root/src/m_pinentry/RaisePinentry.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2024-07-31 05:55:59 +0000
committersaturneric <[email protected]>2024-07-31 05:55:59 +0000
commit2be9cf21aef39a34a807eb29b29eec726ec68f97 (patch)
treeb1c053696132d4754bff72261061cfb84c4365ab /src/m_pinentry/RaisePinentry.cpp
parentfeat: update copyright info (diff)
downloadModules-2be9cf21aef39a34a807eb29b29eec726ec68f97.tar.gz
Modules-2be9cf21aef39a34a807eb29b29eec726ec68f97.zip
fix: addressing some of the issues identified
Diffstat (limited to 'src/m_pinentry/RaisePinentry.cpp')
-rw-r--r--src/m_pinentry/RaisePinentry.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/m_pinentry/RaisePinentry.cpp b/src/m_pinentry/RaisePinentry.cpp
index ed9538d..e4061e6 100644
--- a/src/m_pinentry/RaisePinentry.cpp
+++ b/src/m_pinentry/RaisePinentry.cpp
@@ -90,12 +90,14 @@ auto RaisePinentry::Exec() -> int {
bool ret = result != 0;
if (!ret) {
- emit SignalUserInputPassphraseCallback({});
+ context_->SetSuccess(false);
+ emit SignalUserInputPassphraseCallback(context_);
return -1;
}
auto pin = pinentry->pin().toUtf8();
+ context_->SetSuccess(true);
context_->SetPassphrase(pin);
emit SignalUserInputPassphraseCallback(context_);
return 0;