Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
5e0acc09
Commit
5e0acc09
authored
Sep 19, 2022
by
Nikolay Sivov
Committed by
Alexandre Julliard
Sep 20, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cryptowinrt: Implement GenerateRandomNumber().
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
parent
09cb9cd1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
Makefile.in
dlls/cryptowinrt/Makefile.in
+1
-1
main.c
dlls/cryptowinrt/main.c
+5
-2
No files found.
dlls/cryptowinrt/Makefile.in
View file @
5e0acc09
MODULE
=
cryptowinrt.dll
MODULE
=
cryptowinrt.dll
IMPORTS
=
combase uuid
IMPORTS
=
combase
bcrypt
uuid
C_SRCS
=
\
C_SRCS
=
\
main.c
main.c
...
...
dlls/cryptowinrt/main.c
View file @
5e0acc09
...
@@ -29,6 +29,8 @@
...
@@ -29,6 +29,8 @@
#include "initguid.h"
#include "initguid.h"
#include "activation.h"
#include "activation.h"
#include "bcrypt.h"
#define WIDL_using_Windows_Foundation
#define WIDL_using_Windows_Foundation
#define WIDL_using_Windows_Foundation_Collections
#define WIDL_using_Windows_Foundation_Collections
#include "windows.foundation.h"
#include "windows.foundation.h"
...
@@ -214,9 +216,10 @@ static HRESULT STDMETHODCALLTYPE cryptobuffer_statics_GenerateRandom(
...
@@ -214,9 +216,10 @@ static HRESULT STDMETHODCALLTYPE cryptobuffer_statics_GenerateRandom(
static
HRESULT
STDMETHODCALLTYPE
cryptobuffer_statics_GenerateRandomNumber
(
static
HRESULT
STDMETHODCALLTYPE
cryptobuffer_statics_GenerateRandomNumber
(
ICryptographicBufferStatics
*
iface
,
UINT32
*
value
)
ICryptographicBufferStatics
*
iface
,
UINT32
*
value
)
{
{
FIXME
(
"iface %p, value %p stub!
\n
"
,
iface
,
value
);
TRACE
(
"iface %p, value %p.
\n
"
,
iface
,
value
);
return
E_NOTIMPL
;
BCryptGenRandom
(
NULL
,
(
UCHAR
*
)
value
,
sizeof
(
*
value
),
BCRYPT_USE_SYSTEM_PREFERRED_RNG
);
return
S_OK
;
}
}
static
HRESULT
STDMETHODCALLTYPE
cryptobuffer_statics_CreateFromByteArray
(
static
HRESULT
STDMETHODCALLTYPE
cryptobuffer_statics_CreateFromByteArray
(
...
...
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