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
Emile_SSL *r;
const char *msg;
int options;
- int dh = 0;
if (!emile_cipher_init()) return NULL;
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;