Skip to content
Snippets Groups Projects
Commit 8d48c07d authored by Recolic's avatar Recolic :house_with_garden:
Browse files

.

parent feea3591
No related branches found
No related tags found
1 merge request!2Add standalone implementation
...@@ -44,6 +44,11 @@ int main(int argc, char **argv) { ...@@ -44,6 +44,11 @@ int main(int argc, char **argv) {
return 3; return 3;
} }
#ifdef KEYRING_IMPL_standalone
rlog.warning("This implementation 'standalone' always unlocks your default keyring. Keyring name `{}` will be ignored. Build with KEYRING_IMPL=lib if necessary.", keyring_and_pswd.at(0));
keyring_and_pswd.at(0) = "_ignored_";
#endif
auto res = do_unlock(keyring_and_pswd.at(0), keyring_and_pswd.at(1)); auto res = do_unlock(keyring_and_pswd.at(0), keyring_and_pswd.at(1));
auto msg = keyringResultToString(res); auto msg = keyringResultToString(res);
if(res == GNOME_KEYRING_RESULT_OK) if(res == GNOME_KEYRING_RESULT_OK)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment