summaryrefslogtreecommitdiff
path: root/lib/vtls/schannel.h
diff options
context:
space:
mode:
authorViktor Szakats <commit@vsz.me>2022-06-22 09:35:46 +0000
committerViktor Szakats <commit@vsz.me>2022-06-22 09:35:46 +0000
commit70adb81c6f131c1c0c06e674757bebb20a0639a7 (patch)
tree90b9cd9903d6a1a54f2da38c474f9c4744924dc5 /lib/vtls/schannel.h
parent79f915e8ec53fb4f8dde981be1e432bd6ac6c875 (diff)
downloadcurl-70adb81c6f131c1c0c06e674757bebb20a0639a7.tar.gz
rand: stop detecting /dev/urandom in cross-builds
- Prevent CMake to auto-detect /dev/urandom when cross-building. Before this patch, it would detect it in a cross-build scenario on *nix hosts with this device present. This was a problem for example with Windows builds, but it could affect any target system with this device missing. This also syncs detection behaviour with autotools, which also skips it for cross-builds. - Also, make sure to never use the file RANDOM_FILE as entropy for libcurl's fallback random number generator on Windows. Windows does not have the concept of reading a random stream from a filename, nor any guaranteed non-world-writable path on disk. With this, a manual misconfiguration or an overeager auto-detection can no longer result in a user-controllable seed source. Reviewed-by: Daniel Stenberg Closes #9038
Diffstat (limited to 'lib/vtls/schannel.h')
0 files changed, 0 insertions, 0 deletions