Commit Graph

180 Commits

Author SHA1 Message Date
Dmitry Timoshkov 4da1bca7c5 crypt32: Add support for CMSG_ENCODED_MESSAGE for a being decoded signed message.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-12 11:16:31 +01:00
Dmitry Timoshkov 4c9c6ca417 crypt32: Add support for CMSG_SIGNER_AUTH_ATTR_PARAM for a being decoded signed message.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-12 11:16:28 +01:00
Dmitry Timoshkov 1b87f222ed crypt32: Make helper for copying CMSG_CMS_SIGNER_INFO attributes more generic.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-12 11:16:22 +01:00
Alexandre Julliard 03bf236961 crypt32: Build with msvcrt.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-09 11:41:21 +01:00
Serge Gautherie 3e8b07309c crypt32: Check CRYPT_ConstructBitBlob() return value in CRYPT_ExportKeyTrans().
Signed-off-by: Serge Gautherie <winehq-git_serge_180711@gautherie.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-07-15 20:06:38 +02:00
Andrey Gusev a966ee7f4e crypt32: Fix a typo in comment.
Signed-off-by: Andrey Gusev <andrey.goosev@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-11-27 22:06:33 +01:00
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