Commit Graph

120 Commits

Author SHA1 Message Date
Juan Lang
4fa4e5a793 crypt32: Allow CMS fields to be set when opening a signed message to encode. 2008-08-20 10:24:21 +02:00
Juan Lang
3297080045 crypt32: Allow messages to be opened when compiled with CMSG_SIGNED_ENCODE_INFO_HAS_CMS_FIELDS if CMS fields aren't actually used. 2008-08-20 10:24:15 +02:00
Juan Lang
427b3fbd5d crypt32: Allow messages to be opened when compiled with CMSG_SIGNER_ENCODE_INFO_HAS_CMS_FIELDS if CMS fields aren't actually used. 2008-08-20 10:24:08 +02:00
Juan Lang
8f74b60f87 crypt32: Add stub for CryptMsgVerifyCountersignatureEncodedEx. 2008-08-19 12:19:50 +02:00
Juan Lang
fc8545b43a crypt32: Implement CryptMsgGetAndVerifySigner. 2008-08-18 17:15:55 +02:00
Juan Lang
35b126a033 crypt32: Add stub for CryptMsgGetAndVerifySigner. 2008-08-18 17:15:55 +02:00
Juan Lang
c1a69ee36d crypt32: Move simplified message functions to their own file. 2008-07-29 11:51:45 +02:00
Alexandre Julliard
ef07d83405 Include wine/port.h everywhere we use exceptions. 2008-04-29 20:18:49 +02:00
Rob Shearman
3f2ea57013 crypt32: Decode the message content on finishing in CDecodeMsg_Update for the streamed case as well as the non-streamed case. 2008-04-24 11:49:31 +02:00
Juan Lang
44f2517335 crypt32: Allow one update to a decode message after the final update if it's a detached message. 2008-03-26 10:33:16 +01:00
Juan Lang
856270972f crypt32: Keep track of state in each message type's update function rather than in CryptMsgUpdate. 2008-03-26 10:33:09 +01:00
Andrew Talbot
70c4b66781 crypt32: Assign to structs instead of using memcpy. 2008-02-15 12:05:47 +01:00
Rob Shearman
d9891887c7 crypt32: Fix function declaration - WINAPI should come after the return type. 2008-02-15 11:06:15 +01:00
Juan Lang
8882936073 crypt32: Keep signer handle count separate from signer info. 2007-10-19 14:23:14 +02:00
Juan Lang
cc88619f86 crypt32: Get rid of an unused key. 2007-10-19 14:21:55 +02:00
Juan Lang
6763841e19 crypt32: Make sure a signed encode message's signer info is always initialized. 2007-10-19 14:21:51 +02:00
Juan Lang
57b13b37d5 crypt32: Add an extra pointer alignment to avoid possible memory corruption. 2007-10-09 17:52:46 +02:00
Juan Lang
2fb3d53347 crypt32: Correct copying a signer info's attributes. 2007-10-01 12:33:35 +02:00
Juan Lang
36886f7dd1 crypt32: Add/improve some traces. 2007-09-28 11:30:40 +02:00
Juan Lang
91f2a4d687 crypt32: Fix alignment for 64-bit systems. 2007-09-19 11:41:18 +02:00
Juan Lang
71b5ba0336 crypt32: Implement streamed encoding of an indefinite-length data message. 2007-09-19 11:40:44 +02:00
Juan Lang
19956d6e97 crypt32: Pass length rather than entire message to CRYPT_EncodeContentLength. 2007-09-19 11:40:38 +02:00
Andrew Talbot
f19086e9d3 crypt32: Fix some memory leaks. 2007-09-17 13:48:32 +02:00
Juan Lang
ff26d428e3 crypt32: Partially implement CMSG_CTRL_VERIFY_SIGNATURE_EX. 2007-08-27 11:59:19 +02:00
Juan Lang
f5b4806159 crypt32: Implement CryptVerifyMessageSignature. 2007-08-23 12:38:05 +02:00
Juan Lang
3a9e1d6648 crypt32: Test and correct verifying the signature of a valid signed message. 2007-08-23 12:37:59 +02:00
Juan Lang
6acd761646 crypt32: Explicitly terminate loop when a matching signer cert is found. 2007-08-22 12:59:32 +02:00
Juan Lang
d4c318f295 crypt32: Only free allocated handles. 2007-08-22 12:34:04 +02:00
Juan Lang
e52c80e53b crypt32: Test and implement CryptGetMessageSignerCount. 2007-08-22 12:33:59 +02:00
Juan Lang
b9038be1ff crypt32: Implement CryptGetMessageCertificates. 2007-08-22 12:33:55 +02:00
Juan Lang
b7e420429d crypt32: Implement verifying a decoded signed message's signature. 2007-08-21 22:09:35 +02:00
Juan Lang
d3431271fa crypt32: Test and implement getting the computed hash from a decoded signed message. 2007-08-21 22:09:31 +02:00
Juan Lang
ed6fbb2712 crypt32: Update a hash message's hash handles when decoding it. 2007-08-21 22:09:27 +02:00
Juan Lang
d2dc7d78a9 crypt32: Move signed message data functions together. 2007-08-21 22:09:19 +02:00
Juan Lang
f1f8e87b33 crypt32: Make constructing handles a member of signed msg data. 2007-08-21 22:09:15 +02:00
Juan Lang
07ba16c291 crypt32: Use a helper function to allocate signer handles. 2007-08-21 22:09:12 +02:00
Juan Lang
1f9d9be762 crypt32: Don't keep an unneeded copy of the crypto provider for each signer. 2007-08-21 22:09:08 +02:00
Juan Lang
bfbc159d1e crypt32: Separate construction of signer handles from signer info. 2007-08-21 22:09:03 +02:00
Juan Lang
c4dd74d84c crypt32: Add a helper function to construct a signer handles structure. 2007-08-21 22:08:59 +02:00
Juan Lang
de88fedcce crypt32: Add helper function to update signed message data. 2007-08-21 22:08:54 +02:00
Juan Lang
1522282673 crypt32: Make more functions members of signed message data, rather than message. 2007-08-21 22:08:49 +02:00
Juan Lang
bfde05d8b6 crypt32: Make updating a hash a member of signed message data, not signed message. 2007-08-21 22:08:45 +02:00
Juan Lang
0080d3d691 crypt32: Make a helper function to a free a signed message's handles. 2007-08-21 22:08:41 +02:00
Juan Lang
5e9299d980 crypt32: Use signed message data type for decoded signed messages. 2007-08-21 22:08:37 +02:00
Juan Lang
7748905743 crypt32: Make a signed message data type. 2007-08-21 22:08:24 +02:00
Juan Lang
3e88838b60 crypt32: Implement verifying the hash of a decoded hash message. 2007-08-21 22:08:20 +02:00
Juan Lang
e7ce5ae2bc crypt32: Add a couple tests that show you can't get the hash from an encoded hash message, and fix encoded hash messages to match. 2007-08-21 22:08:15 +02:00
Juan Lang
163e8d6256 crypt32: Add a mostly stub control function for decode messages. 2007-08-21 22:08:11 +02:00
Juan Lang
31c414f4b4 crypt32: Add a default message control function pointer. 2007-08-21 22:08:06 +02:00
Juan Lang
714a3731eb crypt32: Set return value on exception.
Spotted by Paul Vriens.
2007-08-15 10:48:51 +02:00