Commit Graph

168 Commits

Author SHA1 Message Date
Juan Lang 5fc947e0b6 crypt32: Fix test failures on NT4. 2008-10-09 12:29:26 +02:00
Paul Vriens 9b4a5cd065 crypt32/tests: Don't crash on win9x. 2008-09-18 12:24:07 +02:00
Francois Gouget 2797e8fcb6 crypt32/tests: Win98 is missing Crypt{Encode,Decode}ObjectEx(). 2008-09-12 11:40:07 +02:00
Francois Gouget 6bd4bf66e2 crypt32: Fix compilation on systems that don't support nameless unions. 2008-09-02 13:59:31 +02:00
James Hawkins a50fc2cc16 crypt32: Split the test for ret and last error up. 2008-08-29 13:26:14 +02:00
Juan Lang 7ddb29f6fd crypt32: Add tests showing signed CTLs aren't decoded by CryptDecodeObject. 2008-08-29 12:23:58 +02:00
Juan Lang ff0760dcd3 crypt32: Implement CTL decoding. 2008-08-28 11:49:37 +02:00
Juan Lang a96361361d crypt32: Implement encoding CTLs. 2008-08-28 11:49:34 +02:00
Juan Lang 26d643d3e5 crypt32: Add tests for encoding/decoding CTLs. 2008-08-28 11:49:29 +02:00
Juan Lang e594d24006 crypt32: Implement authority info access decoding. 2008-08-28 11:24:30 +02:00
Juan Lang 7e848b6cdc crypt32: Implement authority info access encoding. 2008-08-28 11:03:56 +02:00
Juan Lang 76f400b771 crypt32: Test encoding/decoding the authority info access extension. 2008-08-28 11:03:49 +02:00
Juan Lang ac5c7d22d0 crypt32: Add support for decoding PKCS_SMIME_CAPABILITIES. 2008-08-21 11:36:01 +02:00
Juan Lang db6c8e23b6 crypt32: Add support for encoding PKCS_SMIME_CAPABILITIES. 2008-08-21 11:35:54 +02:00
Juan Lang 70744f07d1 crypt32: Add tests for encoding/decoding PKCS_SMIME_CAPABILITIES. With help from Huw Davies. 2008-08-21 11:35:40 +02:00
Juan Lang 9b953c5f1e crypt32: Implement decoding CMSG_CMS_SIGNER_INFO. 2008-08-20 10:23:57 +02:00
Juan Lang 817adc5599 crypt32: Implement CMSG_CMS_SIGNER_INFO encoding. 2008-08-20 10:23:50 +02:00
Juan Lang d71e6e96dd crypt32: Add tests for encoding/decoding CMSG_CMS_SIGNER_INFO. 2008-08-20 10:23:42 +02:00
Michael Karcher 8fa3b6871f crypt32: Pass on aiKeyAlg on RSA key import. 2008-05-26 17:59:07 +02:00
Juan Lang 5618fdb3df crypt32: Fix test failures on NT4. 2008-02-16 13:51:44 +01:00
Francois Gouget d0794c4aeb Assorted spelling fixes. 2008-01-23 21:16:22 +01:00
Francois Gouget c69d47fa49 crypt32/tests: Get the tests running on Windows 98. 2007-11-20 16:45:02 +01:00
Juan Lang 4c981e20ef crypt32: Fix another leak in tests. 2007-11-09 12:24:46 +01:00
Juan Lang f6bfa45970 crypt32: Fix a couple leaks in test. 2007-11-09 12:24:40 +01:00
Juan Lang c5d5c5b63a crypt32: Fail decoding a CRL entry if the serial number is empty. 2007-11-08 11:49:49 +01:00
Juan Lang e94cae61a1 crypt32: Fix a leaked key. 2007-11-02 12:22:31 +01:00
Juan Lang b9e78cc637 crypt32: Initialize a variable. 2007-11-02 12:22:10 +01:00
Francois Gouget 3265f2d7c4 crypt32/tests: Fix compilation on systems that don't support nameless unions. 2007-10-15 14:05:08 +02:00
Juan Lang c57a084882 crypt32: Implement name constraints decoding. 2007-10-11 22:23:13 +02:00
Juan Lang 436a4a283b crypt32: Allow either NULL or empty strings where one or the other is expected. 2007-10-11 22:22:55 +02:00
Juan Lang 942fb6c3eb crypt32: Implement name constraint encoding. 2007-10-11 22:22:33 +02:00
Juan Lang ade18ff33c crypt32: Test encoding/decoding name constraints. 2007-10-11 22:22:25 +02:00
Juan Lang e6dbb9d203 crypt32: Allow imprecision of one millisecond in time decoding to fix test failures on Windows. 2007-10-11 22:22:01 +02:00
Marcus Meissner 7689953404 crypt32/tests: Fixed buffer overflow in encode test. 2007-10-09 17:52:46 +02:00
Juan Lang 6021eef5c9 crypt32: Print values of failing time tests. 2007-10-09 12:34:35 +02:00
Juan Lang 57240ddd05 crypt32: Remove some tests that fail inconsistently on Windows.
Reported by Steven Edwards.
2007-10-09 12:34:35 +02:00
Juan Lang 9c4c856fde crypt32: Explicitly count bytes to copy in DecodeCopyBytes. 2007-09-18 11:57:41 +02:00
Juan Lang 7e475b4a77 crypt32: Test and correct decoding indefinite-length-encoded PKCS content. 2007-09-18 11:57:33 +02:00
Juan Lang 5d168bd4c0 crypt32: Support indefinite-length encoded arrays. 2007-09-18 11:54:10 +02:00
Juan Lang 15b19f1d16 crypt32: Add a test of an indefinite-length sequence. 2007-09-18 11:52:09 +02:00
Juan Lang b82bfa3455 crypt32: Test authority key identifier with a multi-byte id to show that its byte-order is swapped and fix encoding and decoding it. 2007-08-14 12:29:51 +02:00
Francois Gouget f045243542 crypt32/tests: Fix compilation on systems that don't support nameless unions. 2007-08-08 15:32:03 +02:00
Juan Lang c98f605b0e crypt32: Test encoding a cert with a subject key identifier extension. 2007-08-03 12:36:36 +02:00
Juan Lang 0c5772dc0a crypt32: Test encoding a cert with a public key. 2007-08-03 12:36:16 +02:00
Juan Lang 44948c3b38 crypt32: Implement decoding OID and directory name alt name entries. 2007-08-03 12:29:47 +02:00
Juan Lang 9194d60061 crypt32: Test encoding/decoding a couple more alt name entry types. 2007-08-03 12:28:40 +02:00
Juan Lang c58cb379eb crypt32: Test and fix encoding and decoding of attributes in PKCS signers. 2007-07-26 12:35:05 +02:00
Juan Lang 8dcd9e4279 crypt32: Fix decoding sequences with extra trailing data. 2007-07-16 13:39:35 +02:00
Juan Lang 01685bca0e crypt32: Add test showing extra trailing bytes should be tolerated in encoded data. 2007-07-16 13:39:24 +02:00
Juan Lang 678fb8ac14 crypt32: Introduce an algorithm id encoding function that encodes missing parameters as NULL
and use it to match native encoding (and simplify PKCS signer tests).
2007-07-13 14:39:40 +02:00
Juan Lang 68b052057b crypt32: Use skip to avoid failures where support is missing. 2007-07-02 13:32:28 +02:00
Francois Gouget fe40b2d85f crypt32/tests: Fix compilation on systems that don't support nameless unions. 2007-06-18 13:36:48 +02:00
Francois Gouget 021c4dba17 crypt32: Add missing '\n' to ok() call. 2007-06-14 13:54:45 +02:00
Juan Lang d1ac9c73f6 crypt32: Implement PKCS7_SIGNER_INFO encoding/decoding. 2007-06-13 11:56:20 +02:00
Juan Lang e1f83a7abf crypt32: Implement PKCS_ATTRIBUTES encoding/decoding. 2007-06-13 11:55:57 +02:00
Juan Lang 97f2c658fd crypt32: Implement PKCS_ATTRIBUTE encoding/decoding. 2007-06-13 11:54:36 +02:00
Juan Lang 1cd9510be0 crypt32: Implement PKCS_CONTENT_INFO encoding/decoding. 2007-06-13 11:53:47 +02:00
Juan Lang 2d00a4f0f5 crypt32: Implement CERT_AUTHORITY_KEY_ID2_INFO encoding/decoding. 2007-06-13 11:53:36 +02:00
Francois Gouget 4bc31a962a crypt32/tests: Replace some '#if 0's with 'if (0)'s. 2007-01-08 12:08:55 +01:00
Andrew Talbot fa8b971c2e crypt32/tests: Cast-qual warnings fix. 2006-12-08 11:39:00 +01:00
Alexandre Julliard 6a9222fc39 Fixed some printf warnings caused by using sizeof. 2006-10-12 14:58:25 +02:00
Juan Lang 353cd81c9a crypt32/tests: Win64 printf format warning fixes. 2006-10-02 14:40:14 +02:00
Juan Lang 9153d39cda crypt32: Encode/decode authority key ids. 2006-09-27 09:40:50 +02:00
Juan Lang c3702346bc crypt32: Test decoding a big CRL. 2006-09-21 11:15:57 +02:00
Alexandre Julliard 8e06fc4c0d crypt32: Comment out an unreliable test. 2006-09-12 14:45:48 +02:00
Alexandre Julliard 4bbcaad249 crypt32/tests: Avoid sizeof in traces. 2006-08-25 18:37:38 +02:00
Andrew Talbot 198bdd422f crypt32/tests: Write-strings warnings fix. 2006-08-14 11:44:34 +02:00
Andrew Talbot 2c23192704 crypt32/tests: Write-strings warnings fix. 2006-07-28 12:32:48 +02:00
Juan Lang 8ccbdb801e crypt32: Implement X509_UNICODE_NAME encoding/decoding. 2006-07-27 12:10:45 +02:00
Juan Lang 1eefa005da crypt32: Implement more string types for X509_NAME_VALUE. 2006-07-20 12:09:59 +02:00
Juan Lang ead21189c2 crypt32: Implement X509_UNICODE_NAME_VALUE encoding/decoding. 2006-07-19 18:15:56 +02:00
Andrew Talbot ee9b18f04b crypt32/tests: Write-strings warnings test. 2006-07-11 12:37:18 +02:00
Francois Gouget e72b9f0e55 crypt32: Fix compilation with gcc 2.95. 2006-06-26 13:04:47 +02:00
Juan Lang cb2e21ffb4 crypt32: Encode/decode CRL issuing dist points. 2006-06-20 11:28:22 +02:00
Juan Lang 1811acc2fa crypt32: Fix decoding signed certs and CRLs. 2006-06-19 22:55:05 +02:00
Juan Lang bc2d4a71b4 crypt32: Correct CRL tests, and fix CRL encoding/decoding accordingly. 2006-06-16 11:30:10 +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
Alexandre Julliard 93fd4524e4 crypt32/tests: Use lstrlenA instead of strlen in ok() to avoid printf format warnings. 2006-06-13 13:56:39 +02:00
Juan Lang dd4bd4ad28 crypt32: Implement X509_NAME_VALUE encoding/decoding. 2006-06-03 11:55:01 +02:00
Juan Lang 9879a47f9d crypt32: Add name value tests.
Add tests for name values, and move tests for different string
encodings to there.
2006-06-02 20:42:48 +02:00
Juan Lang 6d668d9d38 crypt32: Add a couple CRL encoding tests, one that shows a problem. 2006-06-02 11:46:23 +02:00
Jonathan Ernst 360a3f9142 Update the address of the Free Software Foundation. 2006-05-23 14:11:13 +02:00
Juan Lang 24157e0f74 crypt32: Test importing public keys from a certificate. 2006-05-16 12:41:04 +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 5d3889412d crypt32: Tidy up tests.
Fix up encoded data to use BYTE arrays rather than strings, and remove
extraneous NULL bytes from the end of some of them
2006-02-22 18:20:03 +01:00
Juan Lang 11fe62de8f crypt32: More encoding/decoding.
Add support for encoding/decoding basic constraints and enhanced key
usage, with tests.
2006-02-16 19:39:27 +01:00
Juan Lang faeac96770 crypt32: Correct X509_NAME decoding, and more stringent tests. 2006-01-31 12:22:15 +01:00
Jeremy White 2c79ae4746 crypt32: Preserve gcc 2.95 compatibility. 2006-01-13 13:53:05 +01:00
Juan Lang 628ede4783 crypt32: Implement CRLDistPoints encoding/decoding.
- rewrite sequence decoding to support context-specific tags, and
  eliminate duplicated code
- implement encoding and decoding of CRLDistPoints
2005-12-16 12:41:28 +01:00
Juan Lang 07dfb1ae27 crypt32: Decode cleanups.
- implement a helper to decode sequences of like types
- use helper functions wherever applicable when decoding
- correct "expected" vs. "got" usage in tests
- fix a few other small bugs
2005-12-13 11:11:25 +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
Juan Lang 5b0812fbcf Make CryptImport/ExportPublicKeyInfoEx behave the way MSDN describes
them, and a couple of tests.
2005-09-30 10:35:31 +00:00
Juan Lang 69dfea8f44 Encode RSA public key modulus as unsigned integer, with tests. 2005-09-28 18:12:29 +00:00
Juan Lang d6a89fbae3 Implement CryptImport/ExportPublicKeyInfo. 2005-09-28 10:15:37 +00:00
Mike McCormack b5f878936f Fix gcc 4.0 warnings. 2005-09-14 10:07:15 +00:00
Mike McCormack bfb04ad7c0 Fix gcc 4.0 warnings. 2005-09-13 10:33:39 +00:00
Mike McCormack 35c20561a7 Fix gcc 4.0 warnings. 2005-09-12 15:28:15 +00:00
Juan Lang e385fc5c99 Convert a few more constants from strings to byte arrays. 2005-09-08 11:00:24 +00:00
Mike McCormack dc1c62a592 Fix gcc 4.0 warnings. 2005-09-07 11:31:17 +00:00
Mike McCormack d168219849 Fix gcc 4.0 warnings. 2005-09-06 10:26:13 +00:00