diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2015-12-31 00:39:19 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2015-12-31 00:52:23 +0200 |
commit | 879f5466fcb07e608825b59aac96c94e6954d24e (patch) | |
tree | 0ba58309014097bec2a22eb22dccd64e07322c6b /lib/anon_cred.c | |
parent | a95807e14727a1ad53d2a65f70a8e2d2ed53e6ec (diff) | |
download | gnutls-879f5466fcb07e608825b59aac96c94e6954d24e.tar.gz |
split anon credentials functionality from ui.c
Diffstat (limited to 'lib/anon_cred.c')
-rw-r--r-- | lib/anon_cred.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/anon_cred.c b/lib/anon_cred.c index 6d45c8f386..66a3ce29ea 100644 --- a/lib/anon_cred.c +++ b/lib/anon_cred.c @@ -134,4 +134,19 @@ gnutls_anon_set_server_params_function(gnutls_anon_server_credentials_t res->params_func = func; } +/** + * gnutls_anon_set_params_function: + * @res: is a gnutls_anon_server_credentials_t type + * @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 %GNUTLS_E_SUCCESS (0) on success. + **/ +void +gnutls_anon_set_params_function(gnutls_anon_server_credentials_t res, + gnutls_params_function * func) +{ + res->params_func = func; +} #endif |