Re: [FFmpeg-devel] [PATCH] use bcrypt instead of the old wincrypt API

2018-04-14 Thread Michael Niedermayer
On Sat, Apr 14, 2018 at 07:10:40PM -0300, James Almer wrote: > On 4/3/2018 8:49 PM, Michael Niedermayer wrote: > > On Tue, Apr 03, 2018 at 11:44:25AM +0200, Steve Lhomme wrote: > >> Remove the wincrypt API calls since we don't support XP anymore and bcrypt > >> is > >> available since Vista, even

Re: [FFmpeg-devel] [PATCH] use bcrypt instead of the old wincrypt API

2018-04-14 Thread James Almer
On 4/3/2018 8:49 PM, Michael Niedermayer wrote: > On Tue, Apr 03, 2018 at 11:44:25AM +0200, Steve Lhomme wrote: >> Remove the wincrypt API calls since we don't support XP anymore and bcrypt is >> available since Vista, even on Windows Store builds. >> --- >> configure | 6 +++--- >>

Re: [FFmpeg-devel] [PATCH] use bcrypt instead of the old wincrypt API

2018-04-03 Thread Michael Niedermayer
On Tue, Apr 03, 2018 at 11:44:25AM +0200, Steve Lhomme wrote: > Remove the wincrypt API calls since we don't support XP anymore and bcrypt is > available since Vista, even on Windows Store builds. > --- > configure | 6 +++--- > libavutil/random_seed.c | 19 ++- > 2

[FFmpeg-devel] [PATCH] use bcrypt instead of the old wincrypt API

2018-04-03 Thread Steve Lhomme
Remove the wincrypt API calls since we don't support XP anymore and bcrypt is available since Vista, even on Windows Store builds. --- configure | 6 +++--- libavutil/random_seed.c | 19 ++- 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/configure

Re: [FFmpeg-devel] [PATCH] use bcrypt instead of the old wincrypt API

2018-04-03 Thread Steve Lhomme
Le 01/04/2018 à 03:37, Michael Niedermayer a écrit : On Fri, Mar 30, 2018 at 02:44:52PM +0200, Steve Lhomme wrote: Remove the wincrypt API calls since we don't support XP anymore and bcrypt is available since Vista, even on Windows Store builds. --- configure | 6 +++---

Re: [FFmpeg-devel] [PATCH] use bcrypt instead of the old wincrypt API

2018-04-03 Thread Steve Lhomme
Le 31/03/2018 à 16:46, Derek Buitenhuis a écrit : On 3/30/2018 1:44 PM, Steve Lhomme wrote: +if (BCRYPT_SUCCESS(ret)) { +NTSTATUS ret = BCryptGenRandom(algo_handle, , sizeof(seed), 0); +BCryptCloseAlgorithmProvider(algo_handle, 0); +if (BCRYPT_SUCCESS(ret))

Re: [FFmpeg-devel] [PATCH] use bcrypt instead of the old wincrypt API

2018-03-31 Thread Michael Niedermayer
On Fri, Mar 30, 2018 at 02:44:52PM +0200, Steve Lhomme wrote: > Remove the wincrypt API calls since we don't support XP anymore and bcrypt is > available since Vista, even on Windows Store builds. > --- > configure | 6 +++--- > libavutil/random_seed.c | 20 ++-- >

Re: [FFmpeg-devel] [PATCH] use bcrypt instead of the old wincrypt API

2018-03-31 Thread Derek Buitenhuis
On 3/30/2018 1:44 PM, Steve Lhomme wrote: > +if (BCRYPT_SUCCESS(ret)) { > +NTSTATUS ret = BCryptGenRandom(algo_handle, , sizeof(seed), 0); > +BCryptCloseAlgorithmProvider(algo_handle, 0); > +if (BCRYPT_SUCCESS(ret)) > return seed; > } How does this

[FFmpeg-devel] [PATCH] use bcrypt instead of the old wincrypt API

2018-03-30 Thread Steve Lhomme
Remove the wincrypt API calls since we don't support XP anymore and bcrypt is available since Vista, even on Windows Store builds. --- configure | 6 +++--- libavutil/random_seed.c | 20 ++-- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/configure

Re: [FFmpeg-devel] [PATCH] use bcrypt instead of the old wincrypt API

2018-03-30 Thread Hendrik Leppkes
On Fri, Mar 30, 2018 at 9:23 AM, Steve Lhomme wrote: > When targeting Windows Vista and above > The wincrypt API is deprecated and not allowed for Windows Store apps. > --- > configure | 4 +++- > libavutil/random_seed.c | 16 ++-- > 2 files changed,

[FFmpeg-devel] [PATCH] use bcrypt instead of the old wincrypt API

2018-03-30 Thread Steve Lhomme
When targeting Windows Vista and above The wincrypt API is deprecated and not allowed for Windows Store apps. --- configure | 4 +++- libavutil/random_seed.c | 16 ++-- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/configure b/configure index