From: Nikos Mavrogiannopoulos Date: Mon, 27 Feb 2017 10:51:18 +0000 (+0100) Subject: nettle/pk: corrected call to gnutls_rnd() for rnd_nonce_func X-Git-Tag: gnutls_3_6_0~883 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d1cbce8c3b1f3d359a04c0ef9db7eadaef3b90dd;p=thirdparty%2Fgnutls.git nettle/pk: corrected call to gnutls_rnd() for rnd_nonce_func Signed-off-by: Nikos Mavrogiannopoulos --- diff --git a/lib/nettle/pk.c b/lib/nettle/pk.c index 6b0dbd5f1d..e75b51f683 100644 --- a/lib/nettle/pk.c +++ b/lib/nettle/pk.c @@ -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); } }