diff options
Diffstat (limited to 'lib/auth_anon.h')
-rw-r--r-- | lib/auth_anon.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/auth_anon.h b/lib/auth_anon.h index 2bfd0f53e5..29c4114338 100644 --- a/lib/auth_anon.h +++ b/lib/auth_anon.h @@ -3,6 +3,10 @@ typedef struct { gnutls_dh_params dh_params; + /* this callback is used to retrieve the DH or RSA + * parameters. + */ + gnutls_params_function * params_func; } ANON_SERVER_CREDENTIALS_INT; #define gnutls_anon_server_credentials ANON_SERVER_CREDENTIALS_INT* @@ -18,3 +22,6 @@ typedef ANON_CLIENT_AUTH_INFO ANON_SERVER_AUTH_INFO; typedef struct ANON_CLIENT_AUTH_INFO_INT ANON_CLIENT_AUTH_INFO_INT; typedef ANON_CLIENT_AUTH_INFO_INT ANON_SERVER_AUTH_INFO_INT; + +gnutls_dh_params _gnutls_anon_get_dh_params(const gnutls_anon_server_credentials sc, + gnutls_session session); |