apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject cvs commit: apr/misc/win32 rand.c
Date Sun, 30 Dec 2001 19:50:47 GMT
wrowe       01/12/30 11:50:47

  Modified:    misc/win32 rand.c
  Log:
    Seems this symbol is simply too new, use it's hardcode value.
  
  Revision  Changes    Path
  1.12      +3 -1      apr/misc/win32/rand.c
  
  Index: rand.c
  ===================================================================
  RCS file: /home/cvs/apr/misc/win32/rand.c,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- rand.c	29 Dec 2001 03:33:49 -0000	1.11
  +++ rand.c	30 Dec 2001 19:50:46 -0000	1.12
  @@ -62,8 +62,10 @@
       HCRYPTPROV hProv;
       apr_status_t res = APR_SUCCESS;
   
  +    /* 0x40 bit = CRYPT_SILENT, only introduced in more recent PSDKs 
  +     */
       if (!CryptAcquireContext(&hProv, NULL, NULL, PROV_RSA_FULL,
  -                             CRYPT_VERIFYCONTEXT | CRYPT_SILENT)) {
  +                             CRYPT_VERIFYCONTEXT | 0x40)) {
   	return apr_get_os_error();
       }
       if (!CryptGenRandom(hProv, length, buf)) {
  
  
  

Mime
View raw message