~ubuntu-branches/ubuntu/gutsy/wireshark/gutsy-security

« back to all changes in this revision

Viewing changes to airpcap_loader.h

  • Committer: Bazaar Package Importer
  • Author(s): Frederic Peters
  • Date: 2007-04-01 08:58:40 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20070401085840-or3qhrpv8alt1bwg
Tags: 0.99.5-1
* New upstream release.
* debian/patches/09_idl2wrs.dpatch: updated to patch idl2wrs.sh.in.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* airpcap_loader.h
2
2
 * Declarations of routines for the "About" dialog
3
3
 *
4
 
 * $Id: airpcap_loader.h 19741 2006-10-30 16:12:19Z gerald $
 
4
 * $Id: airpcap_loader.h 20388 2007-01-11 02:42:34Z gerald $
5
5
 *
6
6
 * Giorgio Tino <giorgio.tino@cacetech.com>
7
7
 * Copyright (c) CACE Technologies, LLC 2006
28
28
#ifndef __AIRPCAP_LOADER_H__
29
29
#define __AIRPCAP_LOADER_H__
30
30
 
 
31
#include <epan/crypt/airpdcap_user.h>
 
32
 
31
33
/* Error values from "get_airpcap_interface_list()". */
32
34
#define CANT_GET_AIRPCAP_INTERFACE_LIST 0       /* error getting list */
33
35
#define NO_AIRPCAP_INTERFACES_FOUND     1       /* list is empty */
34
36
 
35
37
#define AIRPCAP_CHANNEL_ANY_NAME "ANY"
36
38
 
37
 
/*
38
 
 * WEP_KEY_MAX_SIZE is in bytes, but each byte is rapresented in strings with an ascii char
39
 
 * 4 bit are needed to store an exadecimal number, 8 bit to store a char...
40
 
 */
41
 
#define WEP_KEY_MAX_CHAR_SIZE (WEP_KEY_MAX_SIZE*2)
42
 
 
43
 
/*
44
 
 * WEP_KEY_MAX_SIZE is in bytes, this is in bits...
45
 
 */
46
 
#define WEP_KEY_MAX_BIT_SIZE (WEP_KEY_MAX_SIZE*8)
47
 
 
48
39
#define AIRPCAP_WEP_KEY_STRING  "WEP"
49
 
#define AIRPCAP_WPA_KEY_STRING  "WPA"
50
 
#define AIRPCAP_WPA2_KEY_STRING "WPA2"
 
40
/*
 
41
 * XXX - WPA_PWD is the passphrase+ssid and WPA-PSK is the hexadecimal key
 
42
 */
 
43
#define AIRPCAP_WPA_PWD_KEY_STRING  "WPA-PWD"
 
44
#define AIRPCAP_WPA_BIN_KEY_STRING  "WPA-PSK"
51
45
 
52
46
#define AIRPCAP_DLL_OK                  0
53
47
#define AIRPCAP_DLL_OLD                 1
118
112
   int number_of_keys;
119
113
} keys_cb_data_t;
120
114
 
121
 
/*
122
 
 * Struct to store infos about a specific decryption key.
123
 
 */
124
 
typedef struct {
125
 
    GString *key;
126
 
    GString *ssid;
127
 
    guint   bits;
128
 
    guint   type;
129
 
} decryption_key_t;
130
 
 
131
115
/* Airpcap interface list */
132
116
extern GList *airpcap_if_list;
133
117
 
145
129
 * properly into the airpcap adapter.
146
130
 */
147
131
BOOL
148
 
load_wlan_wep_keys(airpcap_if_info_t* info_if);
149
 
 
150
 
/*
151
 
 * Function used to read the Decryption Keys from the preferences and store them
152
 
 * properly into the airpcap adapter.
153
 
 */
154
 
BOOL
155
132
load_wlan_driver_wep_keys();
156
133
 
157
134
/*
445
422
void
446
423
airpcap_if_clear_decryption_settings(airpcap_if_info_t* info_if);
447
424
 
448
 
/* 
 
425
/*
449
426
 *  Function used to save to the preference file the Decryption Keys.
450
427
 */
451
428
int
452
429
save_wlan_driver_wep_keys();
453
430
 
454
 
/* 
 
431
/*
455
432
 *  Function used to save to the preference file the Decryption Keys.
456
433
 */
457
434
int