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
e04f6be3
Commit
e04f6be3
authored
Apr 09, 2007
by
Andrew Talbot
Committed by
Alexandre Julliard
Apr 10, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Constify some variables.
parent
aa12152e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
cert.c
dlls/crypt32/cert.c
+9
-9
crl.c
dlls/crypt32/crl.c
+1
-1
No files found.
dlls/crypt32/cert.c
View file @
e04f6be3
...
...
@@ -731,7 +731,7 @@ BOOL WINAPI CertCompareCertificateName(DWORD dwCertEncodingType,
* insignificant if it's a leading 0 for positive numbers or a leading 0xff
* for negative numbers. pInt is assumed to be little-endian.
*/
static
DWORD
CRYPT_significantBytes
(
PCRYPT_INTEGER_BLOB
pInt
)
static
DWORD
CRYPT_significantBytes
(
const
CRYPT_INTEGER_BLOB
*
pInt
)
{
DWORD
ret
=
pInt
->
cbData
;
...
...
@@ -1350,7 +1350,7 @@ BOOL WINAPI CryptVerifyCertificateSignature(HCRYPTPROV hCryptProv,
static
BOOL
CRYPT_VerifyCertSignatureFromPublicKeyInfo
(
HCRYPTPROV
hCryptProv
,
DWORD
dwCertEncodingType
,
PCERT_PUBLIC_KEY_INFO
pubKeyInfo
,
PCERT_SIGNED_CONTENT_INFO
signedCert
)
const
CERT_SIGNED_CONTENT_INFO
*
signedCert
)
{
BOOL
ret
;
HCRYPTKEY
key
;
...
...
@@ -1911,7 +1911,7 @@ BOOL WINAPI CertGetValidUsages(DWORD cCerts, PCCERT_CONTEXT *rghCerts,
* pInfo is NULL, from the attributes of hProv.
*/
static
void
CertContext_SetKeyProvInfo
(
PCCERT_CONTEXT
context
,
PCRYPT_KEY_PROV_INFO
pInfo
,
HCRYPTPROV
hProv
)
const
CRYPT_KEY_PROV_INFO
*
pInfo
,
HCRYPTPROV
hProv
)
{
CRYPT_KEY_PROV_INFO
info
=
{
0
};
BOOL
ret
;
...
...
@@ -1995,7 +1995,7 @@ static void CertContext_SetKeyProvInfo(PCCERT_CONTEXT context,
/* Creates a signed certificate context from the unsigned, encoded certificate
* in blob, using the crypto provider hProv and the signature algorithm sigAlgo.
*/
static
PCCERT_CONTEXT
CRYPT_CreateSignedCert
(
PCRYPT_DER_BLOB
blob
,
static
PCCERT_CONTEXT
CRYPT_CreateSignedCert
(
const
CRYPT_DER_BLOB
*
blob
,
HCRYPTPROV
hProv
,
PCRYPT_ALGORITHM_IDENTIFIER
sigAlgo
)
{
PCCERT_CONTEXT
context
=
NULL
;
...
...
@@ -2050,11 +2050,11 @@ static PCCERT_CONTEXT CRYPT_CreateSignedCert(PCRYPT_DER_BLOB blob,
* pubKey: The public key of the certificate. Must not be NULL.
* pExtensions: Extensions to be included with the certificate. Optional.
*/
static
void
CRYPT_MakeCertInfo
(
PCERT_INFO
info
,
PCRYPT_DATA_BLOB
pSerialNumber
,
PCERT_NAME_BLOB
pSubjectIssuerBlob
,
PCRYPT_ALGORITHM_IDENTIFIER
pSignatureAlgorithm
,
PSYSTEMTIME
pStartTime
,
PSYSTEMTIME
pEndTime
,
PCERT_PUBLIC_KEY_INFO
pubKey
,
PCERT_EXTENSIONS
pExtensions
)
static
void
CRYPT_MakeCertInfo
(
PCERT_INFO
info
,
const
CRYPT_DATA_BLOB
*
pSerialNumber
,
const
CERT_NAME_BLOB
*
pSubjectIssuerBlob
,
const
CRYPT_ALGORITHM_IDENTIFIER
*
pSignatureAlgorithm
,
const
SYSTEMTIME
*
pStartTime
,
const
SYSTEMTIME
*
pEndTime
,
const
CERT_PUBLIC_KEY_INFO
*
pubKey
,
const
CERT_EXTENSIONS
*
pExtensions
)
{
static
CHAR
oid
[]
=
szOID_RSA_SHA1RSA
;
...
...
dlls/crypt32/crl.c
View file @
e04f6be3
...
...
@@ -473,7 +473,7 @@ BOOL WINAPI CertIsValidCRLForCertificate(PCCERT_CONTEXT pCert,
return
TRUE
;
}
static
PCRL_ENTRY
CRYPT_FindCertificateInCRL
(
PCERT_INFO
cert
,
PCRL_INFO
crl
)
static
PCRL_ENTRY
CRYPT_FindCertificateInCRL
(
PCERT_INFO
cert
,
const
CRL_INFO
*
crl
)
{
DWORD
i
;
PCRL_ENTRY
entry
=
NULL
;
...
...
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