summaryrefslogtreecommitdiff
path: root/lib/dh.h
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2016-10-11 16:42:28 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2016-10-14 22:54:39 +0200
commit68124e32acac2a23d2ef969ae81c6ac16b4ef707 (patch)
tree71033decb07270bffb8da839425c2a5db5be7be3 /lib/dh.h
parente3d2d37fa0670288202f539c1c2df0e15aadaf00 (diff)
downloadgnutls-68124e32acac2a23d2ef969ae81c6ac16b4ef707.tar.gz
DH: introduced gnutls_*_set_known_dh_params()
That is, the functions gnutls_certificate_set_known_dh_params(), gnutls_anon_set_server_known_dh_params(), gnutls_psk_set_server_known_dh_params(). These functions allow to statically set the DH parameters, based on the RFC7919 FFDHE parameters. This can simplify server configuration by allowing DH without loading parameters from file. Relates #37
Diffstat (limited to 'lib/dh.h')
-rw-r--r--lib/dh.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/dh.h b/lib/dh.h
index 7bc7bec125..5b15a93ef2 100644
--- a/lib/dh.h
+++ b/lib/dh.h
@@ -30,4 +30,6 @@ _gnutls_get_dh_params(gnutls_dh_params_t dh_params,
gnutls_params_function * func,
gnutls_session_t session);
+int _gnutls_set_cred_dh_params(gnutls_dh_params_t *cparams, gnutls_sec_param_t sec_param);
+
#endif