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
f9ad32f0
Commit
f9ad32f0
authored
Nov 13, 2009
by
Juan Lang
Committed by
Alexandre Julliard
Nov 17, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Trace method used to find an issuer.
parent
aca5cc52
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
chain.c
dlls/crypt32/chain.c
+13
-0
No files found.
dlls/crypt32/chain.c
View file @
f9ad32f0
...
@@ -1505,8 +1505,11 @@ static PCCERT_CONTEXT CRYPT_GetIssuer(HCERTSTORE store, PCCERT_CONTEXT subject,
...
@@ -1505,8 +1505,11 @@ static PCCERT_CONTEXT CRYPT_GetIssuer(HCERTSTORE store, PCCERT_CONTEXT subject,
subject
->
dwCertEncodingType
,
0
,
CERT_FIND_CERT_ID
,
&
id
,
subject
->
dwCertEncodingType
,
0
,
CERT_FIND_CERT_ID
,
&
id
,
prevIssuer
);
prevIssuer
);
if
(
issuer
)
if
(
issuer
)
{
TRACE_
(
chain
)(
"issuer found by issuer/serial number
\n
"
);
*
infoStatus
=
CERT_TRUST_HAS_EXACT_MATCH_ISSUER
;
*
infoStatus
=
CERT_TRUST_HAS_EXACT_MATCH_ISSUER
;
}
}
}
else
if
(
info
->
KeyId
.
cbData
)
else
if
(
info
->
KeyId
.
cbData
)
{
{
id
.
dwIdChoice
=
CERT_ID_KEY_IDENTIFIER
;
id
.
dwIdChoice
=
CERT_ID_KEY_IDENTIFIER
;
...
@@ -1515,8 +1518,11 @@ static PCCERT_CONTEXT CRYPT_GetIssuer(HCERTSTORE store, PCCERT_CONTEXT subject,
...
@@ -1515,8 +1518,11 @@ static PCCERT_CONTEXT CRYPT_GetIssuer(HCERTSTORE store, PCCERT_CONTEXT subject,
subject
->
dwCertEncodingType
,
0
,
CERT_FIND_CERT_ID
,
&
id
,
subject
->
dwCertEncodingType
,
0
,
CERT_FIND_CERT_ID
,
&
id
,
prevIssuer
);
prevIssuer
);
if
(
issuer
)
if
(
issuer
)
{
TRACE_
(
chain
)(
"issuer found by key id
\n
"
);
*
infoStatus
=
CERT_TRUST_HAS_KEY_MATCH_ISSUER
;
*
infoStatus
=
CERT_TRUST_HAS_KEY_MATCH_ISSUER
;
}
}
}
LocalFree
(
info
);
LocalFree
(
info
);
}
}
}
}
...
@@ -1558,8 +1564,11 @@ static PCCERT_CONTEXT CRYPT_GetIssuer(HCERTSTORE store, PCCERT_CONTEXT subject,
...
@@ -1558,8 +1564,11 @@ static PCCERT_CONTEXT CRYPT_GetIssuer(HCERTSTORE store, PCCERT_CONTEXT subject,
subject
->
dwCertEncodingType
,
0
,
CERT_FIND_CERT_ID
,
&
id
,
subject
->
dwCertEncodingType
,
0
,
CERT_FIND_CERT_ID
,
&
id
,
prevIssuer
);
prevIssuer
);
if
(
issuer
)
if
(
issuer
)
{
TRACE_
(
chain
)(
"issuer found by directory name
\n
"
);
*
infoStatus
=
CERT_TRUST_HAS_EXACT_MATCH_ISSUER
;
*
infoStatus
=
CERT_TRUST_HAS_EXACT_MATCH_ISSUER
;
}
}
}
else
else
FIXME
(
"no supported name type in authority key id2
\n
"
);
FIXME
(
"no supported name type in authority key id2
\n
"
);
}
}
...
@@ -1571,8 +1580,11 @@ static PCCERT_CONTEXT CRYPT_GetIssuer(HCERTSTORE store, PCCERT_CONTEXT subject,
...
@@ -1571,8 +1580,11 @@ static PCCERT_CONTEXT CRYPT_GetIssuer(HCERTSTORE store, PCCERT_CONTEXT subject,
subject
->
dwCertEncodingType
,
0
,
CERT_FIND_CERT_ID
,
&
id
,
subject
->
dwCertEncodingType
,
0
,
CERT_FIND_CERT_ID
,
&
id
,
prevIssuer
);
prevIssuer
);
if
(
issuer
)
if
(
issuer
)
{
TRACE_
(
chain
)(
"issuer found by key id
\n
"
);
*
infoStatus
=
CERT_TRUST_HAS_KEY_MATCH_ISSUER
;
*
infoStatus
=
CERT_TRUST_HAS_KEY_MATCH_ISSUER
;
}
}
}
LocalFree
(
info
);
LocalFree
(
info
);
}
}
}
}
...
@@ -1581,6 +1593,7 @@ static PCCERT_CONTEXT CRYPT_GetIssuer(HCERTSTORE store, PCCERT_CONTEXT subject,
...
@@ -1581,6 +1593,7 @@ static PCCERT_CONTEXT CRYPT_GetIssuer(HCERTSTORE store, PCCERT_CONTEXT subject,
issuer
=
CertFindCertificateInStore
(
store
,
issuer
=
CertFindCertificateInStore
(
store
,
subject
->
dwCertEncodingType
,
0
,
CERT_FIND_SUBJECT_NAME
,
subject
->
dwCertEncodingType
,
0
,
CERT_FIND_SUBJECT_NAME
,
&
subject
->
pCertInfo
->
Issuer
,
prevIssuer
);
&
subject
->
pCertInfo
->
Issuer
,
prevIssuer
);
TRACE_
(
chain
)(
"issuer found by name
\n
"
);
*
infoStatus
=
CERT_TRUST_HAS_NAME_MATCH_ISSUER
;
*
infoStatus
=
CERT_TRUST_HAS_NAME_MATCH_ISSUER
;
}
}
return
issuer
;
return
issuer
;
...
...
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