Jacek Caban
f82237102b
crypt32: Get rid of no longer used contextSize argument in Context_AddRef.
2013-10-08 18:09:53 +02:00
Jacek Caban
0a5cb15f94
crypt32: Get rid of remaining P* typedefs.
2013-09-04 14:38:41 +02:00
Jacek Caban
0c4a2df240
crypt32: Get rid of PWINECRYPT_CERTSTORE typedef.
2013-09-04 14:37:57 +02:00
Jacek Caban
d8c3ccee28
crypt32: Get rid of PCONTEXT_PROPERTY_LIST typedef.
2013-09-04 14:37:49 +02:00
Michael Stefaniuc
6af92365ea
crypt32: Use assignment instead of memcpy to copy structs.
2013-02-05 20:15:36 +01:00
Juan Lang
f86ab49be2
crypt32: Initialize key spec correctly.
2012-05-31 12:37:21 +02:00
Juan Lang
da53cfc8bb
crypt32: Fail earlier if CryptExportPublicKeyInfo fails.
2012-05-31 12:37:20 +02:00
Juan Lang
6ccdbab6c8
crypt32: Don't fail if HCRYPTPROV and PCRYPT_KEY_PROV_INFO parameters are both non-NULL.
2012-05-31 12:37:20 +02:00
Juan Lang
441f7b6d9e
crypt32: Test and correct CryptVerifyCertificateSignature.
2012-02-02 09:52:55 +01:00
Juan Lang
be0d294485
crypt32: Fix memory leak in failure cases.
2011-09-22 19:51:50 +02:00
Juan Lang
546bfa2c1c
crypt32: Test CertCreateCertificateContext, and fix an error code in a failure case.
2011-09-22 19:51:50 +02:00
Juan Lang
f1be598efa
crypt32: Support CERT_COMPARE_NAME_STR_A in CertFindCertificateInStore.
2011-06-09 16:57:44 +02:00
Juan Lang
d728169d97
crypt32: Implement CertAddCertificateLinkToStore on top of CertAddCertificateContextToStore.
2010-05-17 12:42:31 +02:00
Juan Lang
99b9e1ae36
crypt32: Prohibit adding links to collection stores.
2010-05-17 12:42:31 +02:00
Amine Khaldi
483d241559
crypt32: Remove unneeded assignments.
2009-12-16 12:21:12 +01:00
Juan Lang
b2ab45b78b
crypt32: Only match RDN attributes whose lengths are identical.
2009-11-21 14:31:46 +01:00
Juan Lang
440c702ce4
crypt32: Implement CertIsRDNAttrsInCertificateName.
2009-11-17 15:14:53 +01:00
Juan Lang
7d12294f08
crypt32: Add stub for CertIsRDNAttrsInCertificateName.
2009-11-17 15:14:53 +01:00
Juan Lang
40855cae97
crypt32: Add return value to Context_Release to allow detecting reference counting errors.
2009-11-04 16:45:16 +01:00
Juan Lang
d8094382a8
crypt32: Implement CertAddEncodedCertificateToSystemStoreA/W.
2009-11-04 16:45:16 +01:00
Juan Lang
9364d7a928
crypt32: Add stub for CertAddCertificateLinkToStore.
2009-11-04 13:07:56 +01:00
Juan Lang
f554669286
crypt32: Implement CryptGetIntendedKeyUsage.
2009-11-04 13:07:56 +01:00
Juan Lang
ed701e0787
crypt32: Add stub for CryptGetIntendedKeyUsage.
2009-11-03 21:31:28 +01:00
Juan Lang
c4ce06293c
crypt32: Create a V1 certificate if it doesn't have extensions.
2009-10-30 11:32:04 +01:00
Juan Lang
d8ca5bc348
crypt32: Use helper function to encode public keys for hashing.
...
This is necessary because the publicly callable form embeds the asn.1
NULL value when the parameters are empty, whereas the hash value
expects that it's missing.
2009-10-21 16:05:56 +02:00
Juan Lang
1e424138fe
crypt32: Implement CryptFindCertificateInStore for unicode strings.
2009-10-20 14:00:35 +02:00
Juan Lang
60140610e3
crypt32: Compare certificates in a consistent order.
2009-10-19 11:35:55 +02:00
Juan Lang
3740e4150b
crypt32: Avoid repeatedly decoding authority key id extensions when searching for a cert's issuer.
2009-10-19 11:35:46 +02:00
Juan Lang
b2d27097b5
crypt32: Introduce a helper function to search for certificates that doesn't require recreating the search key for every certificate.
2009-10-19 11:35:38 +02:00
Juan Lang
e0a4404831
crypt32: Use helper function to search for certs.
2009-10-19 11:35:32 +02:00
Hans Leidekker
764b9bef19
crypt32: Add a partial implementation of CertCreateContext.
2009-06-23 11:48:20 +02:00
Andrew Talbot
5a981c3a64
crypt32: Constify some variables.
2009-06-12 17:33:14 +02:00
Paul Vriens
8218518695
crypt32: Fix CertDuplicateCertificateContext for a passed NULL context.
2009-01-29 14:31:10 +01:00
Juan Lang
1352f6d316
crypt32: Implement CryptFindCertificateKeyProvInfo.
2009-01-28 12:09:22 +01:00
Juan Lang
bf0406cf3a
crypt32: Implement CertFindCertificateInStore for CERT_FIND_PUBLIC_KEY.
2009-01-28 12:08:49 +01:00
Michael Stefaniuc
4eaaa913f8
crypt32: Remove some more superfluous pointer casts.
2009-01-26 14:31:08 +01:00
Juan Lang
b21da737fe
crypt32: Allow setting CERT_KEY_PROV_HANDLE_PROP_ID if CERT_KEY_CONTEXT_PROP_ID has not previously been set.
2008-12-10 10:49:17 +01:00
Juan Lang
fce8a26c00
crypt32: Remove unnecessary casts.
2008-12-10 10:49:11 +01:00
Michael Stefaniuc
7589715c87
crypt32: Remove superfluous casts of void pointers.
2008-11-04 11:26:34 +01:00
Aric Stewart
c009f9c9ee
crypt32: Static functions CertContext_GetProperty and CertContext_SetProperty do not need to be WINAPI.
2008-11-03 11:50:02 +01:00
Juan Lang
abde9a91f2
crypt32: Add support for the CERT_EXTENDED_ERROR_INFO_PROP_ID.
2008-09-18 12:32:36 +02:00
Juan Lang
e4a0633818
crypt32: Return FALSE rather than crash if memory allocation fails. Fixes Coverity id 135.
2008-09-10 10:40:46 +02:00
Juan Lang
a1e14feeac
crypt32: Implement CertFindCertificateInStore for CERT_FIND_SIGNATURE_HASH.
2008-08-19 12:20:23 +02:00
Juan Lang
e763923b07
crypt32: Implement CERT_SIGNATURE_HASH_PROP_ID.
2008-08-19 12:20:18 +02:00
Juan Lang
d8da3e83ff
crypt32: Implement CryptHashToBeSigned.
2008-08-19 12:20:09 +02:00
Juan Lang
f5eb6caf05
crypt32: Add stub for CryptHashToBeSigned.
2008-08-19 12:19:58 +02:00
Michael Karcher
c235656aeb
crypt32: ComparePublicKeyInfo must ignore the leading zero.
2008-06-30 15:11:04 +02:00
Michael Karcher
8d4d7b267d
crypt32: CertGetPublicKeyLength should check only cert encoding type.
...
pktextract calls CertGetPublicKeyLength with dwCertEncodingType
of X509_ASN_ENCODING | PKCS_7_ASN_ENCODING, MSDN explicitly
allows it.
2008-05-26 17:59:20 +02:00
Rob Shearman
9e717aa2e8
crypt32: Add stub for CertVerifyCTLUsage.
2008-05-07 20:22:49 +02:00
Juan Lang
b04c4aa6ff
crypt32: Vista doesn't actually add duplicate usage identifiers; fix tests and change Wine to match.
2008-02-16 13:52:15 +01:00
Andrew Talbot
5d886557df
crypt32: Remove unneeded casts.
2007-12-31 17:44:51 +01:00
Juan Lang
ab55435ef1
crypt32: Implement finding an existing certificate in a store.
2007-11-28 11:20:06 +01:00
Juan Lang
b9dae979a4
crypt32: Use memmove rather than memcpy when addresses might overlap.
2007-11-02 12:22:04 +01:00
Juan Lang
4690a9c800
crypt32: Set size when calling CryptDecodeObjectEx without CRYPT_DECODE_ALLOC_FLAG set.
2007-11-02 12:21:41 +01:00
Francois Gouget
80911c12f4
crypt32: Better match the PSDK types and update win32.api to fix the winapi_check warnings.
2007-10-29 12:04:48 +01:00
Juan Lang
5928c698ae
crypt32: Implement CertVerifyRevocation.
2007-10-24 12:33:32 +02:00
Juan Lang
cf8db7305d
crypt32: Add CertVerifyRevocation stub.
2007-10-24 12:33:10 +02:00
Juan Lang
d0e7aaf1be
crypt32: Initialize mask when allocating it.
2007-10-22 12:36:07 +02:00
Juan Lang
cf904c2bc4
crypt32: Use GetSystemTimeAsFileTime rather than GetSystemTime/SystemTimeToFileTime.
2007-10-19 14:21:18 +02:00
Juan Lang
75c13b8e5d
crypt32: Don't assume a maximum of 32 valid usages.
2007-10-05 10:29:37 +02:00
Juan Lang
f8e830a253
crypt32: Reduce valid usages count when removing a valid usage.
2007-10-05 10:29:21 +02:00
Juan Lang
b5531163a9
crypt32: Don't set ret to FALSE when it isn't checked.
2007-10-05 10:29:15 +02:00
Juan Lang
fe7208604f
crypt32: Always set cNumOIDs.
2007-10-05 10:29:10 +02:00
Juan Lang
95c2eb5d69
crypt32: Don't fail if a cert is invalid, Windows doesn't either (tests to follow).
2007-10-05 10:29:04 +02:00
Juan Lang
53b7babcbb
crypt32: Don't fail if buffer is NULL, just return required size.
2007-10-05 10:28:57 +02:00
Juan Lang
851e19b3f9
crypt32: Improve trace.
2007-10-05 10:28:50 +02:00
Juan Lang
daa26ebd5a
crypt32: Fix a silly variable name.
2007-10-05 10:28:45 +02:00
Juan Lang
36886f7dd1
crypt32: Add/improve some traces.
2007-09-28 11:30:40 +02:00
Juan Lang
1547f39800
crypt32: Move CertGetCertificateChain to chain.c.
2007-08-15 10:42:42 +02:00
Juan Lang
f7bcc26cc5
crypt32: Avoid a memory allocation when decoding the subject key identifier extension.
2007-08-14 12:30:05 +02:00
Juan Lang
d49c9d59d1
crypt32: Add missing break.
2007-08-14 12:29:56 +02:00
Juan Lang
84a54b5a1f
crypt32: Trace more return values.
2007-08-10 12:58:17 +02:00
Juan Lang
9da1baa130
crypt32: Use real certificates to test finding subject certificates, and correct finding them.
2007-08-10 12:58:17 +02:00
Juan Lang
bcbf5dcee3
crypt32: Test and correct finding a subject certificate.
2007-08-08 15:32:01 +02:00
Juan Lang
d89528b016
crypt32: Use the authority key identifier to search for a certificate's issuer.
2007-08-08 15:32:00 +02:00
Juan Lang
c91e591a95
crypt32: Fix typo.
2007-08-08 15:32:00 +02:00
Francois Gouget
f67fd2cfa4
crypt32: Better match the PSDK types and fix the winapi_check warnings.
2007-08-06 12:30:48 +02:00
Francois Gouget
74bf9f1f4e
crypt32: Add and use HCRYPTPROV_LEGACY and HCRYPTPROV_OR_NCRYPT_KEY_HANDLE.
2007-08-03 12:44:41 +02:00
Juan Lang
0cc08cccb9
crypt32: Support finding certificates by cert id.
2007-08-03 12:36:49 +02:00
Juan Lang
ac28066b48
crypt32: Test and fix getting a certificate context's key identifier property.
2007-08-03 12:36:43 +02:00
Juan Lang
5885eb3cc3
crypt32: Fix typo in key context property test, and the problems it hid.
2007-08-03 12:36:04 +02:00
Juan Lang
90824039ac
crypt32: Add and use a helper function for getting cert properties.
2007-08-03 12:35:56 +02:00
Juan Lang
db513c0cb5
crypt32: Remove bad special case, it isn't necessary since the outer content specifies the hash algorithm.
2007-08-01 11:29:31 +02:00
Juan Lang
e25b81fd9c
crypt32: Use the outer content's signature algorithm rather than the public key's embedded algorithm.
2007-08-01 11:29:18 +02:00
Juan Lang
79cd672c3d
crypt32: Use public functions to get store access state.
2007-05-15 15:19:33 +02:00
Juan Lang
0170a41e69
crypt32: Don't set ret to TRUE when it already is.
...
Set it to FALSE when it needs to be.
2007-05-15 15:18:50 +02:00
Mounir IDRASSI
7abb204a1b
crypt32: Stub implementation of CertGetCertificateChain.
2007-05-14 14:27:18 +02:00
Mounir IDRASSI
ebe83d561b
crypt32: Fix crash in CertGetCertificateContextProperty when querying length of a hash property.
2007-05-14 14:26:32 +02:00
Mounir IDRASSI
204bdb8755
crypt32: Correct the implementation of CertCreateSelfSignCertificate.
2007-05-10 12:53:37 +02:00
Andrew Talbot
e04f6be381
crypt32: Constify some variables.
2007-04-10 11:04:57 +02:00
Andrew Talbot
c70841fb36
crypt32: Cast-qual warnings fix.
2006-10-24 11:42:47 +02:00
Francois Gouget
22288de732
Fix compilation with gcc 2.95.
2006-10-19 13:35:19 +02:00
Juan Lang
190f9d6546
crypt32: Don't crash when setting CRYPT_KEY_PROV_INFO with empty names.
2006-10-05 11:32:06 +02:00
Juan Lang
94a9b5a2bf
crypt32: Implement CertVerifyValidityNesting.
2006-10-04 20:56:08 +02:00
Juan Lang
f3a1f2bf60
crypt32: Win64 printf format warning fixes.
2006-10-04 09:59:57 +02:00
Juan Lang
44ba993b6e
crypt32: Make it clearer where alg ids come from in CryptVerifyCertificateSignatureEx.
2006-10-03 20:20:29 +02:00
Juan Lang
2868977995
crypt32: Implement CryptSignAndEncodeCertificate.
2006-10-03 11:24:42 +02:00
Juan Lang
4f11b1af28
crypt32: Implement CertGetPublicKeyLength.
2006-09-28 12:23:48 +02:00
Juan Lang
da3eeb4bd5
crypt32: Implement CryptHashPublicKeyInfo.
2006-07-29 11:50:34 +02:00
Juan Lang
30bf5d9adb
crypt32: Fix reading key prov info from serialized data.
2006-07-18 11:18:37 +02:00