[issue238] gpgme returns GPG_ERR_NOT_IMPLEMENTED when a passphrase callback is set on a context with protocol CMS
Marc Mutz <[email protected]>
| Newsgroups | gmane.comp.encryption.gpg.gpa.devel |
|---|---|
| Message-ID | <[email protected]> |
New submission from Marc Mutz <[email protected]>: See thread on internal mailing list. Attached patch works around this, which is why this is urgent instead of critical. GpgME should just ignore the passphrase callback for the gpgsm engine, just as it does for gpg in case the agent is found/useable/whatever. ---------- assignedto: marcus files: qgpgmejob.cpp.diff messages: 1229 nosy: bh, marc, marcus priority: urgent status: unread title: gpgme returns GPG_ERR_NOT_IMPLEMENTED when a passphrase callback is set on a context with protocol CMS topic: GPGME ______________________________________________________ Aegypten issue tracker <[email protected]> <https://intevation.de/roundup/aegypten/issue238> ______________________________________________________ _______________________________________________ Gpa-dev mailing list [email protected] http://lists.gnupg.org/mailman/listinfo/gpa-dev
qgpgmejob.cpp.diff
(text/plain, 745 B)
? scdaemonwatch.kconfig ? conf/form1.ui Index: lib/backends/qgpgme/qgpgmejob.cpp =================================================================== RCS file: /home/kde/kdepim/certmanager/lib/backends/qgpgme/qgpgmejob.cpp,v retrieving revision 1.5 diff -u -3 -p -r1.5 qgpgmejob.cpp --- lib/backends/qgpgme/qgpgmejob.cpp 15 Jul 2004 21:17:14 -0000 1.5 +++ lib/backends/qgpgme/qgpgmejob.cpp 28 Jul 2004 15:48:44 -0000 @@ -69,6 +69,7 @@ Kleo::QGpgMEJob::QGpgMEJob( Kleo::Job * QObject::connect( QGpgME::EventLoopInteractor::instance(), SIGNAL(aboutToDestroy()), _this, SLOT(slotCancel()) ); context->setProgressProvider( this ); + if ( context->protocol() == GpgME::Context::OpenPGP ) context->setPassphraseProvider( this ); }