aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2017-12-24 15:41:48 (GMT)
committerJouni Malinen <j@w1.fi>2017-12-24 19:40:21 (GMT)
commit9596a756520d6ebcc9d44384f0c88305f063a9fe (patch)
treef481f504bc8833db95f1a4e92492847b0f120c2b
parent04b1bcc5f3b8ff9ceddfa7da5256609eed16d9c5 (diff)
downloadhostap-9596a756520d6ebcc9d44384f0c88305f063a9fe.zip
hostap-9596a756520d6ebcc9d44384f0c88305f063a9fe.tar.gz
hostap-9596a756520d6ebcc9d44384f0c88305f063a9fe.tar.bz2
PAE: Remove OpenSSL header dependency
Instead of requiring OpenSSL headers to be available just for the SSL3_RANDOM_SIZE definition, replace that macro with a fixed length (32) to simplify dependencies. Signed-off-by: Jouni Malinen <j@w1.fi>
-rw-r--r--wpa_supplicant/wpas_kay.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/wpa_supplicant/wpas_kay.c b/wpa_supplicant/wpas_kay.c
index 587e5c3..11708b8 100644
--- a/wpa_supplicant/wpas_kay.c
+++ b/wpa_supplicant/wpas_kay.c
@@ -5,7 +5,7 @@
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
-#include <openssl/ssl.h>
+
#include "utils/includes.h"
#include "utils/common.h"
@@ -268,7 +268,7 @@ static int ieee802_1x_auth_get_session_id(struct wpa_supplicant *wpa_s,
return -1;
}
- need_len = 1 + 2 * SSL3_RANDOM_SIZE;
+ need_len = 1 + 2 * 32 /* random size */;
if (need_len > id_len) {
wpa_printf(MSG_DEBUG, "EAP Session-Id not long enough");
return -1;