vlc | branch: master | Kaarlo Raiha <[email protected]> | Sun Jan 29 19:24:30 2012 +0200| [bf36bb2935555aa9b2e36576677fe62b1d2bcd94] | committer: Jean-Baptiste Kempf
Win32: Use CRYPT_VERIFYCONTEXT for vlc_rand_bytes Since we don't require access to persisted private keys Signed-off-by: Jean-Baptiste Kempf <[email protected]> > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=bf36bb2935555aa9b2e36576677fe62b1d2bcd94 --- src/win32/rand.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/win32/rand.c b/src/win32/rand.c index aff6012..49c8d5e 100644 --- a/src/win32/rand.c +++ b/src/win32/rand.c @@ -52,11 +52,11 @@ void vlc_rand_bytes (void *buf, size_t len) /* acquire default encryption context */ if( CryptAcquireContext( - &hProv, // Variable to hold returned handle. - NULL, // Use default key container. - MS_DEF_PROV, // Use default CSP. - PROV_RSA_FULL, // Type of provider to acquire. - 0) ) + &hProv, // Variable to hold returned handle. + NULL, // Use default key container. + MS_DEF_PROV, // Use default CSP. + PROV_RSA_FULL, // Type of provider to acquire. + CRYPT_VERIFYCONTEXT) ) // Flag values { /* fill buffer with pseudo-random data, intial buffer content is used as auxillary random seed */ _______________________________________________ vlc-commits mailing list [email protected] http://mailman.videolan.org/listinfo/vlc-commits
