diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2003-02-03 16:11:43 +0000 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2003-02-03 16:11:43 +0000 |
commit | dab47e0ecb7c96e6737a52e06c7b56fbe93d1237 (patch) | |
tree | 6d78dc998972f5e6ed53d36eceeb70ad358f37f5 /lib/gnutls_dh.h | |
parent | 198cf86a48fd021c861f232cd6e7abfa8b68b911 (diff) | |
download | gnutls-dab47e0ecb7c96e6737a52e06c7b56fbe93d1237.tar.gz |
* gnutls_dh_params_generate() and gnutls_rsa_params_generate() now use
gnutls_malloc() to allocate the output parameters.
* Added gnutls_pkcs3_extract_dh_params() which extracts parameters from
PKCS#3 encoded structures. This was in order to read parameters generated
using the openssl dhparam tool.
* Several changes in the temporary (DH/RSA) parameter codebase. No DH
parameters are now included in the library. Also a credentials structure
can now hold only one temporary parameter.
Diffstat (limited to 'lib/gnutls_dh.h')
-rw-r--r-- | lib/gnutls_dh.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/gnutls_dh.h b/lib/gnutls_dh.h index 39b0f43876..87432148aa 100644 --- a/lib/gnutls_dh.h +++ b/lib/gnutls_dh.h @@ -18,11 +18,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ -MPI gnutls_get_dh_params(gnutls_dh_params, MPI *ret_p, int bits); +int _gnutls_get_dh_params(gnutls_dh_params, MPI *ret_p, MPI* ret_g); MPI gnutls_calc_dh_secret( MPI *ret_x, MPI g, MPI prime ); MPI gnutls_calc_dh_key( MPI f, MPI x, MPI prime ); int _gnutls_dh_generate_prime(MPI *ret_g, MPI* ret_n, int bits); -void _gnutls_dh_clear_mpis(void); -int _gnutls_dh_calc_mpis(void); - -extern _gnutls_dh_params _gnutls_dh_default_params; |