Wireshark-dev: Re: [Wireshark-dev] [Wireshark-commits] rev 20318: /trunk/epan/dissectors/ /trun

From: Joerg Mayer <jmayer@xxxxxxxxx>
Date: Mon, 8 Jan 2007 13:20:34 +0100
On Sun, Jan 07, 2007 at 10:28:46PM -0800, Gerald Combs wrote:
> >>  Don't lower-case our SSID and passphrase, otherwise we'll create an
> >>  incorrect PSK hash.
> > 
> > The code still makes another mistake: The SSID is not a string - it's a
> > binary object which may even contain 0x00 in the middle. The current
> > airpcap code doesn't provide for that.
> 
> True.  The workarounds right now are to either omit the SSID (in which
> case the passphrase will be matched against every SSID), or to use the
> PSK hash directly, e.g. "wpa-pwd:MyPassword" or "wpa-psk:01020304...".
> Is this sufficient, or should we add support for a hexadecimal form of
> the SSID?

I'd like to have a binary way of entering them too. Maybe just
\x53\0x53\x49\x44\x20\x57\x49\x54\x48\0x00\x49\x4e\x53\x49\x44\x45
would be OK. Of course, the ssid pref handling would still need to
be fixed.

 ciao
     Joerg
-- 
Joerg Mayer                                           <jmayer@xxxxxxxxx>
We are stuck with technology when what we really want is just stuff that
works. Some say that should read Microsoft instead of technology.