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
74bf9f1f
Commit
74bf9f1f
authored
Aug 03, 2007
by
Francois Gouget
Committed by
Alexandre Julliard
Aug 03, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Add and use HCRYPTPROV_LEGACY and HCRYPTPROV_OR_NCRYPT_KEY_HANDLE.
parent
e434a3ff
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
51 additions
and
49 deletions
+51
-49
cert.c
dlls/crypt32/cert.c
+11
-11
encode.c
dlls/crypt32/encode.c
+4
-4
msg.c
dlls/crypt32/msg.c
+1
-1
store.c
dlls/crypt32/store.c
+3
-3
wincrypt.h
include/wincrypt.h
+32
-30
No files found.
dlls/crypt32/cert.c
View file @
74bf9f1f
...
...
@@ -630,8 +630,8 @@ static BOOL CRYPT_AcquirePrivateKeyFromProvInfo(PCCERT_CONTEXT pCert,
}
BOOL
WINAPI
CryptAcquireCertificatePrivateKey
(
PCCERT_CONTEXT
pCert
,
DWORD
dwFlags
,
void
*
pvReserved
,
HCRYPTPROV
*
phCryptProv
,
DWORD
*
pdwKeySpec
,
BOOL
*
pfCallerFreeProv
)
DWORD
dwFlags
,
void
*
pvReserved
,
HCRYPTPROV
_OR_NCRYPT_KEY_HANDLE
*
phCryptProv
,
DWORD
*
pdwKeySpec
,
BOOL
*
pfCallerFreeProv
)
{
BOOL
ret
=
FALSE
,
cache
=
FALSE
;
PCRYPT_KEY_PROV_INFO
info
=
NULL
;
...
...
@@ -1209,7 +1209,7 @@ BOOL WINAPI CertVerifyValidityNesting(PCERT_INFO pSubjectInfo,
&&
CertVerifyTimeValidity
(
&
pSubjectInfo
->
NotAfter
,
pIssuerInfo
)
==
0
;
}
BOOL
WINAPI
CryptHashCertificate
(
HCRYPTPROV
hCryptProv
,
ALG_ID
Algid
,
BOOL
WINAPI
CryptHashCertificate
(
HCRYPTPROV
_LEGACY
hCryptProv
,
ALG_ID
Algid
,
DWORD
dwFlags
,
const
BYTE
*
pbEncoded
,
DWORD
cbEncoded
,
BYTE
*
pbComputedHash
,
DWORD
*
pcbComputedHash
)
{
...
...
@@ -1238,7 +1238,7 @@ BOOL WINAPI CryptHashCertificate(HCRYPTPROV hCryptProv, ALG_ID Algid,
return
ret
;
}
BOOL
WINAPI
CryptHashPublicKeyInfo
(
HCRYPTPROV
hCryptProv
,
ALG_ID
Algid
,
BOOL
WINAPI
CryptHashPublicKeyInfo
(
HCRYPTPROV
_LEGACY
hCryptProv
,
ALG_ID
Algid
,
DWORD
dwFlags
,
DWORD
dwCertEncodingType
,
PCERT_PUBLIC_KEY_INFO
pInfo
,
BYTE
*
pbComputedHash
,
DWORD
*
pcbComputedHash
)
{
...
...
@@ -1276,8 +1276,8 @@ BOOL WINAPI CryptHashPublicKeyInfo(HCRYPTPROV hCryptProv, ALG_ID Algid,
return
ret
;
}
BOOL
WINAPI
CryptSignCertificate
(
HCRYPTPROV
hCryptProv
,
DWORD
dwKeySpec
,
DWORD
dwCertEncodingType
,
const
BYTE
*
pbEncodedToBeSigned
,
BOOL
WINAPI
CryptSignCertificate
(
HCRYPTPROV
_OR_NCRYPT_KEY_HANDLE
hCryptProv
,
DWORD
dw
KeySpec
,
DWORD
dw
CertEncodingType
,
const
BYTE
*
pbEncodedToBeSigned
,
DWORD
cbEncodedToBeSigned
,
PCRYPT_ALGORITHM_IDENTIFIER
pSignatureAlgorithm
,
const
void
*
pvHashAuxInfo
,
BYTE
*
pbSignature
,
DWORD
*
pcbSignature
)
{
...
...
@@ -1335,7 +1335,7 @@ BOOL WINAPI CryptSignCertificate(HCRYPTPROV hCryptProv, DWORD dwKeySpec,
return
ret
;
}
BOOL
WINAPI
CryptSignAndEncodeCertificate
(
HCRYPTPROV
hCryptProv
,
BOOL
WINAPI
CryptSignAndEncodeCertificate
(
HCRYPTPROV
_OR_NCRYPT_KEY_HANDLE
hCryptProv
,
DWORD
dwKeySpec
,
DWORD
dwCertEncodingType
,
LPCSTR
lpszStructType
,
const
void
*
pvStructInfo
,
PCRYPT_ALGORITHM_IDENTIFIER
pSignatureAlgorithm
,
const
void
*
pvHashAuxInfo
,
PBYTE
pbEncoded
,
DWORD
*
pcbEncoded
)
...
...
@@ -1396,7 +1396,7 @@ BOOL WINAPI CryptSignAndEncodeCertificate(HCRYPTPROV hCryptProv,
return
ret
;
}
BOOL
WINAPI
CryptVerifyCertificateSignature
(
HCRYPTPROV
hCryptProv
,
BOOL
WINAPI
CryptVerifyCertificateSignature
(
HCRYPTPROV
_LEGACY
hCryptProv
,
DWORD
dwCertEncodingType
,
const
BYTE
*
pbEncoded
,
DWORD
cbEncoded
,
PCERT_PUBLIC_KEY_INFO
pPublicKey
)
{
...
...
@@ -1405,7 +1405,7 @@ BOOL WINAPI CryptVerifyCertificateSignature(HCRYPTPROV hCryptProv,
CRYPT_VERIFY_CERT_SIGN_ISSUER_PUBKEY
,
pPublicKey
,
0
,
NULL
);
}
static
BOOL
CRYPT_VerifyCertSignatureFromPublicKeyInfo
(
HCRYPTPROV
hCryptProv
,
static
BOOL
CRYPT_VerifyCertSignatureFromPublicKeyInfo
(
HCRYPTPROV
_LEGACY
hCryptProv
,
DWORD
dwCertEncodingType
,
PCERT_PUBLIC_KEY_INFO
pubKeyInfo
,
const
CERT_SIGNED_CONTENT_INFO
*
signedCert
)
{
...
...
@@ -1450,7 +1450,7 @@ static BOOL CRYPT_VerifyCertSignatureFromPublicKeyInfo(HCRYPTPROV hCryptProv,
return
ret
;
}
BOOL
WINAPI
CryptVerifyCertificateSignatureEx
(
HCRYPTPROV
hCryptProv
,
BOOL
WINAPI
CryptVerifyCertificateSignatureEx
(
HCRYPTPROV
_LEGACY
hCryptProv
,
DWORD
dwCertEncodingType
,
DWORD
dwSubjectType
,
void
*
pvSubject
,
DWORD
dwIssuerType
,
void
*
pvIssuer
,
DWORD
dwFlags
,
void
*
pvReserved
)
{
...
...
@@ -2195,7 +2195,7 @@ static HCRYPTPROV CRYPT_CreateKeyProv(void)
return
hProv
;
}
PCCERT_CONTEXT
WINAPI
CertCreateSelfSignCertificate
(
HCRYPTPROV
hProv
,
PCCERT_CONTEXT
WINAPI
CertCreateSelfSignCertificate
(
HCRYPTPROV
_OR_NCRYPT_KEY_HANDLE
hProv
,
PCERT_NAME_BLOB
pSubjectIssuerBlob
,
DWORD
dwFlags
,
PCRYPT_KEY_PROV_INFO
pKeyProvInfo
,
PCRYPT_ALGORITHM_IDENTIFIER
pSignatureAlgorithm
,
PSYSTEMTIME
pStartTime
,
...
...
dlls/crypt32/encode.c
View file @
74bf9f1f
...
...
@@ -3518,14 +3518,14 @@ BOOL WINAPI CryptEncodeObjectEx(DWORD dwCertEncodingType, LPCSTR lpszStructType,
return
ret
;
}
BOOL
WINAPI
CryptExportPublicKeyInfo
(
HCRYPTPROV
hCryptProv
,
DWORD
dwKeySpec
,
BOOL
WINAPI
CryptExportPublicKeyInfo
(
HCRYPTPROV
_OR_NCRYPT_KEY_HANDLE
hCryptProv
,
DWORD
dwKeySpec
,
DWORD
dwCertEncodingType
,
PCERT_PUBLIC_KEY_INFO
pInfo
,
DWORD
*
pcbInfo
)
{
return
CryptExportPublicKeyInfoEx
(
hCryptProv
,
dwKeySpec
,
dwCertEncodingType
,
NULL
,
0
,
NULL
,
pInfo
,
pcbInfo
);
}
static
BOOL
WINAPI
CRYPT_ExportRsaPublicKeyInfoEx
(
HCRYPTPROV
hCryptProv
,
static
BOOL
WINAPI
CRYPT_ExportRsaPublicKeyInfoEx
(
HCRYPTPROV
_OR_NCRYPT_KEY_HANDLE
hCryptProv
,
DWORD
dwKeySpec
,
DWORD
dwCertEncodingType
,
LPSTR
pszPublicKeyObjId
,
DWORD
dwFlags
,
void
*
pvAuxInfo
,
PCERT_PUBLIC_KEY_INFO
pInfo
,
DWORD
*
pcbInfo
)
{
...
...
@@ -3600,11 +3600,11 @@ static BOOL WINAPI CRYPT_ExportRsaPublicKeyInfoEx(HCRYPTPROV hCryptProv,
return
ret
;
}
typedef
BOOL
(
WINAPI
*
ExportPublicKeyInfoExFunc
)(
HCRYPTPROV
hCryptProv
,
typedef
BOOL
(
WINAPI
*
ExportPublicKeyInfoExFunc
)(
HCRYPTPROV
_OR_NCRYPT_KEY_HANDLE
hCryptProv
,
DWORD
dwKeySpec
,
DWORD
dwCertEncodingType
,
LPSTR
pszPublicKeyObjId
,
DWORD
dwFlags
,
void
*
pvAuxInfo
,
PCERT_PUBLIC_KEY_INFO
pInfo
,
DWORD
*
pcbInfo
);
BOOL
WINAPI
CryptExportPublicKeyInfoEx
(
HCRYPTPROV
hCryptProv
,
DWORD
dwKeySpec
,
BOOL
WINAPI
CryptExportPublicKeyInfoEx
(
HCRYPTPROV
_OR_NCRYPT_KEY_HANDLE
hCryptProv
,
DWORD
dwKeySpec
,
DWORD
dwCertEncodingType
,
LPSTR
pszPublicKeyObjId
,
DWORD
dwFlags
,
void
*
pvAuxInfo
,
PCERT_PUBLIC_KEY_INFO
pInfo
,
DWORD
*
pcbInfo
)
{
...
...
dlls/crypt32/msg.c
View file @
74bf9f1f
...
...
@@ -1904,7 +1904,7 @@ static BOOL CDecodeMsg_GetParam(HCRYPTMSG hCryptMsg, DWORD dwParamType,
}
HCRYPTMSG
WINAPI
CryptMsgOpenToDecode
(
DWORD
dwMsgEncodingType
,
DWORD
dwFlags
,
DWORD
dwMsgType
,
HCRYPTPROV
hCryptProv
,
PCERT_INFO
pRecipientInfo
,
DWORD
dwMsgType
,
HCRYPTPROV
_LEGACY
hCryptProv
,
PCERT_INFO
pRecipientInfo
,
PCMSG_STREAM_INFO
pStreamInfo
)
{
CDecodeMsg
*
msg
;
...
...
dlls/crypt32/store.c
View file @
74bf9f1f
...
...
@@ -2092,7 +2092,7 @@ static PWINECRYPT_CERTSTORE CRYPT_PhysOpenStoreW(HCRYPTPROV hCryptProv,
}
HCERTSTORE
WINAPI
CertOpenStore
(
LPCSTR
lpszStoreProvider
,
DWORD
dwMsgAndCertEncodingType
,
HCRYPTPROV
hCryptProv
,
DWORD
dwFlags
,
DWORD
dwMsgAndCertEncodingType
,
HCRYPTPROV
_LEGACY
hCryptProv
,
DWORD
dwFlags
,
const
void
*
pvPara
)
{
WINECRYPT_CERTSTORE
*
hcs
;
...
...
@@ -2173,7 +2173,7 @@ HCERTSTORE WINAPI CertOpenStore(LPCSTR lpszStoreProvider,
return
(
HCERTSTORE
)
hcs
;
}
HCERTSTORE
WINAPI
CertOpenSystemStoreA
(
HCRYPTPROV
hProv
,
HCERTSTORE
WINAPI
CertOpenSystemStoreA
(
HCRYPTPROV
_LEGACY
hProv
,
LPCSTR
szSubSystemProtocol
)
{
if
(
!
szSubSystemProtocol
)
...
...
@@ -2185,7 +2185,7 @@ HCERTSTORE WINAPI CertOpenSystemStoreA(HCRYPTPROV hProv,
CERT_SYSTEM_STORE_CURRENT_USER
,
szSubSystemProtocol
);
}
HCERTSTORE
WINAPI
CertOpenSystemStoreW
(
HCRYPTPROV
hProv
,
HCERTSTORE
WINAPI
CertOpenSystemStoreW
(
HCRYPTPROV
_LEGACY
hProv
,
LPCWSTR
szSubSystemProtocol
)
{
if
(
!
szSubSystemProtocol
)
...
...
include/wincrypt.h
View file @
74bf9f1f
This diff is collapsed.
Click to expand it.
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