Bug 191879 - WPA keys cannot be entered in hex
Summary: WPA keys cannot be entered in hex
Status: RESOLVED FIXED
Alias: None
Product: Network Management
Classification: Miscellaneous
Component: Control Module (show other bugs)
Version: unspecified
Platform: Fedora RPMs Linux
: NOR wishlist
Target Milestone: ---
Assignee: Will Stephenson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-07 09:01 UTC by Kevin Kofler
Modified: 2009-07-26 17:25 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Kofler 2009-05-07 09:01:07 UTC
Version:           revision 963263 (using KDE 4.2.2)
Compiler:          g++ 4.3.2 Fedora 10 gcc-4.3.2-7
OS:                Linux
Installed from:    Fedora RPMs

The WPA key input only accepts a passphrase. Trying to enter a hex key makes it fail to connect. Particularly annoying if you're trying to copy the settings from the KDE 3 knetworkmanager, which stores the keys in hex only (and throws away the original passphrase).
Comment 1 Will Stephenson 2009-07-25 23:04:53 UTC
SVN commit 1002392 by wstephens:

Start of work to make it possible to enter hashed PSKs or passphrases
for WPA auth.  I am unable to test it because I don't have a new enough
NM installed.  If you want to test it, fix the #if in hashWpaPsk() in
networkmanager/backends/NetworkManager/settings/802-11-wireless-securitydbus.cpp
and rm CMakeCache.txt to ensure cmake knows you have NM 0.7.1 installed
- this test is insufficient since not all 0.7.1s have this feature.

CCBUG: 191879


 M  +5 -1      CMakeLists.txt  
 D             backends/NetworkManager/config-knmstorage.h.cmake  
 A             backends/NetworkManager/config-nm07backend.h.cmake   backends/NetworkManager/config-knmstorage.h.cmake#1002314
 M  +13 -4     backends/NetworkManager/settings/802-11-wireless-securitydbus.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1002392
Comment 2 Will Stephenson 2009-07-26 17:25:37 UTC
SVN commit 1002623 by wstephens:

Allow WPA-PSK connections to enter PSKs as well as passphrases.

Accept secrets of between 8 and 63 printable ascii chars as passphrases
to be hashed, and send 64 hex char PSKs through as-is.

Turns out this is the Right way.

BUG: 191879



 M  +9 -2      802-11-wireless-securitydbus.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1002623