summaryrefslogtreecommitdiff
path: root/lib/gnutls_ui.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2005-12-10 18:41:52 +0000
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2005-12-10 18:41:52 +0000
commit2ee29c9090a8217f835fdeeeaa3cd2f2cc7368a1 (patch)
tree728e4041e0a06cc5648e285e5d7fb4cb5815e7e8 /lib/gnutls_ui.c
parente8f8b8441706c719b4e9f251c4875e83db021b21 (diff)
downloadgnutls-2ee29c9090a8217f835fdeeeaa3cd2f2cc7368a1.tar.gz
added missing set_params_function()
Diffstat (limited to 'lib/gnutls_ui.c')
-rw-r--r--lib/gnutls_ui.c36
1 files changed, 36 insertions, 0 deletions
diff --git a/lib/gnutls_ui.c b/lib/gnutls_ui.c
index 8c4a14bdac..5194586702 100644
--- a/lib/gnutls_ui.c
+++ b/lib/gnutls_ui.c
@@ -649,3 +649,39 @@ gnutls_certificate_set_rsa_export_params (gnutls_certificate_credentials_t
{
res->rsa_params = rsa_params;
}
+
+/**
+ * gnutls_psk_set_params_function - This function will set the DH or RSA parameters callback
+ * @res: is a gnutls_psk_server_credentials_t structure
+ * @func: is the function to be called
+ *
+ * This function will set a callback in order for the server to get the
+ * diffie hellman or RSA parameters for psk authentication. The callback
+ * should return zero on success.
+ *
+ **/
+void
+gnutls_psk_set_params_function (gnutls_psk_server_credentials_t res,
+ gnutls_params_function * func)
+{
+ res->params_func = func;
+}
+
+
+
+/**
+ * gnutls_anon_set_params_function - This function will set the DH or RSA parameters callback
+ * @res: is a gnutls_anon_server_credentials_t structure
+ * @func: is the function to be called
+ *
+ * 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 zero on success.
+ *
+ **/
+void
+gnutls_anon_set_params_function (gnutls_anon_server_credentials_t res,
+ gnutls_params_function * func)
+{
+ res->params_func = func;
+}