apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roy T. Fielding" <field...@ebuilt.com>
Subject Re: cvs commit: apr/misc/win32 rand.c
Date Mon, 31 Dec 2001 22:16:39 GMT
On Sun, Dec 30, 2001 at 07:50:47PM -0000, wrowe@apache.org wrote:
>   --- 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)) {

Eh?  Why didn't you do

#ifndef CRYPT_SILENT
#define CRYPT_SILENT 0x40
#endif

....Roy


Mime
View raw message