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
a28052ab
Commit
a28052ab
authored
Jan 14, 2009
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jan 14, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cryptnet: Remove superfluous pointer casts.
parent
357c3f4a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
cryptnet_main.c
dlls/cryptnet/cryptnet_main.c
+9
-9
cryptnet.c
dlls/cryptnet/tests/cryptnet.c
+1
-1
No files found.
dlls/cryptnet/cryptnet_main.c
View file @
a28052ab
...
...
@@ -136,7 +136,7 @@ static BOOL WINAPI CRYPT_GetUrlFromCertificateCRLDistPoint(LPCSTR pszUrlOid,
LPVOID
pvPara
,
DWORD
dwFlags
,
PCRYPT_URL_ARRAY
pUrlArray
,
DWORD
*
pcbUrlArray
,
PCRYPT_URL_INFO
pUrlInfo
,
DWORD
*
pcbUrlInfo
,
LPVOID
pvReserved
)
{
PCCERT_CONTEXT
cert
=
(
PCCERT_CONTEXT
)
pvPara
;
PCCERT_CONTEXT
cert
=
pvPara
;
PCERT_EXTENSION
ext
;
BOOL
ret
=
FALSE
;
...
...
@@ -686,7 +686,7 @@ static void CALLBACK CRYPT_InetStatusCallback(HINTERNET hInt,
switch
(
status
)
{
case
INTERNET_STATUS_REQUEST_COMPLETE
:
result
=
(
LPINTERNET_ASYNC_RESULT
)
statusInfo
;
result
=
statusInfo
;
context
->
error
=
result
->
dwError
;
SetEvent
(
context
->
event
);
}
...
...
@@ -1244,17 +1244,17 @@ static BOOL WINAPI CRYPT_CreateAny(LPCSTR pszObjectOid,
{
case
CERT_QUERY_CONTENT_CERT
:
if
(
!
CertAddCertificateContextToStore
(
store
,
(
PCCERT_CONTEXT
)
context
,
CERT_STORE_ADD_ALWAYS
,
NULL
))
context
,
CERT_STORE_ADD_ALWAYS
,
NULL
))
ret
=
FALSE
;
break
;
case
CERT_QUERY_CONTENT_CRL
:
if
(
!
CertAddCRLContextToStore
(
store
,
(
PCCRL_CONTEXT
)
context
,
CERT_STORE_ADD_ALWAYS
,
NULL
))
context
,
CERT_STORE_ADD_ALWAYS
,
NULL
))
ret
=
FALSE
;
break
;
case
CERT_QUERY_CONTENT_CTL
:
if
(
!
CertAddCTLContextToStore
(
store
,
(
PCCTL_CONTEXT
)
context
,
CERT_STORE_ADD_ALWAYS
,
NULL
))
context
,
CERT_STORE_ADD_ALWAYS
,
NULL
))
ret
=
FALSE
;
break
;
default:
...
...
@@ -1327,7 +1327,7 @@ typedef BOOL (*get_object_expiration_func)(void *pvContext,
static
BOOL
CRYPT_GetExpirationFromCert
(
void
*
pvObject
,
FILETIME
*
expiration
)
{
PCCERT_CONTEXT
cert
=
(
PCCERT_CONTEXT
)
pvObject
;
PCCERT_CONTEXT
cert
=
pvObject
;
*
expiration
=
cert
->
pCertInfo
->
NotAfter
;
return
TRUE
;
...
...
@@ -1335,7 +1335,7 @@ static BOOL CRYPT_GetExpirationFromCert(void *pvObject, FILETIME *expiration)
static
BOOL
CRYPT_GetExpirationFromCRL
(
void
*
pvObject
,
FILETIME
*
expiration
)
{
PCCRL_CONTEXT
cert
=
(
PCCRL_CONTEXT
)
pvObject
;
PCCRL_CONTEXT
cert
=
pvObject
;
*
expiration
=
cert
->
pCrlInfo
->
NextUpdate
;
return
TRUE
;
...
...
@@ -1343,7 +1343,7 @@ static BOOL CRYPT_GetExpirationFromCRL(void *pvObject, FILETIME *expiration)
static
BOOL
CRYPT_GetExpirationFromCTL
(
void
*
pvObject
,
FILETIME
*
expiration
)
{
PCCTL_CONTEXT
cert
=
(
PCCTL_CONTEXT
)
pvObject
;
PCCTL_CONTEXT
cert
=
pvObject
;
*
expiration
=
cert
->
pCtlInfo
->
NextUpdate
;
return
TRUE
;
...
...
@@ -1518,7 +1518,7 @@ BOOL WINAPI CertDllVerifyRevocation(DWORD dwEncodingType, DWORD dwRevType,
PCRL_ENTRY
entry
=
NULL
;
CertFindCertificateInCRL
(
(
PCCERT_CONTEXT
)
rgpvContext
[
i
],
crl
,
0
,
NULL
,
rgpvContext
[
i
],
crl
,
0
,
NULL
,
&
entry
);
if
(
entry
)
{
...
...
dlls/cryptnet/tests/cryptnet.c
View file @
a28052ab
...
...
@@ -329,7 +329,7 @@ static void test_retrieveObjectByUrl(void)
CertFreeCRLContext
(
crl
);
store
=
(
HCERTSTORE
)
0xdeadbeef
;
ret
=
CryptRetrieveObjectByUrlA
(
url
,
CONTEXT_OID_CAPI2_ANY
,
0
,
0
,
(
void
**
)
&
store
,
NULL
,
NULL
,
NULL
,
NULL
);
&
store
,
NULL
,
NULL
,
NULL
,
NULL
);
ok
(
ret
,
"CryptRetrieveObjectByUrlA failed: %d
\n
"
,
GetLastError
());
if
(
store
&&
store
!=
(
HCERTSTORE
)
0xdeadbeef
)
{
...
...
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