summaryrefslogtreecommitdiff
path: root/lib/anon_cred.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2017-08-22 08:48:03 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2017-08-22 08:55:37 +0200
commit356674a7ceaa4c4ecb3f478d0d3b3cc682a1540c (patch)
treeadec29efbc92e162b19e8725ea69b7011ec3692f /lib/anon_cred.c
parent8152376033d28c65c43006d3536e124a88441464 (diff)
downloadgnutls-356674a7ceaa4c4ecb3f478d0d3b3cc682a1540c.tar.gz
dh params: document DH param setting functions as deprecated
They are no longer useful after the RFC7919 DH parameter negotiation. Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Diffstat (limited to 'lib/anon_cred.c')
-rw-r--r--lib/anon_cred.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/anon_cred.c b/lib/anon_cred.c
index fbf64fb3c3..8eae54d0e3 100644
--- a/lib/anon_cred.c
+++ b/lib/anon_cred.c
@@ -108,6 +108,10 @@ gnutls_anon_allocate_client_credentials(gnutls_anon_client_credentials_t *
* This function will set the Diffie-Hellman parameters for an
* anonymous server to use. These parameters will be used in
* Anonymous Diffie-Hellman cipher suites.
+ *
+ * Deprecated: This function is unnecessary and discouraged on GnuTLS 3.6.0
+ * or later. Since 3.6.0, DH parameters are negotiated
+ * following RFC7919.
**/
void
gnutls_anon_set_server_dh_params(gnutls_anon_server_credentials_t res,
@@ -133,6 +137,10 @@ gnutls_anon_set_server_dh_params(gnutls_anon_server_credentials_t res,
* Anonymous Diffie-Hellman cipher suites and will be selected from
* the FFDHE set of RFC7919 according to the security level provided.
*
+ * Deprecated: This function is unnecessary and discouraged on GnuTLS 3.6.0
+ * or later. Since 3.6.0, DH parameters are negotiated
+ * following RFC7919.
+ *
* Returns: On success, %GNUTLS_E_SUCCESS (0) is returned, otherwise a
* negative error value.
*
@@ -155,6 +163,11 @@ gnutls_anon_set_server_known_dh_params(gnutls_anon_server_credentials_t res,
* This function will set a callback in order for the server to get
* the Diffie-Hellman parameters for anonymous authentication. The
* callback should return %GNUTLS_E_SUCCESS (0) on success.
+ *
+ * Deprecated: This function is unnecessary and discouraged on GnuTLS 3.6.0
+ * or later. Since 3.6.0, DH parameters are negotiated
+ * following RFC7919.
+ *
**/
void
gnutls_anon_set_server_params_function(gnutls_anon_server_credentials_t
@@ -171,6 +184,11 @@ gnutls_anon_set_server_params_function(gnutls_anon_server_credentials_t
* This function will set a callback in order for the server to get
* the Diffie-Hellman or RSA parameters for anonymous authentication.
* The callback should return %GNUTLS_E_SUCCESS (0) on success.
+ *
+ * Deprecated: This function is unnecessary and discouraged on GnuTLS 3.6.0
+ * or later. Since 3.6.0, DH parameters are negotiated
+ * following RFC7919.
+ *
**/
void
gnutls_anon_set_params_function(gnutls_anon_server_credentials_t res,