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
94e38a61
Commit
94e38a61
authored
Oct 04, 2019
by
Joseph Kogut
Committed by
Alexandre Julliard
Oct 07, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ncrypt: Add NCryptImportKey stub.
Signed-off-by:
Joseph Kogut
<
joseph.kogut@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
9ea80d88
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
1 deletion
+23
-1
main.c
dlls/ncrypt/main.c
+10
-0
ncrypt.spec
dlls/ncrypt/ncrypt.spec
+1
-1
ncrypt.h
include/ncrypt.h
+12
-0
No files found.
dlls/ncrypt/main.c
View file @
94e38a61
...
...
@@ -109,6 +109,16 @@ SECURITY_STATUS WINAPI NCryptGetProperty(NCRYPT_HANDLE object, const WCHAR *prop
return
NTE_NOT_SUPPORTED
;
}
SECURITY_STATUS
WINAPI
NCryptImportKey
(
NCRYPT_PROV_HANDLE
provider
,
NCRYPT_KEY_HANDLE
decrypt_key
,
const
WCHAR
*
type
,
NCryptBufferDesc
*
params
,
NCRYPT_KEY_HANDLE
*
key
,
PBYTE
data
,
DWORD
datasize
,
DWORD
flags
)
{
FIXME
(
"(0x%lx, 0x%lx, %s, %p, %p, %p, %u, 0x%08x): stub
\n
"
,
provider
,
decrypt_key
,
wine_dbgstr_w
(
type
),
params
,
key
,
data
,
datasize
,
flags
);
return
NTE_NOT_SUPPORTED
;
}
SECURITY_STATUS
WINAPI
NCryptOpenKey
(
NCRYPT_PROV_HANDLE
provider
,
NCRYPT_KEY_HANDLE
*
key
,
const
WCHAR
*
name
,
DWORD
keyspec
,
DWORD
flags
)
{
...
...
dlls/ncrypt/ncrypt.spec
View file @
94e38a61
...
...
@@ -76,7 +76,7 @@
@ stdcall NCryptFreeObject(long)
@ stdcall NCryptGetProperty(ptr wstr ptr long ptr long)
@ stub NCryptGetProtectionDescriptorInfo
@ st
ub NCryptImportKey
@ st
dcall NCryptImportKey(long long wstr ptr ptr ptr long long)
@ stub NCryptIsAlgSupported
@ stub NCryptIsKeyHandle
@ stub NCryptKeyDerivation
...
...
include/ncrypt.h
View file @
94e38a61
...
...
@@ -39,6 +39,18 @@ typedef struct _NCryptAlgorithmName {
DWORD
dwFlags
;
}
NCryptAlgorithmName
;
typedef
struct
_NCryptBuffer
{
ULONG
cbBuffer
;
ULONG
BufferType
;
PVOID
pvBuffer
;
}
NCryptBuffer
,
*
PNCryptBuffer
;
typedef
struct
_NCryptBufferDesc
{
ULONG
ulVersion
;
ULONG
cBuffers
;
PNCryptBuffer
pBuffers
;
}
NCryptBufferDesc
,
*
PNCryptBufferDesc
;
typedef
struct
NCryptKeyName
{
LPWSTR
pszName
;
LPWSTR
pszAlgid
;
...
...
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