summaryrefslogtreecommitdiff
path: root/lib/ext
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2011-12-12 02:18:59 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2011-12-12 02:56:01 +0100
commitbd617810e4338294aa0c6b74da81274bae045f10 (patch)
treed938f496564dd1e2f20dc426a9128b74e4c9d8e9 /lib/ext
parent09ec28b2d701d7b27a1a2171988b98ff08690257 (diff)
downloadgnutls-bd617810e4338294aa0c6b74da81274bae045f10.tar.gz
Optimizations in DH parameter generation.
The larger prime is find first and the big loop needs to find a smaller prime, increasing performance. The _gnutls_rnd() function is now inline and GNUTLS_RND_NONCE doesn't update random generator state.
Diffstat (limited to 'lib/ext')
-rw-r--r--lib/ext/session_ticket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ext/session_ticket.c b/lib/ext/session_ticket.c
index 51b21caf2b..8da06361ce 100644
--- a/lib/ext/session_ticket.c
+++ b/lib/ext/session_ticket.c
@@ -555,7 +555,7 @@ gnutls_session_ticket_enable_server (gnutls_session_t session,
}
epriv.ptr = priv;
- ret = gnutls_rnd (GNUTLS_RND_NONCE, priv->session_ticket_IV, IV_SIZE);
+ ret = _gnutls_rnd (GNUTLS_RND_NONCE, priv->session_ticket_IV, IV_SIZE);
if (ret < 0)
{
gnutls_assert ();