mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
Remote storage: add preference for the passphrase
While we don't expose it as this to the user, we'll need an ssh key and potentially a passphrase in order to communicate with the git server in our infrastructure. This simply sets up a way to store the passphrase. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
95664af53b
commit
20d1d2c385
3 changed files with 6 additions and 0 deletions
1
pref.h
1
pref.h
|
@ -90,6 +90,7 @@ struct preferences {
|
|||
bool show_pictures_in_profile;
|
||||
bool use_default_file;
|
||||
facebook_prefs_t facebook;
|
||||
char *passphrase;
|
||||
};
|
||||
enum unit_system_values {
|
||||
METRIC,
|
||||
|
|
|
@ -465,6 +465,10 @@ void PreferencesDialog::loadSettings()
|
|||
GET_TXT("proxy_user", proxy_user);
|
||||
GET_TXT("proxy_pass", proxy_pass);
|
||||
s.endGroup();
|
||||
|
||||
s.beginGroup("RemoteStorage");
|
||||
GET_TXT("passphrase", passphrase);
|
||||
s.endGroup();
|
||||
}
|
||||
|
||||
void PreferencesDialog::buttonClicked(QAbstractButton *button)
|
||||
|
|
|
@ -248,6 +248,7 @@ void free_prefs(void)
|
|||
free((void*)prefs.default_filename);
|
||||
free((void*)prefs.default_cylinder);
|
||||
free((void*)prefs.divelist_font);
|
||||
free((void*)prefs.passphrase);
|
||||
free(prefs.proxy_host);
|
||||
free(prefs.proxy_user);
|
||||
free(prefs.proxy_pass);
|
||||
|
|
Loading…
Reference in a new issue