2005-12-12 22:18:55 +00:00
|
|
|
/* NetworkManager Wireless Applet -- Display wireless access points and allow user control
|
|
|
|
|
*
|
|
|
|
|
* Dan Williams <dcbw@redhat.com>
|
|
|
|
|
*
|
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
|
* (at your option) any later version.
|
|
|
|
|
*
|
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
|
*
|
|
|
|
|
* (C) Copyright 2005 Red Hat, Inc.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef DBUS_HELPERS_H
|
|
|
|
|
#define DBUS_HELPERS_H
|
|
|
|
|
|
|
|
|
|
#include <dbus/dbus.h>
|
|
|
|
|
|
|
|
|
|
#include "cipher.h"
|
|
|
|
|
|
2005-12-15 18:24:28 +00:00
|
|
|
dbus_bool_t nmu_security_serialize_wep (DBusMessageIter *iter,
|
|
|
|
|
const char *key,
|
|
|
|
|
int auth_alg);
|
2005-12-12 22:18:55 +00:00
|
|
|
|
2005-12-15 18:24:28 +00:00
|
|
|
dbus_bool_t nmu_security_deserialize_wep (DBusMessageIter *iter,
|
|
|
|
|
char **key,
|
|
|
|
|
int *key_len,
|
|
|
|
|
int *auth_alg);
|
|
|
|
|
|
|
|
|
|
dbus_bool_t nmu_security_serialize_wep_with_cipher (DBusMessage *message,
|
|
|
|
|
IEEE_802_11_Cipher *cipher,
|
|
|
|
|
const char *ssid,
|
|
|
|
|
const char *input,
|
|
|
|
|
int auth_alg);
|
|
|
|
|
|
|
|
|
|
dbus_bool_t nmu_security_serialize_wpa_psk (DBusMessageIter *iter,
|
|
|
|
|
const char *key,
|
|
|
|
|
int wpa_version,
|
|
|
|
|
int key_mgt);
|
|
|
|
|
|
|
|
|
|
dbus_bool_t nmu_security_deserialize_wpa_psk (DBusMessageIter *iter,
|
|
|
|
|
char **key,
|
|
|
|
|
int *key_len,
|
|
|
|
|
int *wpa_version,
|
|
|
|
|
int *key_mgt);
|
|
|
|
|
|
|
|
|
|
dbus_bool_t nmu_security_serialize_wpa_psk_with_cipher (DBusMessage *message,
|
|
|
|
|
IEEE_802_11_Cipher *cipher,
|
|
|
|
|
const char *ssid,
|
|
|
|
|
const char *input,
|
|
|
|
|
int wpa_version,
|
|
|
|
|
int key_mgt);
|
2005-12-12 22:18:55 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* DBUS_HELPERS_H */
|