diff options
Diffstat (limited to 'lib/auth/rsa.c')
-rw-r--r-- | lib/auth/rsa.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/auth/rsa.c b/lib/auth/rsa.c index 505fbee1dd..b54d415f6f 100644 --- a/lib/auth/rsa.c +++ b/lib/auth/rsa.c @@ -178,7 +178,7 @@ proc_rsa_client_kx(gnutls_session_t session, uint8_t * data, /* we do not need strong random numbers here. */ - ret = _gnutls_rnd(GNUTLS_RND_NONCE, rndkey.data, + ret = gnutls_rnd(GNUTLS_RND_NONCE, rndkey.data, rndkey.size); if (ret < 0) { gnutls_assert(); @@ -265,7 +265,7 @@ _gnutls_gen_rsa_client_kx(gnutls_session_t session, return GNUTLS_E_MEMORY_ERROR; } - ret = _gnutls_rnd(GNUTLS_RND_RANDOM, session->key.key.data, + ret = gnutls_rnd(GNUTLS_RND_RANDOM, session->key.key.data, session->key.key.size); if (ret < 0) { gnutls_assert(); |