Merge branch 'dk/libsecret-unlock-to-load-fix' into maint

The credential helper for libsecret (in contrib/) has been improved
to allow possibly prompting the end user to unlock secrets that are
currently locked (otherwise the secrets may not be loaded).

* dk/libsecret-unlock-to-load-fix:
  credential-libsecret: unlock locked secrets
This commit is contained in:
Junio C Hamano
2017-11-15 12:05:02 +09:00

View File

@ -104,7 +104,7 @@ static int keyring_get(struct credential *c)
items = secret_service_search_sync(service, items = secret_service_search_sync(service,
SECRET_SCHEMA_COMPAT_NETWORK, SECRET_SCHEMA_COMPAT_NETWORK,
attributes, attributes,
SECRET_SEARCH_LOAD_SECRETS, SECRET_SEARCH_LOAD_SECRETS | SECRET_SEARCH_UNLOCK,
NULL, NULL,
&error); &error);
g_hash_table_unref(attributes); g_hash_table_unref(attributes);