RE: [PATCH] Windows port add support to BCryptGenRandom

From: Ranier Vilela <ranier_gyn(at)hotmail(dot)com>
To: "pgsql-hackers(at)lists(dot)postgresql(dot)org" <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: RE: [PATCH] Windows port add support to BCryptGenRandom
Date: 2019-12-17 03:57:56
Message-ID: CO2PR05MB26295E42C2AC7FE9A54F30EAE3500@CO2PR05MB2629.namprd05.prod.outlook.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

De: Michael Paquier
Enviadas: Terça-feira, 17 de Dezembro de 2019 03:43
Para: Ranier Vilela
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org
Assunto: Re: [PATCH] Windows port add support to BCryptGenRandom

>And looking at this page, it is said that the minimum version
>supported by this function is Windows 2008:
>https://docs.microsoft.com/en-us/windows/win32/api/bcrypt/nf-bcrypt-bcryptgenrandom<https://docs.microsoft.com/en-us/windows/win32/api/bcrypt/nf-bcrypt-bcryptgenrandom>

>Now, your changes in MkvcBuild.pm and the backend code assume that
>we need to include bcrypt.lib since MSVC 2015 (at least version
>14.00 or _MSC_VER >= 1900. Do you have a reference about when this
>has been introduced in VS? The MS docs don't seem to hold a hint
>about that..
Sorry Perl I understand a little bit.
Windows Vista I believe.
https://github.com/openssl/openssl/blob/master/crypto/rand/rand_win.c
is the primary font and have more information.

Best regards,
Ranier Vilela
[https://avatars0.githubusercontent.com/u/3279138?s=400&v=4]<https://github.com/openssl/openssl/blob/master/crypto/rand/rand_win.c>
openssl/rand_win.c at master · openssl/openssl · GitHub<https://github.com/openssl/openssl/blob/master/crypto/rand/rand_win.c>
TLS/SSL and crypto library. Contribute to openssl/openssl development by creating an account on GitHub.
github.com

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2019-12-17 04:20:02 Re: reducing memory usage by using "proxy" memory contexts?
Previous Message Michael Paquier 2019-12-17 03:43:42 Re: [PATCH] Windows port add support to BCryptGenRandom