[vlc-commits] Win32: Use CRYPT_VERIFYCONTEXT for vlc_rand_bytes

Jean-Baptiste Kempf git at videolan.org
Sun Jan 29 19:15:14 CET 2012


vlc/vlc-2.0 | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sun Jan 29 19:14:42 2012 +0100| [709c63dda84a2db4f537d7d83ce986501a04044d] | committer: 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: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.0.git/?a=commit;h=709c63dda84a2db4f537d7d83ce986501a04044d
---

 src/misc/rand.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/misc/rand.c b/src/misc/rand.c
index 3b84de6..ec78ebe 100644
--- a/src/misc/rand.c
+++ b/src/misc/rand.c
@@ -154,7 +154,7 @@ void vlc_rand_bytes (void *buf, size_t len)
         NULL,              // Use default key container.
         MS_DEF_PROV,       // Use default CSP.
         PROV_RSA_FULL,     // Type of provider to acquire.
-        0) )
+        CRYPT_VERIFYCONTEXT) ) // Flag values
     {
         /* fill buffer with pseudo-random data, intial buffer content
            is used as auxillary random seed */



More information about the vlc-commits mailing list