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
a48aae26
Commit
a48aae26
authored
Oct 21, 2009
by
Juan Lang
Committed by
Alexandre Julliard
Oct 22, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rsaenh: Fail if CRYPT_IPSEC_HMAC_KEY is passed to CryptImportKey.
parent
a1502846
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
crypt.c
dlls/advapi32/tests/crypt.c
+4
-1
rsaenh.c
dlls/rsaenh/rsaenh.c
+6
-0
No files found.
dlls/advapi32/tests/crypt.c
View file @
a48aae26
...
...
@@ -949,7 +949,7 @@ static void test_rc2_keylen(void)
}
key_blob
;
HCRYPTPROV
provider
;
HCRYPTKEY
hkey
;
HCRYPTKEY
hkey
=
0
;
BOOL
ret
;
SetLastError
(
0xdeadbeef
);
...
...
@@ -970,6 +970,7 @@ static void test_rc2_keylen(void)
sizeof
(
BLOBHEADER
)
+
sizeof
(
DWORD
)
+
key_blob
.
key_size
,
0
,
CRYPT_IPSEC_HMAC_KEY
,
&
hkey
);
/* CRYPT_IPSEC_HMAC_KEY is not supported on W2K and lower */
todo_wine
ok
(
ret
||
broken
(
!
ret
&&
GetLastError
()
==
NTE_BAD_FLAGS
),
"CryptImportKey error %08x
\n
"
,
GetLastError
());
...
...
@@ -1007,6 +1008,7 @@ static void test_rc2_keylen(void)
sizeof
(
BLOBHEADER
)
+
sizeof
(
DWORD
)
+
key_blob
.
key_size
,
0
,
CRYPT_IPSEC_HMAC_KEY
,
&
hkey
);
/* CRYPT_IPSEC_HMAC_KEY is not supported on W2K and lower */
todo_wine
ok
(
ret
||
broken
(
!
ret
&&
GetLastError
()
==
NTE_BAD_FLAGS
),
"CryptImportKey error %08x
\n
"
,
GetLastError
());
...
...
@@ -1027,6 +1029,7 @@ static void test_rc2_keylen(void)
ret
=
pCryptImportKey
(
provider
,
(
BYTE
*
)
&
key_blob
,
sizeof
(
BLOBHEADER
)
+
sizeof
(
DWORD
)
+
key_blob
.
key_size
,
0
,
CRYPT_IPSEC_HMAC_KEY
,
&
hkey
);
todo_wine
ok
(
ret
||
broken
(
!
ret
&&
GetLastError
()
==
NTE_BAD_FLAGS
),
"CryptImportKey error %08x
\n
"
,
GetLastError
());
...
...
dlls/rsaenh/rsaenh.c
View file @
a48aae26
...
...
@@ -3011,6 +3011,12 @@ BOOL WINAPI RSAENH_CPImportKey(HCRYPTPROV hProv, CONST BYTE *pbData, DWORD dwDat
TRACE
(
"(hProv=%08lx, pbData=%p, dwDataLen=%d, hPubKey=%08lx, dwFlags=%08x, phKey=%p)
\n
"
,
hProv
,
pbData
,
dwDataLen
,
hPubKey
,
dwFlags
,
phKey
);
if
(
dwFlags
&
CRYPT_IPSEC_HMAC_KEY
)
{
FIXME
(
"unimplemented for CRYPT_IPSEC_HMAC_KEY
\n
"
);
SetLastError
(
NTE_BAD_FLAGS
);
return
FALSE
;
}
return
import_key
(
hProv
,
pbData
,
dwDataLen
,
hPubKey
,
dwFlags
,
TRUE
,
phKey
);
}
...
...
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