From c1adb93eb17b54029e2fbef6269680af9f568500 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Mon, 16 Jan 2006 17:16:10 +0000 Subject: [PATCH] 2006-01-16 Dan Williams * libnm-util/cipher-wpa-psk-passphrase.c - (cipher_wpa_psk_passphrase_new): correct passphrase length, should be 8 - 63 characters inclusive git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1334 4912f4e0-d625-0410-9fb7-b9a5a253dbdc --- ChangeLog | 6 ++++++ libnm-util/cipher-wpa-psk-passphrase.c | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 8911793ea8..d534c264ac 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-01-16 Dan Williams + + * libnm-util/cipher-wpa-psk-passphrase.c + - (cipher_wpa_psk_passphrase_new): correct passphrase length, should + be 8 - 63 characters inclusive + 2006-01-16 Dan Williams * src/nm-dbus-nm.c diff --git a/libnm-util/cipher-wpa-psk-passphrase.c b/libnm-util/cipher-wpa-psk-passphrase.c index 187a5e375a..eeea7fb99a 100644 --- a/libnm-util/cipher-wpa-psk-passphrase.c +++ b/libnm-util/cipher-wpa-psk-passphrase.c @@ -38,8 +38,9 @@ IEEE_802_11_Cipher * cipher_wpa_psk_passphrase_new (void) cipher->refcount = 1; cipher->we_cipher = IW_AUTH_CIPHER_TKIP; + /* Passphrase between 8 and 63 characters inclusive */ cipher->input_min = 8; - cipher->input_max = WPA_PMK_LEN * 2; + cipher->input_max = (WPA_PMK_LEN * 2) - 1; cipher->cipher_hash_func = cipher_wpa_psk_passphrase_hash_func; cipher->cipher_input_validate_func = cipher_default_validate_func;