Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
52aca431
Commit
52aca431
authored
Feb 03, 2014
by
Bruno Jesus
Committed by
Alexandre Julliard
Feb 05, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bcrypt: Add BCryptGenRandom stub.
parent
97505a74
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
4 deletions
+20
-4
bcrypt.spec
dlls/bcrypt/bcrypt.spec
+1
-1
bcrypt_main.c
dlls/bcrypt/bcrypt_main.c
+14
-3
bcrypt.h
include/bcrypt.h
+5
-0
No files found.
dlls/bcrypt/bcrypt.spec
View file @
52aca431
...
...
@@ -24,7 +24,7 @@
@ stub BCryptFinalizeKeyPair
@ stub BCryptFinishHash
@ stub BCryptFreeBuffer
@ st
ub BCryptGenRandom
@ st
dcall BCryptGenRandom(ptr ptr long long)
@ stub BCryptGenerateKeyPair
@ stub BCryptGenerateSymmetricKey
@ stub BCryptGetFipsAlgorithmMode
...
...
dlls/bcrypt/bcrypt_main.c
View file @
52aca431
...
...
@@ -18,11 +18,15 @@
*/
#include "config.h"
#include "wine/port.h"
#include "wine/debug.h"
#include <stdarg.h>
#include "ntstatus.h"
#define WIN32_NO_STATUS
#include "windef.h"
#include "winbase.h"
#include "bcrypt.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
bcrypt
);
...
...
@@ -48,5 +52,12 @@ NTSTATUS WINAPI BCryptEnumAlgorithms(ULONG dwAlgOperations, ULONG *pAlgCount,
*
ppAlgList
=
NULL
;
*
pAlgCount
=
0
;
return
ERROR_CALL_NOT_IMPLEMENTED
;
return
STATUS_NOT_IMPLEMENTED
;
}
NTSTATUS
WINAPI
BCryptGenRandom
(
BCRYPT_ALG_HANDLE
algorithm
,
UCHAR
*
buffer
,
ULONG
count
,
ULONG
flags
)
{
FIXME
(
"%p, %p, %u, %08x - stub
\n
"
,
algorithm
,
buffer
,
count
,
flags
);
return
STATUS_NOT_IMPLEMENTED
;
}
include/bcrypt.h
View file @
52aca431
...
...
@@ -47,4 +47,9 @@ typedef struct _BCRYPT_ALGORITHM_IDENTIFIER
ULONG
dwFlags
;
}
BCRYPT_ALGORITHM_IDENTIFIER
;
typedef
PVOID
BCRYPT_ALG_HANDLE
;
#define BCRYPT_RNG_USE_ENTROPY_IN_BUFFER 0x00000001
#define BCRYPT_USE_SYSTEM_PREFERRED_RNG 0x00000002
#endif
/* __WINE_BCRYPT_H */
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