Commit bf36bb29 authored by Kaarlo Raiha's avatar Kaarlo Raiha Committed by Jean-Baptiste Kempf

Win32: Use CRYPT_VERIFYCONTEXT for vlc_rand_bytes

Since we don't require access to persisted private keys
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 5b7b3255
...@@ -52,11 +52,11 @@ void vlc_rand_bytes (void *buf, size_t len) ...@@ -52,11 +52,11 @@ void vlc_rand_bytes (void *buf, size_t len)
/* acquire default encryption context */ /* acquire default encryption context */
if( CryptAcquireContext( if( CryptAcquireContext(
&hProv, // Variable to hold returned handle. &hProv, // Variable to hold returned handle.
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