Commit Graph

126 Commits

Author SHA1 Message Date
Paul Vriens 8218518695 crypt32: Fix CertDuplicateCertificateContext for a passed NULL context. 2009-01-29 14:31:10 +01:00
Michael Stefaniuc e1797a7367 crypt32/tests: Remove some superfluous pointer casts.
There is no need to cast the pointers passed to the penultimate
argument of the CryptDecodeObjectEx and CryptEncodeObjectEx functions
as those expect void pointers.
2009-01-12 13:05:09 +01:00
Alexandre Julliard 7181c38dcc crypt32/tests: Fix handle size in CERT_KEY_PROV_HANDLE_PROP_ID for Win64. 2009-01-05 15:44:37 +01:00
Juan Lang de2a187bb7 crypt32: Don't check for no data to decode in CryptDecodeObject{Ex}, doing so masks some errors. 2008-10-17 11:43:48 +02:00
Juan Lang ad1c1c6107 crypt32: Fix a test failure on Win98. 2008-10-16 11:22:11 +02:00
Detlef Riekenberg 846e613b87 crypt32/tests: Fix a test on win9x. 2008-10-13 12:03:05 +02:00
James Hawkins 5114d652d2 crypt32: Fix several failing tests in win9x. 2008-09-29 17:25:25 -05:00
James Hawkins 094545079c crypt32: Fix several failing tests in win9x. 2008-09-03 14:21:42 +02:00
James Hawkins f9b0620f9f crypt32: Fix a failing test in XP. 2008-08-29 13:21:57 +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 b18919bef7 crypt32: Add tests for CryptHashToBeSigned. 2008-08-19 12:20:04 +02:00
Paul Vriens dc6fc6ad8c crypt32/tests: Use CryptAcquireContextA instead of CryptAcquireContextW. 2008-08-01 12:21:53 +02:00
Paul Vriens 6d33798265 crypt32/tests: Don't crash on some win9x boxes. 2008-07-31 13:03:28 +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
James Hawkins 99d3e4c92d crypt32: Remove tests for properties not present on all systems. 2008-04-21 12:12:36 +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
Juan Lang b579eac22f crypt32: Allow some last errors set by Vista. 2008-02-16 13:52:04 +01:00
Juan Lang 348261e6ab crypt32: Fix a test failure on Vista, and make Wine match the newer (and saner) behavior. 2008-02-16 13:51:59 +01:00
Juan Lang 79c39e379f crypt32: Add to error message to track down NT4 failures. 2008-02-16 13:51:50 +01:00
Francois Gouget c69d47fa49 crypt32/tests: Get the tests running on Windows 98. 2007-11-20 16:45:02 +01:00
Juan Lang 9429504c70 crypt32: Fix a leak in the tests. 2007-11-02 12:21:23 +01:00
Juan Lang 8240395073 crypt32: Remove a test because of a Windows 2003 SP1 bug. 2007-10-26 12:46:30 +02:00
Juan Lang 5928c698ae crypt32: Implement CertVerifyRevocation. 2007-10-24 12:33:32 +02:00
Juan Lang 3b85a7946e crypt32: Add basic test for CertVerifyRevocation. 2007-10-24 12:33:24 +02:00
Juan Lang dbefd907b6 crypt32: Remove tests that cause memory corruption. 2007-10-22 12:36:07 +02:00
Juan Lang 9abd47ca7a crypt32: Add tests for CertGetValidUsages. 2007-10-05 10:29:28 +02:00
Juan Lang 6aa03fc4c3 crypt32: Add more tests for getting issuer cert from store.
Show that certificates are added to memory stores at the head rather
than the tail.
2007-09-10 15:48:10 +02:00
Paul Vriens c0b88f880f crypt32/tests: Make tests run again on win95. 2007-08-14 12:46:38 +02:00
Juan Lang aa0f823429 crypt32: Test finding the issuer of a certificate. 2007-08-14 12:30:18 +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 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 85eeccc585 crypt32: Don't fail when CryptVerifyCertificateSignatureEx is missing, use skip (and get rid of unnecessary indenting). 2007-07-02 13:32:57 +02:00
Mounir IDRASSI e5256d9840 crypt32: Fix CertAddCertificateContextToStore when called with CERT_STORE_ADD_USE_EXISTING. 2007-05-21 12:38:56 +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
Paul Vriens cd3161eb32 crypt32/tests: Fix compilation for older gcc versions (and MinGW). 2007-01-15 14:39:03 +01:00
Paul Vriens 259c06ffc9 crypt32/tests: Cast-qual warning fixes. 2007-01-12 20:41:29 +01:00
Marcus Meissner f0280cbd1e made functions and variables static in some testcases. 2006-12-11 12:18:29 +01:00
Juan Lang 2868977995 crypt32: Implement CryptSignAndEncodeCertificate. 2006-10-03 11:24:42 +02:00
Juan Lang 353cd81c9a crypt32/tests: Win64 printf format warning fixes. 2006-10-02 14:40:14 +02:00
Juan Lang 4f11b1af28 crypt32: Implement CertGetPublicKeyLength. 2006-09-28 12:23:48 +02:00
Juan Lang 09765f7db4 crypt32: Reduce indent level of tests. 2006-09-26 11:42:03 +02:00
Juan Lang c33f0c555e crypt32: Test exporting key acquired through CryptAcquireCertificatePrivateKey. 2006-09-21 11:16:03 +02:00
Juan Lang da3eeb4bd5 crypt32: Implement CryptHashPublicKeyInfo. 2006-07-29 11:50:34 +02:00
Juan Lang 273b76570e crypt32: Implement CryptAcquireCertificatePrivateKey. 2006-07-12 13:16:02 +02:00
Juan Lang 4b8845ae12 crypt32: Implement key context property, with tests. 2006-07-11 12:40:22 +02:00
Juan Lang 6f75b5e4ad crypt32: Rearrange functions a bit. 2006-06-20 20:37:02 +02:00
Alexandre Julliard 52d6077f8b crypt32/tests: Don't use sizeof in ok() to avoid printf format warnings. 2006-06-13 14:02:03 +02:00
Andrew Talbot 9a1e6aae55 crypt32/tests: Write-strings warning fix. 2006-06-01 11:08:21 +02:00
Juan Lang b29c2335b8 crypt32: Implement CertVerifyCRLTimeValidity and partially implement CertVerifySubjectCertificateContext. 2006-05-26 20:20:50 +02:00
Jonathan Ernst 360a3f9142 Update the address of the Free Software Foundation. 2006-05-23 14:11:13 +02:00
Juan Lang d0505de674 crypt32: Implement CertCompare functions, with tests. 2006-05-16 20:24:12 +02:00
Juan Lang 7e9ba76da1 crypt32: Use the HRESULT synonyms for converted Win32 error codes. 2006-05-15 11:06:04 +02:00
Juan Lang 992a1af44b crypt32: Implement CertCreateSelfSignCertificate, with some tests. 2006-04-06 11:38:16 +02:00
Juan Lang 079afa21de crypt32: Implement enhanced key usage.
Implement CertGetEnhancedKeyUsage, CertSetEnhancedKeyUsage,
CertAddEnhancedKeyUsageIdentifier, and
CertRemoveEnhancedKeyUsageIdentifier.
2006-02-18 15:49:54 +01:00
Juan Lang 2002e227cf crypt32: Move certificate store functions to their own file. 2006-02-17 17:36:52 +01:00
Juan Lang 15e5dc29c1 crypt32: Simplify CertOpenSystemStore, fix CertDuplicateCertificateContext.
- now that CertOpenStore is correct for system stores, simplify
  CertOpenSystemStore
- correct CertDuplicateCertificateStore, with a test
2006-02-16 19:38:45 +01:00
Juan Lang a67b6f49ec crypt32: Implement more implicit properties, with tests. 2005-12-17 12:24:59 +01:00
Juan Lang fd7a60bc8d Fix some memory leaks. 2005-11-23 15:12:56 +01:00
Saulius Krasuckas 9d2c6a9ce9 Don't call missing API function. 2005-11-14 11:22:34 +00:00
Saulius Krasuckas 1d8d0dd0da Make Crypt32 tests loadable on Win98. 2005-11-08 10:57:28 +00:00
Juan Lang 7e5a079d25 Implement CertSignSignature and CertVerifySignature(Ex). 2005-10-31 10:04:06 +00:00
Juan Lang 807b11b363 When decoding a signed cert, make sure it's really a cert. 2005-09-12 10:08:34 +00:00
Juan Lang 25cb6e081f - call CertFreeCertificateContext from CertDeleteCertificateFromStore
- fix some ref counting problems
2005-09-09 09:09:45 +00:00
Juan Lang 300c10a3b7 - implement system stores
- remove an intermittently failing registry test
2005-09-08 18:56:14 +00:00
Juan Lang 1cf56599bd Implement system registry stores. 2005-09-08 11:00:51 +00:00
Juan Lang 5ef9d88cab Implement registry stores. 2005-09-07 13:25:56 +00:00
Juan Lang 3bf9c165fa Correct a test that incorrectly showed signed certs couldn't be added
to a mem store.
Support signed certs in mem stores.
Correct use of a freed pointer.
2005-09-03 15:02:57 +00:00
Juan Lang 6389dbc979 Implement CertAddSerializedElementToStore. 2005-09-02 14:38:05 +00:00
Juan Lang 9e8c0bbdb3 Implement collection stores. 2005-08-30 09:59:03 +00:00
Juan Lang 8d1cf4ebec Implemented memory cert stores. 2005-08-29 12:18:00 +00:00
Juan Lang 02cb0c77d7 Implemented CryptHashCertificate. 2005-08-25 09:51:59 +00:00