Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
7ac092d0
Commit
7ac092d0
authored
Sep 26, 2017
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build: CryptGenRandom --> wincrypt, it is a better name
parent
93797681
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
configure
configure
+1
-1
random_seed.c
libavutil/random_seed.c
+2
-2
No files found.
configure
View file @
7ac092d0
...
@@ -1611,7 +1611,6 @@ SYSTEM_FUNCS="
...
@@ -1611,7 +1611,6 @@ SYSTEM_FUNCS="
clock_gettime
clock_gettime
closesocket
closesocket
CommandLineToArgvW
CommandLineToArgvW
CryptGenRandom
fcntl
fcntl
getaddrinfo
getaddrinfo
gethrtime
gethrtime
...
@@ -1706,6 +1705,7 @@ HAVE_LIST="
...
@@ -1706,6 +1705,7 @@ HAVE_LIST="
vaapi_drm
vaapi_drm
vaapi_x11
vaapi_x11
vdpau_x11
vdpau_x11
wincrypt
"
"
# options emitted with CONFIG_ prefix but not available on the command line
# options emitted with CONFIG_ prefix but not available on the command line
...
...
libavutil/random_seed.c
View file @
7ac092d0
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
#if HAVE_UNISTD_H
#if HAVE_UNISTD_H
#include <unistd.h>
#include <unistd.h>
#endif
#endif
#if HAVE_
CRYPTGENRANDOM
#if HAVE_
WINCRYPT
#include <windows.h>
#include <windows.h>
#include <wincrypt.h>
#include <wincrypt.h>
#endif
#endif
...
@@ -96,7 +96,7 @@ uint32_t av_get_random_seed(void)
...
@@ -96,7 +96,7 @@ uint32_t av_get_random_seed(void)
{
{
uint32_t
seed
;
uint32_t
seed
;
#if HAVE_
CRYPTGENRANDOM
#if HAVE_
WINCRYPT
HCRYPTPROV
provider
;
HCRYPTPROV
provider
;
if
(
CryptAcquireContext
(
&
provider
,
NULL
,
NULL
,
PROV_RSA_FULL
,
if
(
CryptAcquireContext
(
&
provider
,
NULL
,
NULL
,
PROV_RSA_FULL
,
CRYPT_VERIFYCONTEXT
|
CRYPT_SILENT
))
{
CRYPT_VERIFYCONTEXT
|
CRYPT_SILENT
))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment