Add FiSHLiM GTK key manager + context menu access

This commit is contained in:
2026-06-15 22:56:50 -06:00
parent 72132d5e88
commit b09af655e7
5 changed files with 277 additions and 5 deletions

View File

@@ -194,6 +194,18 @@ static gboolean keyfile_save_to_file (GKeyFile *keyfile, char *filename) {
}
#endif
gchar **keystore_get_targets(gsize *length) {
GKeyFile *keyfile;
gchar **groups;
keyfile = getConfigFile();
groups = g_key_file_get_groups(keyfile, length);
g_key_file_free(keyfile);
return groups;
}
/**
* Writes the key store file to disk.
*/
@@ -217,6 +229,7 @@ G_GNUC_END_IGNORE_DEPRECATIONS
/**
* Sets a key in the key store file.
*/
gboolean keystore_store_key(const char *nick, const char *key, enum fish_mode mode) {
const char *password;
char *encrypted;