/* Returns the list of the decryption keys specified for wireshark, NULL if no key is found  */
GList* get_wireshark_keys(void)
/* Returns the list of the decryption keys specified for wireshark, NULL if no key is found  */
GList* get_wireshark_keys(void)
{
    keys_cb_data_t *wep_user_data = NULL;
    GList *final_list     = NULL;
    GList *wep_final_list = NULL;
    wlan_prefs = prefs_find_module("wlan");
    wep_user_data = (keys_cb_data_t*)g_malloc(sizeof(keys_cb_data_t));
    wep_user_data->list = NULL;
    wep_user_data->current_index = 0;
    wep_user_data->number_of_keys= 0;
    prefs_pref_foreach(wlan_prefs, get_wep_key, (gpointer)wep_user_data);
    wep_final_list = wep_user_data->list;
    final_list = wep_final_list;
    g_free(wep_user_data);
    return final_list;
}