emile: remove dead code

This seems to come from some intention to fetch dh from openssl somewhow but
it was never implemented. fh always stays 0 since its init and thus we can
remove the code it guards.

CID: 1288930
This commit is contained in:
Stefan Schmidt 2015-10-21 14:23:08 +02:00
parent bfb2759891
commit 10c8650b1e
1 changed files with 1 additions and 13 deletions

View File

@ -727,7 +727,6 @@ emile_cipher_server_connect(Emile_Cipher_Type t)
Emile_SSL *r;
const char *msg;
int options;
int dh = 0;
if (!emile_cipher_init()) return NULL;
@ -761,18 +760,7 @@ emile_cipher_server_connect(Emile_Cipher_Type t)
return r;
on_error:
if (dh)
{
if (dh & DH_CHECK_P_NOT_PRIME)
msg = "dh_params could not generate a prime!";
else
msg = "dh_params could not generate a safe prime!";
}
else
{
msg = ERR_reason_error_string(ERR_get_error());
}
msg = ERR_reason_error_string(ERR_get_error());
ERR("OpenSSL error: '%s'.", msg);
emile_cipher_free(r);
return NULL;