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
6ddc981c
Commit
6ddc981c
authored
Jun 22, 2009
by
Andrew Talbot
Committed by
Alexandre Julliard
Jun 23, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cryptnet: Constify some variables.
parent
71b7c2f9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
cryptnet_main.c
dlls/cryptnet/cryptnet_main.c
+14
-14
No files found.
dlls/cryptnet/cryptnet_main.c
View file @
6ddc981c
...
...
@@ -608,7 +608,7 @@ static BOOL CRYPT_DownloadObject(DWORD dwRetrievalFlags, HINTERNET hHttp,
* creates a new cache entry for the object and writes the object to it.
* Sets the expiration time of the cache entry to expires.
*/
static
void
CRYPT_CacheURL
(
LPCWSTR
pszURL
,
PCRYPT_BLOB_ARRAY
pObject
,
static
void
CRYPT_CacheURL
(
LPCWSTR
pszURL
,
const
CRYPT_BLOB_ARRAY
*
pObject
,
DWORD
dwRetrievalFlags
,
FILETIME
expires
)
{
WCHAR
cacheFileName
[
MAX_PATH
];
...
...
@@ -692,7 +692,7 @@ static void CALLBACK CRYPT_InetStatusCallback(HINTERNET hInt,
}
}
static
BOOL
CRYPT_Connect
(
URL_COMPONENTSW
*
components
,
static
BOOL
CRYPT_Connect
(
const
URL_COMPONENTSW
*
components
,
struct
InetContext
*
context
,
PCRYPT_CREDENTIALS
pCredentials
,
HINTERNET
*
phInt
,
HINTERNET
*
phHost
)
{
...
...
@@ -1049,7 +1049,7 @@ static BOOL CRYPT_GetRetrieveFunction(LPCWSTR pszURL,
}
static
BOOL
WINAPI
CRYPT_CreateBlob
(
LPCSTR
pszObjectOid
,
DWORD
dwRetrievalFlags
,
PCRYPT_BLOB_ARRAY
pObject
,
void
**
ppvContext
)
DWORD
dwRetrievalFlags
,
const
CRYPT_BLOB_ARRAY
*
pObject
,
void
**
ppvContext
)
{
DWORD
size
,
i
;
CRYPT_BLOB_ARRAY
*
context
;
...
...
@@ -1086,7 +1086,7 @@ static BOOL WINAPI CRYPT_CreateBlob(LPCSTR pszObjectOid,
typedef
BOOL
(
WINAPI
*
AddContextToStore
)(
HCERTSTORE
hCertStore
,
const
void
*
pContext
,
DWORD
dwAddDisposition
,
const
void
**
ppStoreContext
);
static
BOOL
CRYPT_CreateContext
(
PCRYPT_BLOB_ARRAY
pObject
,
static
BOOL
CRYPT_CreateContext
(
const
CRYPT_BLOB_ARRAY
*
pObject
,
DWORD
dwExpectedContentTypeFlags
,
AddContextToStore
addFunc
,
void
**
ppvContext
)
{
BOOL
ret
=
TRUE
;
...
...
@@ -1142,28 +1142,28 @@ static BOOL CRYPT_CreateContext(PCRYPT_BLOB_ARRAY pObject,
}
static
BOOL
WINAPI
CRYPT_CreateCert
(
LPCSTR
pszObjectOid
,
DWORD
dwRetrievalFlags
,
PCRYPT_BLOB_ARRAY
pObject
,
void
**
ppvContext
)
DWORD
dwRetrievalFlags
,
const
CRYPT_BLOB_ARRAY
*
pObject
,
void
**
ppvContext
)
{
return
CRYPT_CreateContext
(
pObject
,
CERT_QUERY_CONTENT_FLAG_CERT
,
(
AddContextToStore
)
CertAddCertificateContextToStore
,
ppvContext
);
}
static
BOOL
WINAPI
CRYPT_CreateCRL
(
LPCSTR
pszObjectOid
,
DWORD
dwRetrievalFlags
,
PCRYPT_BLOB_ARRAY
pObject
,
void
**
ppvContext
)
DWORD
dwRetrievalFlags
,
const
CRYPT_BLOB_ARRAY
*
pObject
,
void
**
ppvContext
)
{
return
CRYPT_CreateContext
(
pObject
,
CERT_QUERY_CONTENT_FLAG_CRL
,
(
AddContextToStore
)
CertAddCRLContextToStore
,
ppvContext
);
}
static
BOOL
WINAPI
CRYPT_CreateCTL
(
LPCSTR
pszObjectOid
,
DWORD
dwRetrievalFlags
,
PCRYPT_BLOB_ARRAY
pObject
,
void
**
ppvContext
)
DWORD
dwRetrievalFlags
,
const
CRYPT_BLOB_ARRAY
*
pObject
,
void
**
ppvContext
)
{
return
CRYPT_CreateContext
(
pObject
,
CERT_QUERY_CONTENT_FLAG_CTL
,
(
AddContextToStore
)
CertAddCTLContextToStore
,
ppvContext
);
}
static
BOOL
WINAPI
CRYPT_CreatePKCS7
(
LPCSTR
pszObjectOid
,
DWORD
dwRetrievalFlags
,
PCRYPT_BLOB_ARRAY
pObject
,
void
**
ppvContext
)
DWORD
dwRetrievalFlags
,
const
CRYPT_BLOB_ARRAY
*
pObject
,
void
**
ppvContext
)
{
BOOL
ret
;
...
...
@@ -1187,7 +1187,7 @@ static BOOL WINAPI CRYPT_CreatePKCS7(LPCSTR pszObjectOid,
}
static
BOOL
WINAPI
CRYPT_CreateAny
(
LPCSTR
pszObjectOid
,
DWORD
dwRetrievalFlags
,
PCRYPT_BLOB_ARRAY
pObject
,
void
**
ppvContext
)
DWORD
dwRetrievalFlags
,
const
CRYPT_BLOB_ARRAY
*
pObject
,
void
**
ppvContext
)
{
BOOL
ret
;
...
...
@@ -1273,7 +1273,7 @@ static BOOL WINAPI CRYPT_CreateAny(LPCSTR pszObjectOid,
}
typedef
BOOL
(
WINAPI
*
ContextDllCreateObjectContext
)(
LPCSTR
pszObjectOid
,
DWORD
dwRetrievalFlags
,
PCRYPT_BLOB_ARRAY
pObject
,
void
**
ppvContext
);
DWORD
dwRetrievalFlags
,
const
CRYPT_BLOB_ARRAY
*
pObject
,
void
**
ppvContext
);
static
BOOL
CRYPT_GetCreateFunction
(
LPCSTR
pszObjectOid
,
ContextDllCreateObjectContext
*
pFunc
,
HCRYPTOIDFUNCADDR
*
phFunc
)
...
...
@@ -1322,10 +1322,10 @@ static BOOL CRYPT_GetCreateFunction(LPCSTR pszObjectOid,
return
ret
;
}
typedef
BOOL
(
*
get_object_expiration_func
)(
void
*
pvContext
,
typedef
BOOL
(
*
get_object_expiration_func
)(
const
void
*
pvContext
,
FILETIME
*
expiration
);
static
BOOL
CRYPT_GetExpirationFromCert
(
void
*
pvObject
,
FILETIME
*
expiration
)
static
BOOL
CRYPT_GetExpirationFromCert
(
const
void
*
pvObject
,
FILETIME
*
expiration
)
{
PCCERT_CONTEXT
cert
=
pvObject
;
...
...
@@ -1333,7 +1333,7 @@ static BOOL CRYPT_GetExpirationFromCert(void *pvObject, FILETIME *expiration)
return
TRUE
;
}
static
BOOL
CRYPT_GetExpirationFromCRL
(
void
*
pvObject
,
FILETIME
*
expiration
)
static
BOOL
CRYPT_GetExpirationFromCRL
(
const
void
*
pvObject
,
FILETIME
*
expiration
)
{
PCCRL_CONTEXT
cert
=
pvObject
;
...
...
@@ -1341,7 +1341,7 @@ static BOOL CRYPT_GetExpirationFromCRL(void *pvObject, FILETIME *expiration)
return
TRUE
;
}
static
BOOL
CRYPT_GetExpirationFromCTL
(
void
*
pvObject
,
FILETIME
*
expiration
)
static
BOOL
CRYPT_GetExpirationFromCTL
(
const
void
*
pvObject
,
FILETIME
*
expiration
)
{
PCCTL_CONTEXT
cert
=
pvObject
;
...
...
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