Commit 709c63dd authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Win32: Use CRYPT_VERIFYCONTEXT for vlc_rand_bytes

Since we don't require access to persisted private keys

Manual cherry-pick of bf36bb2935555aa9b2e36576677fe62b1d2bcd94
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent fce8e21c
...@@ -154,7 +154,7 @@ void vlc_rand_bytes (void *buf, size_t len) ...@@ -154,7 +154,7 @@ void vlc_rand_bytes (void *buf, size_t len)
NULL, // Use default key container. NULL, // Use default key container.
MS_DEF_PROV, // Use default CSP. MS_DEF_PROV, // Use default CSP.
PROV_RSA_FULL, // Type of provider to acquire. PROV_RSA_FULL, // Type of provider to acquire.
0) ) CRYPT_VERIFYCONTEXT) ) // Flag values
{ {
/* fill buffer with pseudo-random data, intial buffer content /* fill buffer with pseudo-random data, intial buffer content
is used as auxillary random seed */ is used as auxillary random seed */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment