[frameworks/kwallet] src/runtime/ksecretd: Use correct internal function to query local wallet

Nicolas Fella <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit fd8c695bb4c3b1786ab12dd21a4d893029ac007a by Nicolas Fella.
Committed on 30/07/2026 at 18:12.
Pushed by ngraham into branch 'master'.

Use correct internal function to query local wallet

The public API does a DBus call to the backend, which isn't what we want here, since we _are_ the backend

Amends 034ca0fb85f9b6c8258551101ef6a3b8d08503dc

M  +2    -1    src/runtime/ksecretd/main.cpp

https://invent.kde.org/frameworks/kwallet/-/commit/fd8c695bb4c3b1786ab12dd21a4d893029ac007a

diff --git a/src/runtime/ksecretd/main.cpp b/src/runtime/ksecretd/main.cpp
index 130b1c36..94804ab0 100644
--- a/src/runtime/ksecretd/main.cpp
+++ b/src/runtime/ksecretd/main.cpp
@@ -22,6 +22,7 @@
 #include "../kwalletbackend/kwalletbackend.h" //For the hash size
 #include "ksecretd.h"
 #include "ksecretd_version.h"
+#include "kwalletbackend.h"
 #include "kwalletfreedesktopservice.h"
 
 #ifndef Q_OS_WIN
@@ -198,7 +199,7 @@ int main(int argc, char **argv)
 
     if (hash) {
         QByteArray passHash(hash, PBKDF2_SHA512_KEYSIZE);
-        int wallet = secretd.pamOpen(KWallet::Wallet::LocalWallet(), passHash, 0);
+        int wallet = secretd.pamOpen(KWallet::Backend::localWallet(), passHash, 0);
         if (wallet < 0) {
             qCWarning(KSECRETD_LOG) << "Wallet failed to get opened by PAM, error code is" << wallet;
         } else {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.