aboutsummaryrefslogtreecommitdiffstats
path: root/src/eap_server
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2014-11-16 23:20:10 (GMT)
committerJouni Malinen <j@w1.fi>2014-11-16 23:20:10 (GMT)
commit453553698c21d6fcc80499e34664128a47de6a36 (patch)
tree260ce6144ac7e7dfb2c9c965e0682cc7b201c666 /src/eap_server
parentafbe57d981042f5abcd7c21016c6979016bbc81f (diff)
downloadhostap-453553698c21d6fcc80499e34664128a47de6a36.zip
hostap-453553698c21d6fcc80499e34664128a47de6a36.tar.gz
hostap-453553698c21d6fcc80499e34664128a47de6a36.tar.bz2
EAP-pwd: Remove unnecessary OpenSSL EVP_sha256() registration
This gets registered in tls_openssl.c from tls_init(), so there is no need for EAP-pwd implementation to register explicitly. This avoids some corner cases where OpenSSL resources do not get fully freed on exit. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'src/eap_server')
-rw-r--r--src/eap_server/eap_server_pwd.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/eap_server/eap_server_pwd.c b/src/eap_server/eap_server_pwd.c
index 7e1278d..3102e93 100644
--- a/src/eap_server/eap_server_pwd.c
+++ b/src/eap_server/eap_server_pwd.c
@@ -1028,8 +1028,6 @@ int eap_server_pwd_register(void)
struct timezone tz;
u32 sr;
- EVP_add_digest(EVP_sha256());
-
sr = 0xdeaddada;
(void) gettimeofday(&tp, &tz);
sr ^= (tp.tv_sec ^ tp.tv_usec);