wine/eterwine.git
14 years agocrypt32: Only trace a usage match if it's not empty.
Juan Lang [Fri, 20 Nov 2009 20:07:10 +0000 (12:07 -0800)]
crypt32: Only trace a usage match if it's not empty.

14 years agocrypt32: Test verifying the enhanced key usage of a chain.
Juan Lang [Fri, 20 Nov 2009 20:06:47 +0000 (12:06 -0800)]
crypt32: Test verifying the enhanced key usage of a chain.

14 years agocrypt32: CertFindCRLInStore with find type CRL_FIND_ISSUED_FOR shouldn't check whethe...
Juan Lang [Thu, 19 Nov 2009 19:50:32 +0000 (11:50 -0800)]
crypt32: CertFindCRLInStore with find type CRL_FIND_ISSUED_FOR shouldn't check whether the CRL is valid for the subject certificate.

14 years agocrypt32: Correct CertIsValidCRLForCertificate for certificates that do not contain...
Juan Lang [Thu, 19 Nov 2009 19:48:53 +0000 (11:48 -0800)]
crypt32: Correct CertIsValidCRLForCertificate for certificates that do not contain a CRL dist points extension.

14 years agocrypt32: Fix tests on older Windows versions.
Juan Lang [Thu, 19 Nov 2009 18:46:29 +0000 (10:46 -0800)]
crypt32: Fix tests on older Windows versions.

14 years agocrypt32: Assume revocation server is offline if revocation status isn't known.
Juan Lang [Thu, 19 Nov 2009 18:49:31 +0000 (10:49 -0800)]
crypt32: Assume revocation server is offline if revocation status isn't known.

14 years agocrypt32: Fix a typo.
Juan Lang [Thu, 19 Nov 2009 18:45:46 +0000 (10:45 -0800)]
crypt32: Fix a typo.

14 years agocrypt32: Test revocation checking with CertGetCertificateChain.
Juan Lang [Thu, 19 Nov 2009 18:36:55 +0000 (10:36 -0800)]
crypt32: Test revocation checking with CertGetCertificateChain.

14 years agocrypt32: Add more tests for CertVerifyRevocation.
Juan Lang [Thu, 19 Nov 2009 18:17:37 +0000 (10:17 -0800)]
crypt32: Add more tests for CertVerifyRevocation.

14 years agocrypt32: Add support for CRL_FIND_ISSUED_BY_AKI_FLAG to CertFindCRLInStore.
Juan Lang [Thu, 19 Nov 2009 00:54:49 +0000 (16:54 -0800)]
crypt32: Add support for CRL_FIND_ISSUED_BY_AKI_FLAG to CertFindCRLInStore.

14 years agocrypt32: Add more tests for CertFindCRLInStore.
Juan Lang [Thu, 19 Nov 2009 00:36:15 +0000 (16:36 -0800)]
crypt32: Add more tests for CertFindCRLInStore.

14 years agocrypt32: Add support for CRL_FIND_ISSUED_BY_SIGNATURE_FLAG to CertFindCRLInStore.
Juan Lang [Thu, 19 Nov 2009 00:27:49 +0000 (16:27 -0800)]
crypt32: Add support for CRL_FIND_ISSUED_BY_SIGNATURE_FLAG to CertFindCRLInStore.

14 years agocrypt32: Add basic flags tests flags for CertFindCRLInStore with find type CRL_FIND_I...
Juan Lang [Thu, 19 Nov 2009 00:26:48 +0000 (16:26 -0800)]
crypt32: Add basic flags tests flags for CertFindCRLInStore with find type CRL_FIND_ISSUED_BY.

14 years agocrypt32: More fully implement CertIsValidCRLForCertificate.
Juan Lang [Thu, 19 Nov 2009 00:21:09 +0000 (16:21 -0800)]
crypt32: More fully implement CertIsValidCRLForCertificate.

14 years agocrypt32: Correct tests for CertIsValidCRLForCertificate.
Juan Lang [Wed, 18 Nov 2009 22:01:53 +0000 (14:01 -0800)]
crypt32: Correct tests for CertIsValidCRLForCertificate.

14 years agocrypt32: Remove a redundant test.
Juan Lang [Wed, 18 Nov 2009 21:56:55 +0000 (13:56 -0800)]
crypt32: Remove a redundant test.

14 years agocrypt32: Implement CertFindCRLInStore for find type CRL_FIND_ISSUED_FOR.
Juan Lang [Wed, 18 Nov 2009 18:40:08 +0000 (10:40 -0800)]
crypt32: Implement CertFindCRLInStore for find type CRL_FIND_ISSUED_FOR.

14 years agocrypt32: Add tests for CertFindCRLInStore with find type CRL_FIND_ISSUED_FOR.
Juan Lang [Wed, 18 Nov 2009 18:26:06 +0000 (10:26 -0800)]
crypt32: Add tests for CertFindCRLInStore with find type CRL_FIND_ISSUED_FOR.

14 years agocrypt32/tests: Fix a test failure on older crypt32.
Paul Vriens [Wed, 18 Nov 2009 14:12:52 +0000 (15:12 +0100)]
crypt32/tests: Fix a test failure on older crypt32.

14 years agocrypt32: Remove an unnecessary test for the extended key usage extension in CA certif...
Juan Lang [Tue, 17 Nov 2009 22:40:08 +0000 (14:40 -0800)]
crypt32: Remove an unnecessary test for the extended key usage extension in CA certificates.

14 years agocrypt32: Trace reasons for name constraint failure.
Juan Lang [Tue, 17 Nov 2009 22:06:44 +0000 (14:06 -0800)]
crypt32: Trace reasons for name constraint failure.

14 years agocrypt32: Only fail directory name comparison if a directory name constraint is presen...
Juan Lang [Tue, 17 Nov 2009 22:01:11 +0000 (14:01 -0800)]
crypt32: Only fail directory name comparison if a directory name constraint is present and doesn't match.

14 years agocrypt32: Don't apply directory name constraints to an empty subject name.
Juan Lang [Tue, 17 Nov 2009 21:57:52 +0000 (13:57 -0800)]
crypt32: Don't apply directory name constraints to an empty subject name.

14 years agocrypt32: Accept a certificate if its name matches any permitted subtree of a name...
Juan Lang [Tue, 17 Nov 2009 21:57:25 +0000 (13:57 -0800)]
crypt32: Accept a certificate if its name matches any permitted subtree of a name constraint.

14 years agocrypt32: Check email address in subject name against rfc822 name constraints.
Juan Lang [Tue, 17 Nov 2009 21:34:00 +0000 (13:34 -0800)]
crypt32: Check email address in subject name against rfc822 name constraints.

14 years agocrypt32: Apply name constraints to subject name.
Juan Lang [Tue, 17 Nov 2009 21:33:35 +0000 (13:33 -0800)]
crypt32: Apply name constraints to subject name.

14 years agocrypt32: Use helper function to compare a subject alternate name with name constraints.
Juan Lang [Tue, 17 Nov 2009 20:19:46 +0000 (12:19 -0800)]
crypt32: Use helper function to compare a subject alternate name with name constraints.

14 years agocrypt32: Only apply a name constraint if the name form is present.
Juan Lang [Tue, 17 Nov 2009 20:06:18 +0000 (12:06 -0800)]
crypt32: Only apply a name constraint if the name form is present.

14 years agocrypt32: Partially implement checking name constraints with directory names.
Juan Lang [Tue, 17 Nov 2009 19:25:13 +0000 (11:25 -0800)]
crypt32: Partially implement checking name constraints with directory names.

14 years agocrypt32: Use helper functions to match excluded and permitted subtrees of name constr...
Juan Lang [Tue, 17 Nov 2009 19:51:31 +0000 (11:51 -0800)]
crypt32: Use helper functions to match excluded and permitted subtrees of name constraints.

14 years agocrypt32: Let caller set error codes when name constraints aren't met.
Juan Lang [Tue, 17 Nov 2009 02:16:34 +0000 (18:16 -0800)]
crypt32: Let caller set error codes when name constraints aren't met.

14 years agocrypt32: Remove an unnecessary if.
Juan Lang [Tue, 17 Nov 2009 02:12:16 +0000 (18:12 -0800)]
crypt32: Remove an unnecessary if.

14 years agocrypt32: Prohibit name constraints that contain neither an excluded nor a permitted...
Juan Lang [Tue, 17 Nov 2009 01:55:23 +0000 (17:55 -0800)]
crypt32: Prohibit name constraints that contain neither an excluded nor a permitted subtree.

14 years agocrypt32/tests: Fix another test failure.
Juan Lang [Mon, 16 Nov 2009 22:23:17 +0000 (14:23 -0800)]
crypt32/tests: Fix another test failure.

14 years agocrypt32: Implement CertIsRDNAttrsInCertificateName.
Juan Lang [Tue, 17 Nov 2009 01:08:03 +0000 (17:08 -0800)]
crypt32: Implement CertIsRDNAttrsInCertificateName.

14 years agocrypt32: Add tests for CertIsRDNAttrsInCertificateName.
Juan Lang [Mon, 16 Nov 2009 21:42:21 +0000 (13:42 -0800)]
crypt32: Add tests for CertIsRDNAttrsInCertificateName.

14 years agocrypt32: Add stub for CertIsRDNAttrsInCertificateName.
Juan Lang [Mon, 16 Nov 2009 19:59:29 +0000 (11:59 -0800)]
crypt32: Add stub for CertIsRDNAttrsInCertificateName.

14 years agocrypt32: Add more tests for CertCompareCertificateName.
Juan Lang [Mon, 16 Nov 2009 19:48:46 +0000 (11:48 -0800)]
crypt32: Add more tests for CertCompareCertificateName.

14 years agocrypt32: Correctly match subdomains with dns name constraints.
Juan Lang [Sat, 14 Nov 2009 02:05:11 +0000 (18:05 -0800)]
crypt32: Correctly match subdomains with dns name constraints.

14 years agocrypt32: If a hostname in a URI or rfc822 name constraint doesn't begin with '.'...
Juan Lang [Sat, 14 Nov 2009 01:51:55 +0000 (17:51 -0800)]
crypt32: If a hostname in a URI or rfc822 name constraint doesn't begin with '.', a match must be exact.

14 years agocrypt32: Only compare the hostname portion of a URL when checking against a name...
Juan Lang [Sat, 14 Nov 2009 01:44:42 +0000 (17:44 -0800)]
crypt32: Only compare the hostname portion of a URL when checking against a name constraint.

14 years agocrypt32: Include name constraints errors in the chain's error status.
Juan Lang [Sat, 14 Nov 2009 00:37:52 +0000 (16:37 -0800)]
crypt32: Include name constraints errors in the chain's error status.

14 years agocrypt32: Trace method used to find an issuer.
Juan Lang [Fri, 13 Nov 2009 21:49:39 +0000 (13:49 -0800)]
crypt32: Trace method used to find an issuer.

14 years agocrypt32: Fix more test failures.
Juan Lang [Fri, 13 Nov 2009 18:58:50 +0000 (10:58 -0800)]
crypt32: Fix more test failures.

14 years agocrypt32: Update a comment.
Juan Lang [Fri, 13 Nov 2009 16:33:34 +0000 (08:33 -0800)]
crypt32: Update a comment.

14 years agocrypt32: Set CERT_TRUST_HAS_VALID_NAME_CONSTRAINTS when a certificate's name constrai...
Juan Lang [Fri, 13 Nov 2009 01:05:07 +0000 (17:05 -0800)]
crypt32: Set CERT_TRUST_HAS_VALID_NAME_CONSTRAINTS when a certificate's name constraints are met.

14 years agocrypt32: Fix test failures.
Juan Lang [Thu, 12 Nov 2009 20:48:05 +0000 (12:48 -0800)]
crypt32: Fix test failures.

14 years agocrypt32: Accept any matching dNSName in a subject alternate name.
Juan Lang [Thu, 12 Nov 2009 20:26:05 +0000 (12:26 -0800)]
crypt32: Accept any matching dNSName in a subject alternate name.

14 years agocrypt32: Add tests for cs.stanford.edu's chain.
Juan Lang [Thu, 12 Nov 2009 18:47:04 +0000 (10:47 -0800)]
crypt32: Add tests for cs.stanford.edu's chain.

14 years agocrypt32: Use broken() to mark an expected result from a broken version of crypt32.
Juan Lang [Thu, 12 Nov 2009 18:35:12 +0000 (10:35 -0800)]
crypt32: Use broken() to mark an expected result from a broken version of crypt32.

14 years agocrypt32: Implement matching a certificate with a wildcard in its name.
Juan Lang [Thu, 12 Nov 2009 01:45:49 +0000 (17:45 -0800)]
crypt32: Implement matching a certificate with a wildcard in its name.

14 years agocrypt32: Test matching a certificate with a wildcard in its name.
Juan Lang [Thu, 12 Nov 2009 00:28:23 +0000 (16:28 -0800)]
crypt32: Test matching a certificate with a wildcard in its name.

14 years agocrypt32: Add openssl.org's cert to the tested chains.
Juan Lang [Thu, 12 Nov 2009 00:25:21 +0000 (16:25 -0800)]
crypt32: Add openssl.org's cert to the tested chains.

14 years agocrypt32: Fix more test failures on older crypt32 versions.
Juan Lang [Wed, 11 Nov 2009 20:40:19 +0000 (12:40 -0800)]
crypt32: Fix more test failures on older crypt32 versions.

14 years agocrypt32: Fix more test failures on older crypt32 versions.
Juan Lang [Wed, 11 Nov 2009 20:21:44 +0000 (12:21 -0800)]
crypt32: Fix more test failures on older crypt32 versions.

14 years agocrypt32/tests: Fix test failures.
Juan Lang [Wed, 11 Nov 2009 19:22:45 +0000 (11:22 -0800)]
crypt32/tests: Fix test failures.

14 years agocrypt32: Fix test failures on multiple Windows versions.
Juan Lang [Tue, 10 Nov 2009 22:53:10 +0000 (14:53 -0800)]
crypt32: Fix test failures on multiple Windows versions.

14 years agocrypt32: Correct error when a matching name constraint is found.
Juan Lang [Tue, 10 Nov 2009 22:40:01 +0000 (14:40 -0800)]
crypt32: Correct error when a matching name constraint is found.

14 years agocrypt32: Stop reading a serialized store if a non-context prop ID appears before...
Juan Lang [Tue, 10 Nov 2009 20:57:54 +0000 (12:57 -0800)]
crypt32: Stop reading a serialized store if a non-context prop ID appears before a context prop ID.

14 years agocrypt32: Trace cert version.
Juan Lang [Sat, 7 Nov 2009 02:00:05 +0000 (18:00 -0800)]
crypt32: Trace cert version.

14 years agocrypt32: Fix test failures across Windows versions.
Juan Lang [Tue, 10 Nov 2009 19:47:59 +0000 (11:47 -0800)]
crypt32: Fix test failures across Windows versions.

14 years agocrypt32: Fix some test failures on older crypt32 versions.
Juan Lang [Tue, 10 Nov 2009 19:16:47 +0000 (11:16 -0800)]
crypt32: Fix some test failures on older crypt32 versions.

14 years agocrypt32: Update a comment to reflect a fixed vulnerability.
Juan Lang [Tue, 10 Nov 2009 18:18:36 +0000 (10:18 -0800)]
crypt32: Update a comment to reflect a fixed vulnerability.

14 years agocrypt32: Correct error when a constrained, permitted name type isn't found in the...
Juan Lang [Tue, 10 Nov 2009 00:52:00 +0000 (16:52 -0800)]
crypt32: Correct error when a constrained, permitted name type isn't found in the subject name.

14 years agocrypt32: Use helper function to find the subject alternate name extension wherever...
Juan Lang [Tue, 10 Nov 2009 00:43:32 +0000 (16:43 -0800)]
crypt32: Use helper function to find the subject alternate name extension wherever it's needed.

14 years agocrypt32: Correct error when the subject alternate name can't be decoded.
Juan Lang [Tue, 10 Nov 2009 00:47:54 +0000 (16:47 -0800)]
crypt32: Correct error when the subject alternate name can't be decoded.

14 years agocrypt32: Check the issued certificate for name constraint violations, not the issuing...
Juan Lang [Tue, 10 Nov 2009 00:35:43 +0000 (16:35 -0800)]
crypt32: Check the issued certificate for name constraint violations, not the issuing certificate.

14 years agocrypt32: Add more tests of name constraints.
Juan Lang [Tue, 10 Nov 2009 00:15:20 +0000 (16:15 -0800)]
crypt32: Add more tests of name constraints.

14 years agocrypt32: Test more chains against different policies.
Juan Lang [Tue, 10 Nov 2009 00:11:58 +0000 (16:11 -0800)]
crypt32: Test more chains against different policies.

14 years agocrypt32: Disallow embedded NULLs in alternate names.
Juan Lang [Tue, 10 Nov 2009 00:06:02 +0000 (16:06 -0800)]
crypt32: Disallow embedded NULLs in alternate names.

14 years agocrypt32: Test decoding alternate names with embedded NULLs.
Juan Lang [Mon, 9 Nov 2009 23:58:58 +0000 (15:58 -0800)]
crypt32: Test decoding alternate names with embedded NULLs.

14 years agocrypt32: Test encoding and decoding name values with embedded NULLs.
Juan Lang [Mon, 9 Nov 2009 23:57:37 +0000 (15:57 -0800)]
crypt32: Test encoding and decoding name values with embedded NULLs.

14 years agocrypt32: Reject certificates whose fields don't match their versions.
Juan Lang [Fri, 6 Nov 2009 22:38:40 +0000 (14:38 -0800)]
crypt32: Reject certificates whose fields don't match their versions.

14 years agocrypt32: Forbid minimum or maximum fields in name constraints.
Juan Lang [Fri, 6 Nov 2009 21:56:09 +0000 (13:56 -0800)]
crypt32: Forbid minimum or maximum fields in name constraints.

14 years agocrypt32: Fix decoding names when CRYPT_DECODE_ALLOC_FLAG is not specified.
Juan Lang [Sat, 7 Nov 2009 01:59:09 +0000 (17:59 -0800)]
crypt32: Fix decoding names when CRYPT_DECODE_ALLOC_FLAG is not specified.

14 years agocrypt32: Fix decoding unicode names when CRYPT_DECODE_ALLOC_FLAG is not specified.
Juan Lang [Sat, 7 Nov 2009 01:57:40 +0000 (17:57 -0800)]
crypt32: Fix decoding unicode names when CRYPT_DECODE_ALLOC_FLAG is not specified.

14 years agocrypt32: Pass the correct pointer into CertificateFindStore.
Marcus Meissner [Mon, 9 Nov 2009 12:44:22 +0000 (13:44 +0100)]
crypt32: Pass the correct pointer into CertificateFindStore.

14 years agocrypt32: Fix test failures on Win9x/NT4.
Juan Lang [Fri, 6 Nov 2009 21:08:38 +0000 (13:08 -0800)]
crypt32: Fix test failures on Win9x/NT4.

14 years agocrypt32: Implement decoding cert policy constraints.
Juan Lang [Fri, 6 Nov 2009 20:47:15 +0000 (12:47 -0800)]
crypt32: Implement decoding cert policy constraints.

14 years agocrypt32: Implement encoding cert policy constraints.
Juan Lang [Fri, 6 Nov 2009 20:35:49 +0000 (12:35 -0800)]
crypt32: Implement encoding cert policy constraints.

14 years agocrypt32: Add tests for encoding/decoding cert policy constraints.
Juan Lang [Fri, 6 Nov 2009 20:28:43 +0000 (12:28 -0800)]
crypt32: Add tests for encoding/decoding cert policy constraints.

14 years agocrypt32: Implement decoding cert policy mappings.
Juan Lang [Fri, 6 Nov 2009 20:26:59 +0000 (12:26 -0800)]
crypt32: Implement decoding cert policy mappings.

14 years agocrypt32: Implement encoding cert policy mappings.
Juan Lang [Fri, 6 Nov 2009 19:52:19 +0000 (11:52 -0800)]
crypt32: Implement encoding cert policy mappings.

14 years agocrypt32: Add tests for encoding/decoding cert policy mappings.
Juan Lang [Fri, 6 Nov 2009 19:33:52 +0000 (11:33 -0800)]
crypt32: Add tests for encoding/decoding cert policy mappings.

14 years agocrypt32: Fix decoding cert issuer/subject unique ids.
Juan Lang [Fri, 6 Nov 2009 19:23:17 +0000 (11:23 -0800)]
crypt32: Fix decoding cert issuer/subject unique ids.

14 years agocrypt32: Fix encoding cert issuer/subject unique ids.
Juan Lang [Fri, 6 Nov 2009 19:21:51 +0000 (11:21 -0800)]
crypt32: Fix encoding cert issuer/subject unique ids.

14 years agocrypt32: Add more tests of cert encoding/decoding.
Juan Lang [Fri, 6 Nov 2009 19:19:55 +0000 (11:19 -0800)]
crypt32: Add more tests of cert encoding/decoding.

14 years agocrypt32: Check the result of CryptAcquireContextW() when initializing default provider.
Paul Chitescu [Fri, 6 Nov 2009 12:18:14 +0000 (14:18 +0200)]
crypt32: Check the result of CryptAcquireContextW() when initializing default provider.

14 years agocrypt32: Permit lack of basic constraints extension on root certificates.
Juan Lang [Thu, 5 Nov 2009 21:15:43 +0000 (13:15 -0800)]
crypt32: Permit lack of basic constraints extension on root certificates.

14 years agocrypt32: Permit lack of key usage extension on root certificates.
Juan Lang [Thu, 5 Nov 2009 21:12:07 +0000 (13:12 -0800)]
crypt32: Permit lack of key usage extension on root certificates.

This reverts 60770fb011b0a60d7862e7fe9c7a6d24d68ac0ad, although it
updates the comments to give a reason.  Thanks to Matt Van Gundy for
pointing it out to me.

14 years agocrypt32: Don't free a file store's mem store, it's already freed by the provider...
Juan Lang [Thu, 5 Nov 2009 00:46:13 +0000 (16:46 -0800)]
crypt32: Don't free a file store's mem store, it's already freed by the provider store.

14 years agocrypt32: Add a warning if a store's ref count is invalid.
Juan Lang [Thu, 5 Nov 2009 00:45:52 +0000 (16:45 -0800)]
crypt32: Add a warning if a store's ref count is invalid.

14 years agocrypt32: Don't copy past end of buffer when removing the last string in a multistring.
Juan Lang [Thu, 5 Nov 2009 00:29:33 +0000 (16:29 -0800)]
crypt32: Don't copy past end of buffer when removing the last string in a multistring.

14 years agocrypt32: Fix a test failure on NT 4.
Juan Lang [Wed, 4 Nov 2009 19:58:28 +0000 (11:58 -0800)]
crypt32: Fix a test failure on NT 4.

14 years agocrypt32: Implement CertStoreControl for collection stores.
Juan Lang [Tue, 3 Nov 2009 19:02:03 +0000 (11:02 -0800)]
crypt32: Implement CertStoreControl for collection stores.

14 years agocrypt32: Add an implementation of CertControlStore for memory stores.
Juan Lang [Tue, 3 Nov 2009 18:59:50 +0000 (10:59 -0800)]
crypt32: Add an implementation of CertControlStore for memory stores.

14 years agocrypt32: Add tests of committing a collection store.
Juan Lang [Tue, 3 Nov 2009 18:58:19 +0000 (10:58 -0800)]
crypt32: Add tests of committing a collection store.

14 years agocrypt32: Eliminate a double free in the tests.
Juan Lang [Wed, 4 Nov 2009 01:22:10 +0000 (17:22 -0800)]
crypt32: Eliminate a double free in the tests.

14 years agocrypt32: Rename a function to reflect its behavior better, and return whether it...
Juan Lang [Sat, 31 Oct 2009 02:06:44 +0000 (19:06 -0700)]
crypt32: Rename a function to reflect its behavior better, and return whether it succeeds.

14 years agocrypt32: Release contexts when removing them from the mem store.
Juan Lang [Sat, 31 Oct 2009 01:48:22 +0000 (18:48 -0700)]
crypt32: Release contexts when removing them from the mem store.