diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2020-06-27 13:02:24 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2020-06-27 13:03:49 -0700 |
commit | 5ce5cf643840cd6efd25d987bc5b6f12478c50a6 (patch) | |
tree | 48a0f14e8162ee889475f54a21227356885cd330 /lisp/emacs-lisp/timer-list.el | |
parent | 118c07e02e939c9f52688091509d4bff2a897032 (diff) | |
download | emacs-5ce5cf643840cd6efd25d987bc5b6f12478c50a6.tar.gz emacs-5ce5cf643840cd6efd25d987bc5b6f12478c50a6.tar.bz2 emacs-5ce5cf643840cd6efd25d987bc5b6f12478c50a6.zip |
Use getrandom syscall for nonces
* admin/merge-gnulib (GNULIB_MODULES): Add getrandom.
* doc/lispref/text.texi (Format of GnuTLS Cryptography Inputs):
Don’t say that iv-auto uses GNUTLS_RND_NONCE. Also, don’t say
that it returns the IV’s actual value, as it never has done that.
* src/fns.c, src/sysdep.c: Include sys/random.h, for getrandom.
* src/fns.c (Fsecure_hash_algorithms): Use getrandom so that this
function does not depend on HAVE_GNUTLS3.
* src/sysdep.c: Do not include <gnutls/crypto.h>.
(random_seed) [HAVE_LRAND48]: Can be long int now.
(init_random) [!WINDOWSNT]: Use getrandom syscall instead
of opening /dev/urandom, as this works even on GNU/Linux
hosts that lack /dev/urandom. Don’t bother with gnutls_rnd
as it’s not needed now that we have getrandom.
Diffstat (limited to 'lisp/emacs-lisp/timer-list.el')
0 files changed, 0 insertions, 0 deletions