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
2 changed files with 0 additions and 3 deletions
|
@ -952,7 +952,6 @@ int eap_peer_pwd_register(void)
|
|||
struct eap_method *eap;
|
||||
int ret;
|
||||
|
||||
EVP_add_digest(EVP_sha256());
|
||||
eap = eap_peer_method_alloc(EAP_PEER_METHOD_INTERFACE_VERSION,
|
||||
EAP_VENDOR_IETF, EAP_TYPE_PWD, "PWD");
|
||||
if (eap == NULL)
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue