summaryrefslogtreecommitdiff
path: root/src/crywrap
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2015-03-21 11:14:15 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2015-03-21 11:14:15 +0100
commitc5a863b3d3caa59cd623a933a51364bc16007ecd (patch)
tree6e2605b9af1314683e18c5340764255af691b08c /src/crywrap
parent356ddd824b0f95d0713daa6d12dbbcb3baf65439 (diff)
downloadgnutls-c5a863b3d3caa59cd623a933a51364bc16007ecd.tar.gz
tools: enable compilation with all options disabled
Diffstat (limited to 'src/crywrap')
-rw-r--r--src/crywrap/crywrap.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/crywrap/crywrap.c b/src/crywrap/crywrap.c
index 483913b706..1277609be4 100644
--- a/src/crywrap/crywrap.c
+++ b/src/crywrap/crywrap.c
@@ -565,12 +565,13 @@ _crywrap_tls_session_create(const crywrap_config_t * config)
*/
static void _crywrap_tls_init(void)
{
-
+#ifdef ENABLE_DHE
gnutls_dh_params_init(&dh_params);
gnutls_dh_params_import_pkcs3(dh_params, &dh_file,
GNUTLS_X509_FMT_PEM);
gnutls_certificate_set_dh_params(cred, dh_params);
+#endif
}
/** @} */