char *private_key_passphrase;
char *private_key_passphrase_type;
char *phase2;
+ char *passphrase;
};
struct connman_config {
g_free(service->private_key_passphrase);
g_free(service->private_key_passphrase_type);
g_free(service->phase2);
+ g_free(service->passphrase);
g_free(service);
}
service->phase2 = str;
}
+ str = g_key_file_get_string(keyfile, group, "Passphrase", NULL);
+ if (str != NULL) {
+ g_free(service->passphrase);
+ service->passphrase = str;
+ }
+
g_hash_table_replace(config->service_table, service->ident, service);
connman_info("Adding service configuration %s", service->ident);
if (config->phase2 != NULL)
__connman_service_set_string(service, "Phase2", config->phase2);
+
+ if (config->passphrase != NULL)
+ __connman_service_set_string(service, "Passphrase", config->passphrase);
}
int __connman_config_provision_service(struct connman_service *service)