Commit Graph

195 Commits

Author SHA1 Message Date
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
Juan Lang 78f59dd7e9 crypt32: Correct self-signed cert creation.
- use correct function names for rpcrt functions
- use CryptGenRandom to create unique serial numbers
2006-07-14 13:32:39 +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 b0dfe4048b crypt32: Implement revocation check in CertVerifySubjectCertificateContext. 2006-07-10 11:50:13 +02:00
Juan Lang 661aecc761 crypt32: Simplify certificate creation.
Decoding already handles signed and unsigned certs, so don't duplicate
that in CertCreateCertificateContext.
2006-06-20 11:05:18 +02:00
Andrew Talbot 1523b8f19e crypt32: Write-strings warning fix. 2006-05-31 11:44:20 +02:00
Juan Lang b29c2335b8 crypt32: Implement CertVerifyCRLTimeValidity and partially implement CertVerifySubjectCertificateContext. 2006-05-26 20:20:50 +02:00
Juan Lang 3be75cebe8 crypt32: Use public functions when finding certificates. 2006-05-25 20:17:55 +02:00
Juan Lang 9f1dd10a48 crypt32: Move cert functions that don't depend on the implementation of stores to cert.c. 2006-05-25 10:37:28 +02:00
Jonathan Ernst 360a3f9142 Update the address of the Free Software Foundation. 2006-05-23 14:11:13 +02:00
Juan Lang b564ef5b03 crypt32: Move CertFindCertificateInStore and related functions to cert.c. 2006-05-20 13:58:16 +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 9adcf560ae crypt32: Implement CRYPT_VERIFY_CERT_SIGN_ISSUER_CERT in CryptVerifyCertificateSignatureEx. 2006-05-10 11:20:26 +02:00
Alexandre Julliard ee05e245a4 crypt32: Avoid crash on NULL pointer in trace. 2006-04-13 11:44:52 +02:00
Juan Lang 95859a1d6a crypt32: Fix a typo caught by coverity. 2006-04-11 11:23:39 +02:00
Juan Lang 992a1af44b crypt32: Implement CertCreateSelfSignCertificate, with some tests. 2006-04-06 11:38:16 +02:00
Juan Lang 89b3191c7c crypt32: Implement CertGetValidUsages. 2006-03-08 11:33:53 +01:00
Juan Lang d740f342b9 crypt32: Add stubs for CryptFindOIDInfo and I_CryptInstallAsn1Module.
Move CryptVerifyMessageSignature stub to main.c.
2006-02-22 18:19:49 +01: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 e9c44cc0c4 crypt32: Fix system stores and a memory leak.
- system stores open both HKLM and HKCU for "current user" locations
- fix a memory leak in certificate properties
2006-02-16 12:18:37 +01:00
Juan Lang db73ae9e3d crypt32: Rename a variable for clarity. 2006-02-15 11:51:24 +01:00
Juan Lang 4b689fbbb5 crypt32: Move break statement to the correct spot. 2006-02-10 14:50:00 +01:00
Juan Lang 69698f9b44 crypt32: Fix up decoding.
- don't use the no copy flag when decoding, the lifetime of the buffer
  to decode isn't guaranteed
- remove some extraneous ternary comparisons
- fix a comment
2006-02-09 12:09:28 +01:00
Alexandre Julliard be22a96847 Include wine/port.h in files that use exceptions. 2006-02-07 16:31:21 +01:00
Juan Lang 66a303d107 crypt32: Support external providers.
- add support for external store providers
- rewrite registry stores as a provider
- fix a memory leak
2006-02-02 13:19:39 +01:00
Juan Lang a67b6f49ec crypt32: Implement more implicit properties, with tests. 2005-12-17 12:24:59 +01:00
Alexandre Julliard ae964ac801 Take advantage of the __EXCEPT_PAGE_FAULT macro. 2005-12-16 17:17:57 +01:00
Juan Lang f702794f35 Implement more OID support functions.
Use the exported OID support functions internally.
Move OID support functions and stubs to a separate file.
2005-12-02 11:28:09 +01:00
Stefan Leichter a03d64b1e5 Added stub for CryptVerifyMessageSignature. 2005-11-30 12:48:51 +01:00
Juan Lang 43d855530b Fix parameter count on some stubs (thanks to Marcus Meissner for
spotting that.)  Add a few more stubs.
2005-11-28 20:52:13 +01:00
Juan Lang fd7a60bc8d Fix some memory leaks. 2005-11-23 15:12:56 +01:00
Juan Lang 7e5a079d25 Implement CertSignSignature and CertVerifySignature(Ex). 2005-10-31 10:04:06 +00:00
Juan Lang 2d6d002b44 Use CryptMem functions for internal memory allocation. 2005-10-28 10:09:26 +00:00
Stefan Leichter 443910ba27 Added stubs for CryptInitOIDFunctionSet and
CryptUnregisterDefaultOIDFunction.
2005-09-15 09:31:20 +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
Alexandre Julliard 38673cc01d Avoid a couple of 'clobbered by longjmp' warnings. 2005-09-08 11:27:26 +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 390d502887 Added a bunch of stubs. 2005-08-26 08:46:48 +00:00
Juan Lang 02cb0c77d7 Implemented CryptHashCertificate. 2005-08-25 09:51:59 +00:00
Juan Lang 5701a0f0b8 Implement a few utility functions, with tests. 2005-07-07 20:27:55 +00:00
Juan Lang 5b3499de68 Get rid of a magic number, and improve stubs of
CertOpenSystemStoreA/W.
2005-06-03 11:25:38 +00:00
Mike McCormack 674e237231 Improve the CertStore code a little. 2004-11-10 01:31:50 +00:00
Stefan Leichter 727a596e9b Added missing line break. 2004-08-26 00:30:23 +00:00
Stefan Leichter 1550f5ef13 Added stub for CertFindCertificateInStore. 2004-08-09 22:55:35 +00:00
Juan Lang 1795994d53 - correct some prototypes, add some defines
- stub a couple more functions
2004-03-01 21:19:37 +00:00