Home GnuPG

random: Fix rndjent for Windows.

Description

random: Fix rndjent for Windows.

* random/jitterentropy-base-user.h [HAVE_W32_SYSTEM] (jent_ncpu):
Implement.
* random/rndjent.c (_WIN32_WINNT): Define for GetNativeSystemInfo.
(EOPNOTSUPP): Define when not available.

Cherry-picked from master commit of:
5dc97e855bb27705a548a297b666b7be7b1c59a3

  • Reported-by: Eli Zaretskii
  • GnuPG-bug-id: T5891
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>