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
d11e30e4
Commit
d11e30e4
authored
Mar 12, 2008
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 12, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
secur32: Fixed dynamic loading in schannel test.
parent
e0693a18
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
schannel.c
dlls/secur32/tests/schannel.c
+8
-5
No files found.
dlls/secur32/tests/schannel.c
View file @
d11e30e4
...
...
@@ -28,14 +28,15 @@
#include "wine/test.h"
static
HMODULE
secdll
,
crypt32dll
;
static
SECURITY_STATUS
(
SEC_ENTRY
*
pAcquireCredentialsHandleA
)(
SEC_CHAR
*
,
SEC_CHAR
*
,
ULONG
,
PLUID
,
PVOID
,
SEC_GET_KEY_FN
,
PVOID
,
PCredHandle
,
PTimeStamp
);
static
ACQUIRE_CREDENTIALS_HANDLE_FN_A
pAcquireCredentialsHandleA
;
static
FREE_CREDENTIALS_HANDLE_FN
pFreeCredentialsHandle
;
static
PCCERT_CONTEXT
(
WINAPI
*
pCertCreateCertificateContext
)(
DWORD
,
const
BYTE
*
,
DWORD
);
static
BOOL
(
WINAPI
*
pCertFreeCertificateContext
)(
PCCERT_CONTEXT
);
static
BOOL
(
WINAPI
*
pCertSetCertificateContextProperty
)(
PCCERT_CONTEXT
,
DWORD
,
DWORD
,
const
void
*
);
static
SECURITY_STATUS
(
SEC_ENTRY
*
pFreeCredentialsHandle
)(
PCredHandle
);
static
BOOL
(
WINAPI
*
pCryptAcquireContextW
)(
HCRYPTPROV
*
,
LPCWSTR
,
LPCWSTR
,
DWORD
,
DWORD
);
static
BOOL
(
WINAPI
*
pCryptAcquireContextW
)(
HCRYPTPROV
*
,
LPCWSTR
,
LPCWSTR
,
DWORD
,
DWORD
);
static
BOOL
(
WINAPI
*
pCryptDestroyKey
)(
HCRYPTKEY
);
static
BOOL
(
WINAPI
*
pCryptImportKey
)(
HCRYPTPROV
,
CONST
BYTE
*
,
DWORD
,
HCRYPTKEY
,
DWORD
,
HCRYPTKEY
*
);
static
BOOL
(
WINAPI
*
pCryptReleaseContext
)(
HCRYPTPROV
,
ULONG_PTR
);
...
...
@@ -105,12 +106,13 @@ static const BYTE selfSignedCert[] = {
static
void
InitFunctionPtrs
(
void
)
{
HMODULE
advapi32dll
=
GetModuleHandleA
(
"advapi32.dll"
)
;
HMODULE
advapi32dll
;
crypt32dll
=
LoadLibraryA
(
"crypt32.dll"
);
secdll
=
LoadLibraryA
(
"secur32.dll"
);
if
(
!
secdll
)
secdll
=
LoadLibraryA
(
"security.dll"
);
advapi32dll
=
GetModuleHandleA
(
"advapi32.dll"
);
#define GET_PROC(h, func) p ## func = (void*)GetProcAddress(h, #func)
...
...
@@ -127,6 +129,7 @@ static void InitFunctionPtrs(void)
GET_PROC
(
crypt32dll
,
CertFreeCertificateContext
);
GET_PROC
(
crypt32dll
,
CertSetCertificateContextProperty
);
GET_PROC
(
crypt32dll
,
CertCreateCertificateContext
);
#undef GET_PROC
}
...
...
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