]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
nettle/pk: corrected call to gnutls_rnd() for rnd_nonce_func
authorNikos Mavrogiannopoulos <nmav@redhat.com>
Mon, 27 Feb 2017 10:51:18 +0000 (11:51 +0100)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Mon, 6 Mar 2017 21:24:33 +0000 (22:24 +0100)
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
lib/nettle/pk.c

index 6b0dbd5f1df2a8582235ef8d164e2c9cdf69b4f5..e75b51f68384204254db0d47b37d64dc6316b8a6 100644 (file)
@@ -73,7 +73,7 @@ static void rnd_tmpkey_func(void *_ctx, size_t length, uint8_t * data)
 
 static void rnd_nonce_func(void *_ctx, size_t length, uint8_t * data)
 {
-       if (gnutls_rnd(GNUTLS_RND_RANDOM, data, length) < 0) {
+       if (gnutls_rnd(GNUTLS_RND_NONCE, data, length) < 0) {
                _gnutls_switch_lib_state(LIB_STATE_ERROR);
        }
 }