Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
1b7121e7
Commit
1b7121e7
authored
Aug 20, 2008
by
Juan Lang
Committed by
Alexandre Julliard
Aug 21, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Support the KeyId type of signer in CMSG_SIGNER_CERT_INFO_PARAM.
parent
51b16fb8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
8 deletions
+14
-8
msg.c
dlls/crypt32/msg.c
+14
-8
No files found.
dlls/crypt32/msg.c
View file @
1b7121e7
...
...
@@ -2174,7 +2174,7 @@ static BOOL CRYPT_CopyCMSSignerInfo(void *pvData, DWORD *pcbData,
static
BOOL
CRYPT_CopySignerCertInfo
(
void
*
pvData
,
DWORD
*
pcbData
,
const
CMSG_CMS_SIGNER_INFO
*
in
)
{
DWORD
size
=
sizeof
(
CERT_INFO
);
DWORD
size
=
sizeof
(
CERT_INFO
)
,
rdnSize
;
BOOL
ret
;
TRACE
(
"(%p, %d, %p)
\n
"
,
pvData
,
pvData
?
*
pcbData
:
0
,
in
);
...
...
@@ -2186,8 +2186,8 @@ static BOOL CRYPT_CopySignerCertInfo(void *pvData, DWORD *pcbData,
}
else
{
FIXME
(
"unimplemented for key id
\n
"
);
return
FALSE
;
rdnSize
=
CRYPT_SizeOfKeyIdAsIssuerAndSerial
(
&
in
->
SignerId
.
KeyId
);
size
+=
rdnSize
;
}
if
(
!
pvData
)
{
...
...
@@ -2206,11 +2206,17 @@ static BOOL CRYPT_CopySignerCertInfo(void *pvData, DWORD *pcbData,
CERT_INFO
*
out
=
(
CERT_INFO
*
)
pvData
;
memset
(
out
,
0
,
sizeof
(
CERT_INFO
));
CRYPT_CopyBlob
(
&
out
->
Issuer
,
&
in
->
SignerId
.
IssuerSerialNumber
.
Issuer
,
&
nextData
);
CRYPT_CopyBlob
(
&
out
->
SerialNumber
,
&
in
->
SignerId
.
IssuerSerialNumber
.
SerialNumber
,
&
nextData
);
ret
=
TRUE
;
if
(
in
->
SignerId
.
dwIdChoice
==
CERT_ID_ISSUER_SERIAL_NUMBER
)
{
CRYPT_CopyBlob
(
&
out
->
Issuer
,
&
in
->
SignerId
.
IssuerSerialNumber
.
Issuer
,
&
nextData
);
CRYPT_CopyBlob
(
&
out
->
SerialNumber
,
&
in
->
SignerId
.
IssuerSerialNumber
.
SerialNumber
,
&
nextData
);
ret
=
TRUE
;
}
else
ret
=
CRYPT_CopyKeyIdAsIssuerAndSerial
(
&
out
->
Issuer
,
&
out
->
SerialNumber
,
&
in
->
SignerId
.
KeyId
,
rdnSize
,
&
nextData
);
}
TRACE
(
"returning %d
\n
"
,
ret
);
return
ret
;
...
...
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