Commit Graph

174 Commits

Author SHA1 Message Date
Vijay Kiran Kamuju 0d0906b56d crypt32: Add CMSG_SIGNER_UNAUTH_ATTR_PARAM implementation.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=37837
Signed-off-by: Vijay Kiran Kamuju <infyquest@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-02-19 13:10:22 +01:00
Dmitry Timoshkov 2ef62f9085 crypt32: Make sure that the provider supports algorithm of the message being decoded.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-11-16 20:55:01 +01:00
Alexander Morozov 263f6ef201 crypt32: Use correct private key for signing.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-11-15 13:43:14 +01:00
Dmitry Timoshkov fa713c3d23 crypt32: Look for the provider that supports the specified content OID in CryptMsgOpenToEncode(CMSG_HASHED).
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-11-06 12:48:58 +01:00
Dmitry Timoshkov 41e0a38f7c crypt32: Directly call I_CryptGetDefaultCryptProv to make hooking from a 3rd party CSP work.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-11-05 10:35:45 +01:00
Nikolay Sivov 6de2e83e00 crypt32: Use ARRAY_SIZE macro.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-20 11:23:06 +02:00
Jacek Caban 39ba0bbe43 crypt32: Always set returned size in CRYPT_CopySignerInfo.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-01 22:24:53 +01:00
Austin English 9fd90749c2 crypt32: Add CryptMsgVerifyCountersignatureEncoded stub.
Signed-off-by: Austin English <austinenglish@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-23 13:14:34 +09:00
Jacek Caban 0a5cb15f94 crypt32: Get rid of remaining P* typedefs. 2013-09-04 14:38:41 +02:00
Jacek Caban d8c3ccee28 crypt32: Get rid of PCONTEXT_PROPERTY_LIST typedef. 2013-09-04 14:37:49 +02:00
Marcus Meissner ee1f416409 crypt32: Free the encoded msg (Coverity). 2013-01-10 19:18:31 +01:00
André Hentschel 7468238539 crypt32: Avoid shadowing a parameter. 2012-04-17 20:12:52 +02:00
Thomas Faber a7144d916d crypt32: Fix build with MSVC. 2012-01-24 11:55:23 +01:00
Juan Lang b377f83453 crypt32: Don't assume a function succeeded (clang). 2011-02-16 14:26:26 +01:00
Juan Lang 2910cf9660 crypt32: Allow updating data messages with no content. 2011-02-11 14:46:37 +01:00
Juan Lang fdd0114407 crypt32: Fix memory leak (Valgrind). 2011-01-18 13:23:10 +01:00
Alexander Morozov f44ae748c0 crypt32: Implement getting content and some parameters from a decoded enveloped message. 2010-12-16 11:23:03 +01:00
Alexander Morozov dd75ab38c6 crypt32: Implement decoding enveloped messages. 2010-12-16 11:22:54 +01:00
Alexandre Julliard b012ffba58 crypt32: Use allocation function with the correct prototype in CMSG_CONTENT_ENCRYPT_INFO. 2010-12-09 17:43:34 +01:00
Alexander Morozov 6ad5416f32 crypt32: Implement getting content of an enveloped message. 2010-12-02 15:01:09 +01:00
Alexander Morozov 03e94320c2 crypt32: Implement updating enveloped messages. 2010-12-02 15:01:08 +01:00
Alexander Morozov c3a2f7a3d1 crypt32: Save some info needed for creating enveloped messages. 2010-12-02 15:00:56 +01:00
Alexander Morozov 6fcca28b07 crypt32: Add a stub enveloped message implementation. 2010-12-01 17:16:22 +01:00
Alexander Morozov 190c3518d6 crypt32: Initialize HashEncryptionAlgorithm. 2010-09-16 13:59:06 -05:00
Andrew Talbot aaf285c15d crypt32: Constify some variables. 2010-08-18 09:47:42 +02:00
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