diff options
author | Gerald Combs <gerald@wireshark.org> | 2006-12-27 23:05:55 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2006-12-27 23:05:55 +0000 |
commit | 2437fd2e778b10418e22917d32a2679b2203435a (patch) | |
tree | d3f8e772ec737813b09289115d67b06bcc849331 /airpcap_loader.h | |
parent | 25862eff23f5981ca5764217346d7dfa62c1494e (diff) | |
download | wireshark-2437fd2e778b10418e22917d32a2679b2203435a.tar.gz wireshark-2437fd2e778b10418e22917d32a2679b2203435a.tar.bz2 wireshark-2437fd2e778b10418e22917d32a2679b2203435a.zip |
Prepare to move the airpdcap code to epan/crypt (SVN won't let me actually
move the files until these changes are checked in). Add an AC_DEFINE
for airpdcap (which will be removed once the changes have settled).
Update the airpdcap code to compile on non-Windows systems. Fix up
comments and whitespace to conform more closely to the rest of the
code base. Verified to compile under Windows and OS X.
svn path=/trunk/; revision=20227
Diffstat (limited to 'airpcap_loader.h')
-rw-r--r-- | airpcap_loader.h | 66 |
1 files changed, 3 insertions, 63 deletions
diff --git a/airpcap_loader.h b/airpcap_loader.h index 70a28465dc..84766c90e3 100644 --- a/airpcap_loader.h +++ b/airpcap_loader.h @@ -34,63 +34,13 @@ #define AIRPCAP_CHANNEL_ANY_NAME "ANY" -/* - * WEP_KEY_MAX_SIZE is in bytes, but each byte is rapresented in strings with an ascii char - * 4 bit are needed to store an exadecimal number, 8 bit to store a char... - */ -#define WEP_KEY_MAX_CHAR_SIZE (WEP_KEY_MAX_SIZE*2) - -/* - * WEP_KEY_MAX_SIZE is in bytes, this is in bits... - */ -#define WEP_KEY_MAX_BIT_SIZE (WEP_KEY_MAX_SIZE*8) - -#define WEP_KEY_MIN_CHAR_SIZE 2 -#define WEP_KEY_MIN_BIT_SIZE 8 - -/* - * XXX - The next #define should probably be moved in airpcap.h, - * near WEP_KEY_MAX_SIZE ... - */ -#define WPA_KEY_MAX_SIZE 63 /* 63 chars followed by a '\0' */ - -#define WPA_KEY_MAX_CHAR_SIZE (WPA_KEY_MAX_SIZE*1) -#define WPA_KEY_MAX_BIT_SIZE (WPA_KEY_MAX_SIZE*8) -#define WPA_KEY_MIN_CHAR_SIZE 8 -#define WPA_KEY_MIN_BIT_SIZE (WPA_KEY_MIN_CHAR_SIZE*8) - -/* - * XXX - The next #define should probably be moved in airpcap.h, - * near WEP_KEY_MAX_SIZE ... - */ -#define WPA_SSID_MAX_SIZE 32 - -#define WPA_SSID_MAX_CHAR_SIZE (WPA_SSID_MAX_SIZE*1) -#define WPA_SSID_MAX_BIT_SIZE (WPA_SSID_MAX_SIZE*8) -#define WPA_SSID_MIN_CHAR_SIZE 0 -#define WPA_SSID_MIN_BIT_SIZE (WPA_SSID_MIN_CHAR_SIZE*8) - -/* - * User can enter the binary PSK, instead of the passphrase+ssid... - */ -#define WPA_PSK_KEY_SIZE 32 /* Fixed size, 32 bytes (256bit) */ -#define WPA_PSK_KEY_CHAR_SIZE (WPA_PSK_KEY_SIZE*2) -#define WPA_PSK_KEY_BIT_SIZE (WPA_PSK_KEY_SIZE*8) - #define AIRPCAP_WEP_KEY_STRING "WEP" /* - * XXX - WPA_PWD is the passphrase+ssid and WPA-PSK is the hexadecimal key + * XXX - WPA_PWD is the passphrase+ssid and WPA-PSK is the hexadecimal key */ #define AIRPCAP_WPA_PWD_KEY_STRING "WPA-PWD" #define AIRPCAP_WPA_BIN_KEY_STRING "WPA-PSK" -/* - * Key string defines - */ -#define STRING_KEY_TYPE_WEP "wep" -#define STRING_KEY_TYPE_WPA_PWD "wpa-pwd" -#define STRING_KEY_TYPE_WPA_PSK "wpa-psk" - #define AIRPCAP_DLL_OK 0 #define AIRPCAP_DLL_OLD 1 #define AIRPCAP_DLL_ERROR 2 @@ -152,16 +102,6 @@ typedef struct { } airpcap_if_info_t; /* - * Struct to store infos about a specific decryption key. - */ -typedef struct { - GString *key; - GString *ssid; - guint bits; - guint type; -} decryption_key_t; - -/* * Struct used to store infos to pass to the preferences manager callbacks */ typedef struct { @@ -480,13 +420,13 @@ write_wlan_driver_wep_keys_to_regitry(GList* key_list); void airpcap_if_clear_decryption_settings(airpcap_if_info_t* info_if); -/* +/* * Function used to save to the preference file the Decryption Keys. */ int save_wlan_driver_wep_keys(); -/* +/* * Function used to save to the preference file the Decryption Keys. */ int |