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
76bc8d01
Commit
76bc8d01
authored
Dec 13, 2017
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Dec 14, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bcrypt: Add some crypto-provider related stubs.
Signed-off-by:
Dmitry Timoshkov
<
dmitry@baikal.ru
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e5e556bf
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
71 additions
and
12 deletions
+71
-12
bcrypt.spec
dlls/bcrypt/bcrypt.spec
+6
-6
bcrypt_main.c
dlls/bcrypt/bcrypt_main.c
+36
-0
ncrypt.spec
dlls/ncrypt/ncrypt.spec
+6
-6
bcrypt.h
include/bcrypt.h
+23
-0
No files found.
dlls/bcrypt/bcrypt.spec
View file @
76bc8d01
@ st
ub BCryptAddContextFunction
@ st
dcall BCryptAddContextFunction(long wstr long wstr long)
@ st
ub BCryptAddContextFunctionProvider
@ st
dcall BCryptAddContextFunctionProvider(long wstr long wstr wstr long)
@ stdcall BCryptCloseAlgorithmProvider(ptr long)
@ stdcall BCryptCloseAlgorithmProvider(ptr long)
@ stub BCryptConfigureContext
@ stub BCryptConfigureContext
@ stub BCryptConfigureContextFunction
@ stub BCryptConfigureContextFunction
...
@@ -39,9 +39,9 @@
...
@@ -39,9 +39,9 @@
@ stub BCryptQueryContextFunctionProperty
@ stub BCryptQueryContextFunctionProperty
@ stub BCryptQueryProviderRegistration
@ stub BCryptQueryProviderRegistration
@ stub BCryptRegisterConfigChangeNotify
@ stub BCryptRegisterConfigChangeNotify
@ st
ub BCryptRegisterProvider
@ st
dcall BCryptRegisterProvider(wstr long ptr)
@ st
ub BCryptRemoveContextFunction
@ st
dcall BCryptRemoveContextFunction(long wstr long wstr)
@ st
ub BCryptRemoveContextFunctionProvider
@ st
dcall BCryptRemoveContextFunctionProvider(long wstr long wstr wstr)
@ stub BCryptResolveProviders
@ stub BCryptResolveProviders
@ stub BCryptSecretAgreement
@ stub BCryptSecretAgreement
@ stub BCryptSetAuditingInterface
@ stub BCryptSetAuditingInterface
...
@@ -49,7 +49,7 @@
...
@@ -49,7 +49,7 @@
@ stdcall BCryptSetProperty(ptr wstr ptr long long)
@ stdcall BCryptSetProperty(ptr wstr ptr long long)
@ stub BCryptSignHash
@ stub BCryptSignHash
@ stub BCryptUnregisterConfigChangeNotify
@ stub BCryptUnregisterConfigChangeNotify
@ st
ub BCryptUnregisterProvider
@ st
dcall BCryptUnregisterProvider(wstr)
@ stub BCryptVerifySignature
@ stub BCryptVerifySignature
@ stub GetAsymmetricEncryptionInterface
@ stub GetAsymmetricEncryptionInterface
@ stub GetCipherInterface
@ stub GetCipherInterface
...
...
dlls/bcrypt/bcrypt_main.c
View file @
76bc8d01
...
@@ -122,6 +122,42 @@ static void gnutls_uninitialize(void)
...
@@ -122,6 +122,42 @@ static void gnutls_uninitialize(void)
}
}
#endif
/* HAVE_GNUTLS_CIPHER_INIT && !HAVE_COMMONCRYPTO_COMMONCRYPTOR_H */
#endif
/* HAVE_GNUTLS_CIPHER_INIT && !HAVE_COMMONCRYPTO_COMMONCRYPTOR_H */
NTSTATUS
WINAPI
BCryptAddContextFunction
(
ULONG
table
,
LPCWSTR
context
,
ULONG
iface
,
LPCWSTR
function
,
ULONG
pos
)
{
FIXME
(
"%08x, %s, %08x, %s, %u: stub
\n
"
,
table
,
debugstr_w
(
context
),
iface
,
debugstr_w
(
function
),
pos
);
return
STATUS_SUCCESS
;
}
NTSTATUS
WINAPI
BCryptAddContextFunctionProvider
(
ULONG
table
,
LPCWSTR
context
,
ULONG
iface
,
LPCWSTR
function
,
LPCWSTR
provider
,
ULONG
pos
)
{
FIXME
(
"%08x, %s, %08x, %s, %s, %u: stub
\n
"
,
table
,
debugstr_w
(
context
),
iface
,
debugstr_w
(
function
),
debugstr_w
(
provider
),
pos
);
return
STATUS_SUCCESS
;
}
NTSTATUS
WINAPI
BCryptRemoveContextFunction
(
ULONG
table
,
LPCWSTR
context
,
ULONG
iface
,
LPCWSTR
function
)
{
FIXME
(
"%08x, %s, %08x, %s: stub
\n
"
,
table
,
debugstr_w
(
context
),
iface
,
debugstr_w
(
function
));
return
STATUS_NOT_IMPLEMENTED
;
}
NTSTATUS
WINAPI
BCryptRemoveContextFunctionProvider
(
ULONG
table
,
LPCWSTR
context
,
ULONG
iface
,
LPCWSTR
function
,
LPCWSTR
provider
)
{
FIXME
(
"%08x, %s, %08x, %s, %s: stub
\n
"
,
table
,
debugstr_w
(
context
),
iface
,
debugstr_w
(
function
),
debugstr_w
(
provider
));
return
STATUS_NOT_IMPLEMENTED
;
}
NTSTATUS
WINAPI
BCryptRegisterProvider
(
LPCWSTR
provider
,
ULONG
flags
,
PCRYPT_PROVIDER_REG
reg
)
{
FIXME
(
"%s, %08x, %p: stub
\n
"
,
debugstr_w
(
provider
),
flags
,
reg
);
return
STATUS_SUCCESS
;
}
NTSTATUS
WINAPI
BCryptUnregisterProvider
(
LPCWSTR
provider
)
{
FIXME
(
"%s: stub
\n
"
,
debugstr_w
(
provider
));
return
STATUS_NOT_IMPLEMENTED
;
}
NTSTATUS
WINAPI
BCryptEnumAlgorithms
(
ULONG
dwAlgOperations
,
ULONG
*
pAlgCount
,
NTSTATUS
WINAPI
BCryptEnumAlgorithms
(
ULONG
dwAlgOperations
,
ULONG
*
pAlgCount
,
BCRYPT_ALGORITHM_IDENTIFIER
**
ppAlgList
,
ULONG
dwFlags
)
BCRYPT_ALGORITHM_IDENTIFIER
**
ppAlgList
,
ULONG
dwFlags
)
{
{
...
...
dlls/ncrypt/ncrypt.spec
View file @
76bc8d01
@ st
ub
BCryptAddContextFunction
@ st
dcall BCryptAddContextFunction(long wstr long wstr long) bcrypt.
BCryptAddContextFunction
@ st
ub
BCryptAddContextFunctionProvider
@ st
dcall BCryptAddContextFunctionProvider(long wstr long wstr wstr long) bcrypt.
BCryptAddContextFunctionProvider
@ stdcall BCryptCloseAlgorithmProvider(ptr long) bcrypt.BCryptCloseAlgorithmProvider
@ stdcall BCryptCloseAlgorithmProvider(ptr long) bcrypt.BCryptCloseAlgorithmProvider
@ stub BCryptConfigureContext
@ stub BCryptConfigureContext
@ stub BCryptConfigureContextFunction
@ stub BCryptConfigureContextFunction
...
@@ -42,9 +42,9 @@
...
@@ -42,9 +42,9 @@
@ stub BCryptQueryContextFunctionProperty
@ stub BCryptQueryContextFunctionProperty
@ stub BCryptQueryProviderRegistration
@ stub BCryptQueryProviderRegistration
@ stub BCryptRegisterConfigChangeNotify
@ stub BCryptRegisterConfigChangeNotify
@ st
ub
BCryptRegisterProvider
@ st
dcall BCryptRegisterProvider(wstr long ptr) bcrypt.
BCryptRegisterProvider
@ st
ub
BCryptRemoveContextFunction
@ st
dcall BCryptRemoveContextFunction(long wstr long wstr) bcrypt.
BCryptRemoveContextFunction
@ st
ub
BCryptRemoveContextFunctionProvider
@ st
dcall BCryptRemoveContextFunctionProvider(long wstr long wstr wstr) bcrypt.
BCryptRemoveContextFunctionProvider
@ stub BCryptResolveProviders
@ stub BCryptResolveProviders
@ stub BCryptSecretAgreement
@ stub BCryptSecretAgreement
@ stub BCryptSetAuditingInterface
@ stub BCryptSetAuditingInterface
...
@@ -52,7 +52,7 @@
...
@@ -52,7 +52,7 @@
@ stdcall BCryptSetProperty(ptr wstr ptr long long) bcrypt.BCryptSetProperty
@ stdcall BCryptSetProperty(ptr wstr ptr long long) bcrypt.BCryptSetProperty
@ stub BCryptSignHash
@ stub BCryptSignHash
@ stub BCryptUnregisterConfigChangeNotify
@ stub BCryptUnregisterConfigChangeNotify
@ st
ub
BCryptUnregisterProvider
@ st
dcall BCryptUnregisterProvider(wstr) bcrypt.
BCryptUnregisterProvider
@ stub BCryptVerifySignature
@ stub BCryptVerifySignature
@ stub GetIsolationServerInterface
@ stub GetIsolationServerInterface
@ stub GetKeyStorageInterface
@ stub GetKeyStorageInterface
...
...
include/bcrypt.h
View file @
76bc8d01
...
@@ -94,6 +94,29 @@ typedef struct __BCRYPT_KEY_LENGTHS_STRUCT
...
@@ -94,6 +94,29 @@ typedef struct __BCRYPT_KEY_LENGTHS_STRUCT
ULONG
dwIncrement
;
ULONG
dwIncrement
;
}
BCRYPT_KEY_LENGTHS_STRUCT
;
}
BCRYPT_KEY_LENGTHS_STRUCT
;
typedef
struct
_CRYPT_INTERFACE_REG
{
ULONG
dwInterface
;
ULONG
dwFlags
;
ULONG
cFunctions
;
PWSTR
*
rgpszFunctions
;
}
CRYPT_INTERFACE_REG
,
*
PCRYPT_INTERFACE_REG
;
typedef
struct
_CRYPT_IMAGE_REG
{
PWSTR
pszImage
;
ULONG
cInterfaces
;
PCRYPT_INTERFACE_REG
*
rgpInterfaces
;
}
CRYPT_IMAGE_REG
,
*
PCRYPT_IMAGE_REG
;
typedef
struct
_CRYPT_PROVIDER_REG
{
ULONG
cAliases
;
PWSTR
*
rgpszAliases
;
PCRYPT_IMAGE_REG
pUM
;
PCRYPT_IMAGE_REG
pKM
;
}
CRYPT_PROVIDER_REG
,
*
PCRYPT_PROVIDER_REG
;
typedef
PVOID
BCRYPT_ALG_HANDLE
;
typedef
PVOID
BCRYPT_ALG_HANDLE
;
typedef
PVOID
BCRYPT_KEY_HANDLE
;
typedef
PVOID
BCRYPT_KEY_HANDLE
;
typedef
PVOID
BCRYPT_HANDLE
;
typedef
PVOID
BCRYPT_HANDLE
;
...
...
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