From: Nikos Mavrogiannopoulos Date: Sat, 10 Dec 2005 18:41:52 +0000 (+0000) Subject: added missing set_params_function() X-Git-Tag: gnutls_1_3_2~15 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2ee29c9090a8217f835fdeeeaa3cd2f2cc7368a1;p=thirdparty%2Fgnutls.git added missing set_params_function() --- 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; +}