diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-09-24 17:06:10 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-10-02 21:22:33 +0900 |
commit | e0ef4899f3ef2561ae32275c2c3d11914e7343c7 (patch) | |
tree | d8f87e7eccb08b9ebe4a42b0082d1c1cc1a0dcbd /win32 | |
parent | b8327fb8b10615ddb3f5e1978d6d83be465503a9 (diff) |
[Win32] Prefer Cryptography Next Generation API
[BCryptGenRandom] is available since Windows Vista / Windows
Server 2008.
Regarding [CryptGenRandom]:
> This API is deprecated. New and existing software should start
> using Cryptography Next Generation APIs. Microsoft may remove
> this API in future releases.
[BCryptGenRandom]: https://docs.microsoft.com/en-us/windows/win32/api/bcrypt/nf-bcrypt-bcryptgenrandom
[CryptGenRandom]: https://docs.microsoft.com/en-us/windows/win32/api/wincrypt/nf-wincrypt-cryptgenrandom
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/4924
Diffstat (limited to 'win32')
-rw-r--r-- | win32/Makefile.sub | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/Makefile.sub b/win32/Makefile.sub index a610577603..2aef63985b 100644 --- a/win32/Makefile.sub +++ b/win32/Makefile.sub @@ -277,7 +277,7 @@ LIBS = user32.lib advapi32.lib shell32.lib ws2_32.lib !if $(MSC_VER) >= 1400 LIBS = $(LIBS) iphlpapi.lib !endif -LIBS = $(LIBS) imagehlp.lib shlwapi.lib $(EXTLIBS) +LIBS = $(LIBS) imagehlp.lib shlwapi.lib bcrypt.lib $(EXTLIBS) !endif !if !defined(MISSING) MISSING = crypt.obj ffs.obj langinfo.obj lgamma_r.obj strlcat.obj strlcpy.obj win32/win32.obj win32/file.obj setproctitle.obj |