Commit Graph

149 Commits

Author SHA1 Message Date
Juan Lang
1437d7ccc2 crypt32: Explicitly pass pointers to blob arrays rather than relying on an invalid alignment assumption. 2009-10-19 11:35:23 +02:00
Juan Lang
3000bc200a crypt32: Explicitly pass pointers to blob arrays rather than relying on an invalid alignment assumption. 2009-10-19 11:35:14 +02:00
Juan Lang
96be0ee8dc crypt32: Implement retrieving the encoded signer of a decoded signed message. 2009-09-15 16:41:26 -05:00
Andrew Talbot
045c94baf1 crypt32: Constify some variables. 2009-06-16 13:26:42 +02:00
Michael Stefaniuc
903585162d crypt32: Remove remaining superfluous pointer casts. 2009-01-28 12:30:54 +01:00
Juan Lang
f2df415ac1 crypt32: Use specified inner content type for signed messages when it's given. 2009-01-06 12:43:22 +01:00
Juan Lang
3eb3033deb crypt32: Implement CryptMsgSignCTL. 2009-01-06 12:43:15 +01:00
Juan Lang
80a24edb55 crypt32: Implement CryptMsgEncodeAndSignCTL on top of CryptMsgSignCTL. 2009-01-06 12:43:10 +01:00
Juan Lang
1efe0bc39b crypt32: Add stub for CryptMsgSignCTL. 2009-01-06 12:43:05 +01:00
Juan Lang
30de92df3a crypt32: Add stub for CryptMsgEncodeAndSignCTL. 2009-01-06 12:42:55 +01:00
Alexandre Julliard
7d4bc8503b crypt32: Make some functions and variables static. 2008-12-02 15:27:40 +01:00
Michael Stefaniuc
c48c5c8577 crypt32: Fix the aligning up to a DWORD_PTR boundary. 2008-11-07 11:01:21 +01:00
Juan Lang
d8c2a40cf6 crypt32: Fix typo. 2008-11-04 11:18:45 +01:00
Juan Lang
b7d26dc9f5 crypt32: Don't crash when asked to verify a signature before the content has been finalized. 2008-09-09 11:46:15 +02:00
Juan Lang
7c83565580 crypt32: Don't store redundant copy of detached hash message data. 2008-09-09 11:46:14 +02:00
Alexandre Julliard
ced5cb67ed crypt32: Avoid some uninitialized variable warnings on older gcc. 2008-09-05 11:32:59 +02:00
Francois Gouget
6bd4bf66e2 crypt32: Fix compilation on systems that don't support nameless unions. 2008-09-02 13:59:31 +02:00
Huw Davies
e8d834e02d crypt32: Fix streamed, detached updates.
Thanks to Juan for confirming this is the correct fix.
2008-08-29 12:22:46 +02:00
Juan Lang
13545bee2d crypt32: Fix verifying the hash of a detached hash message. 2008-08-27 13:21:21 +02:00
Juan Lang
0fbef45f55 crypt32: Separate decoding data from finalizing (hashing or signing) it. 2008-08-27 13:21:21 +02:00
Juan Lang
a36d8ce611 crypt32: Remove an unneeded helper. 2008-08-21 11:35:23 +02:00
Juan Lang
aa265b4165 crypt32: Handle the detached portion of detached signed messages. 2008-08-21 11:35:14 +02:00
Juan Lang
0a8d14c2e6 crypt32: Rewrite CDecodeMsg_Update for better detached data handling. 2008-08-21 11:35:07 +02:00
Juan Lang
d3c8b59e02 crypt32: Pass address of blob to store data rather than message to CDecodeMsg_CopyData. 2008-08-21 11:34:58 +02:00
Juan Lang
1b7121e7ad crypt32: Support the KeyId type of signer in CMSG_SIGNER_CERT_INFO_PARAM. 2008-08-21 11:33:48 +02:00
Juan Lang
51b16fb857 crypt32: Support the KeyId type of signer in CMSG_SIGNER_INFO_PARAM. 2008-08-21 11:33:39 +02:00
Juan Lang
57a85f0d6b crypt32: Implement CMSG_CMS_SIGNER_INFO_PARAM. 2008-08-21 11:33:30 +02:00
Juan Lang
595bae3ef3 crypt32: Test and correct encoding of signed CMS messages. 2008-08-21 11:33:03 +02:00
Juan Lang
282eb73bc3 crypt32: Use CMS messages rather than PKCS messages internally. 2008-08-21 11:32:53 +02:00
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