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
a4f8d28d
Commit
a4f8d28d
authored
Nov 25, 2022
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bcrypt: Use the Unix call helpers.
parent
496f7c61
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
9 deletions
+6
-9
bcrypt_main.c
dlls/bcrypt/bcrypt_main.c
+6
-9
No files found.
dlls/bcrypt/bcrypt_main.c
View file @
a4f8d28d
...
...
@@ -34,9 +34,7 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
bcrypt
);
static
unixlib_handle_t
bcrypt_handle
;
#define UNIX_CALL( func, params ) __wine_unix_call( bcrypt_handle, unix_ ## func, params )
#define UNIX_CALL( func, params ) WINE_UNIX_CALL( unix_ ## func, params )
NTSTATUS
WINAPI
BCryptAddContextFunction
(
ULONG
table
,
const
WCHAR
*
ctx
,
ULONG
iface
,
const
WCHAR
*
func
,
ULONG
pos
)
...
...
@@ -1107,7 +1105,7 @@ static NTSTATUS key_asymmetric_create( enum alg_id alg_id, ULONG bitlen, struct
{
struct
key
*
key
;
if
(
!
bcrypt
_handle
)
if
(
!
__wine_unixlib
_handle
)
{
ERR
(
"no encryption support
\n
"
);
return
STATUS_NOT_IMPLEMENTED
;
...
...
@@ -1786,7 +1784,7 @@ NTSTATUS WINAPI BCryptGenerateSymmetricKey( BCRYPT_ALG_HANDLE handle, BCRYPT_KEY
TRACE
(
"%p, %p, %p, %lu, %p, %lu, %#lx
\n
"
,
handle
,
ret_handle
,
object
,
object_len
,
secret
,
secret_len
,
flags
);
if
(
object
)
FIXME
(
"ignoring object buffer
\n
"
);
if
(
!
bcrypt
_handle
)
if
(
!
__wine_unixlib
_handle
)
{
ERR
(
"no encryption support
\n
"
);
return
STATUS_NOT_IMPLEMENTED
;
...
...
@@ -2342,15 +2340,14 @@ BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved )
{
case
DLL_PROCESS_ATTACH
:
DisableThreadLibraryCalls
(
hinst
);
if
(
!
NtQueryVirtualMemory
(
GetCurrentProcess
(),
hinst
,
MemoryWineUnixFuncs
,
&
bcrypt_handle
,
sizeof
(
bcrypt_handle
),
NULL
))
if
(
!
__wine_init_unix_call
())
{
if
(
UNIX_CALL
(
process_attach
,
NULL
))
bcrypt
_handle
=
0
;
if
(
UNIX_CALL
(
process_attach
,
NULL
))
__wine_unixlib
_handle
=
0
;
}
break
;
case
DLL_PROCESS_DETACH
:
if
(
reserved
)
break
;
if
(
bcrypt
_handle
)
UNIX_CALL
(
process_detach
,
NULL
);
if
(
__wine_unixlib
_handle
)
UNIX_CALL
(
process_detach
,
NULL
);
break
;
}
return
TRUE
;
...
...
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