diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2005-11-15 17:35:02 +0000 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2005-11-15 17:35:02 +0000 |
commit | 28742fa959f05142f2659f73a5ea1260175179a7 (patch) | |
tree | b29435e31924e409e58bf034cf30092e5e39cf2e /lib/gnutls_dh.h | |
parent | dea22989089a7c2de01a606a9e6ed60caee2742f (diff) | |
download | gnutls-28742fa959f05142f2659f73a5ea1260175179a7.tar.gz |
added DHE-PSK ciphersuites and some cleanups.
Diffstat (limited to 'lib/gnutls_dh.h')
-rw-r--r-- | lib/gnutls_dh.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/gnutls_dh.h b/lib/gnutls_dh.h index bbae902478..e27e8f0f7a 100644 --- a/lib/gnutls_dh.h +++ b/lib/gnutls_dh.h @@ -22,7 +22,16 @@ * */ -const mpi_t *_gnutls_get_dh_params (gnutls_dh_params_t); +#ifndef GNUTLS_DH_H +# define GNUTLS_DH_H + +const mpi_t *_gnutls_dh_params_to_mpi (gnutls_dh_params_t); mpi_t gnutls_calc_dh_secret (mpi_t * ret_x, mpi_t g, mpi_t prime); mpi_t gnutls_calc_dh_key (mpi_t f, mpi_t x, mpi_t prime); int _gnutls_dh_generate_prime (mpi_t * ret_g, mpi_t * ret_n, uint bits); + +gnutls_dh_params_t +_gnutls_get_dh_params (gnutls_dh_params_t dh_params, gnutls_params_function* func, + gnutls_session_t session); + +#endif |