mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-29 16:24:03 -05:00
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>
This commit is contained in:
parent
afbe57d981
commit
453553698c
@ -952,7 +952,6 @@ int eap_peer_pwd_register(void)
|
|||||||
struct eap_method *eap;
|
struct eap_method *eap;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
EVP_add_digest(EVP_sha256());
|
|
||||||
eap = eap_peer_method_alloc(EAP_PEER_METHOD_INTERFACE_VERSION,
|
eap = eap_peer_method_alloc(EAP_PEER_METHOD_INTERFACE_VERSION,
|
||||||
EAP_VENDOR_IETF, EAP_TYPE_PWD, "PWD");
|
EAP_VENDOR_IETF, EAP_TYPE_PWD, "PWD");
|
||||||
if (eap == NULL)
|
if (eap == NULL)
|
||||||
|
@ -1028,8 +1028,6 @@ int eap_server_pwd_register(void)
|
|||||||
struct timezone tz;
|
struct timezone tz;
|
||||||
u32 sr;
|
u32 sr;
|
||||||
|
|
||||||
EVP_add_digest(EVP_sha256());
|
|
||||||
|
|
||||||
sr = 0xdeaddada;
|
sr = 0xdeaddada;
|
||||||
(void) gettimeofday(&tp, &tz);
|
(void) gettimeofday(&tp, &tz);
|
||||||
sr ^= (tp.tv_sec ^ tp.tv_usec);
|
sr ^= (tp.tv_sec ^ tp.tv_usec);
|
||||||
|
Loading…
Reference in New Issue
Block a user