diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2004-03-11 11:32:37 +0000 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2004-03-11 11:32:37 +0000 |
commit | cb738bc84a50a6815f6bbe291f5d0e38c39cf0bc (patch) | |
tree | d67773503b45d8e7877c8ce76193f518bf414918 /lib/auth_dhe.c | |
parent | 2ba9bd33a9aaaec9804bce2df1b1ab8a78c70329 (diff) | |
download | gnutls-cb738bc84a50a6815f6bbe291f5d0e38c39cf0bc.tar.gz |
Added gnutls_certificate_set_params_function() and
gnutls_anon_set_params_function() that set the RSA or DH
parameters using a callback.
Diffstat (limited to 'lib/auth_dhe.c')
-rw-r--r-- | lib/auth_dhe.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/auth_dhe.c b/lib/auth_dhe.c index 79f499156f..bc7eede562 100644 --- a/lib/auth_dhe.c +++ b/lib/auth_dhe.c @@ -89,6 +89,7 @@ static int gen_dhe_server_kx(gnutls_session session, opaque ** data) gnutls_datum signature, ddata; CERTIFICATE_AUTH_INFO info; const gnutls_certificate_credentials cred; + gnutls_dh_params dh_params; cred = _gnutls_get_cred(session->key, GNUTLS_CRD_CERTIFICATE, NULL); if (cred == NULL) { @@ -107,7 +108,8 @@ static int gen_dhe_server_kx(gnutls_session session, opaque ** data) return ret; } - mpis = _gnutls_get_dh_params( cred->dh_params); + dh_params = _gnutls_certificate_get_dh_params( cred, session); + mpis = _gnutls_get_dh_params( dh_params); if (mpis == NULL) { gnutls_assert(); return GNUTLS_E_NO_TEMPORARY_DH_PARAMS; @@ -237,6 +239,7 @@ const gnutls_certificate_credentials cred; int ret; GNUTLS_MPI p, g; const GNUTLS_MPI *mpis; +gnutls_dh_params dh_params; bits = _gnutls_dh_get_prime_bits( session); @@ -246,7 +249,8 @@ const GNUTLS_MPI *mpis; return GNUTLS_E_INSUFFICIENT_CREDENTIALS; } - mpis = _gnutls_get_dh_params( cred->dh_params); + dh_params = _gnutls_certificate_get_dh_params( cred, session); + mpis = _gnutls_get_dh_params( dh_params); if (mpis == NULL) { gnutls_assert(); return GNUTLS_E_NO_TEMPORARY_DH_PARAMS; |