Commit Graph

115 Commits

Author SHA1 Message Date
Hans Leidekker 49165c25e8 crypt32: Store CERT_KEY_CONTEXT in a platform independent way.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=49792
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-09-10 22:06:46 +02:00
Michael Cronenworth 5740b735cd crypt32: Global variable compatibility update for gcc 10.
Signed-off-by: Michael Cronenworth <mike@cchtml.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-01-24 18:13:53 +01:00
Hans Leidekker 226fd5cb23 crypt32: Initial implementation of PFXImportCertStore.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-01-29 17:12:13 +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 fd6e9ccca3 crypt32: Add support for a particular ALG_ID to I_CryptGetDefaultCryptProv.
Based on a patch by Alexander Morozov.

Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-11-06 12:48:36 +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
Michael Stefaniuc 962b31c80b include: Add a generic available ARRAY_SIZE().
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-07-04 10:39:15 +02:00
Nikolay Sivov e353656804 crypt32: Correctly return how the issuer of a self signed certificate was matched.
Original patch by Michael Müller.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-25 16:06:13 +02: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
Donat Enikeev c2b0dfd73d crypt32: Import system root certs into volatile registry keys instead of dedicated root store.
Signed-off-by: Donat Enikeev <donat@enikeev.net>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-11-07 17:49:25 +01:00
Francois Gouget 838ff1b244 crypt32: Mark internal symbols with hidden visibility. 2015-03-16 15:06:27 +09:00
Bruno Jesus 7a40fdbf8c crypt32: CertGetIssuerCertificateFromStore must return error for self-signed certificates. 2014-07-23 21:24:20 +02:00
Jacek Caban ca2e1c164f crypt32: Added support for HCCE_LOCAL_MACHINE. 2014-03-04 17:06:24 +01:00
Jacek Caban 786c0c2d58 crypt32: Moved chain engine handle handling to separated function and improved error handling. 2014-03-04 17:06:19 +01:00
Jacek Caban e7ab43c4bb crypt32: Return context_t from Context_CreateDataContext. 2013-10-21 21:06:17 +02:00
Jacek Caban 9fb1e4d675 crypt32: Keep reference to store in contexts. 2013-10-18 11:35:58 +02:00
Jacek Caban 610c863e75 crypt32: Always return TRUE from CertFreeCTLContext. 2013-10-18 11:35:55 +02:00
Jacek Caban fa37b63517 crypt32: Moved ContextList freeing to store.c and get rid of ContextList. 2013-10-17 11:20:01 +02:00
Jacek Caban bf464f81a8 crypt32: Share more code between memory store deleteContext implementations. 2013-10-17 11:19:56 +02:00
Jacek Caban 4d28e14acb crypt32: Share more code between memory store enumContext implementations. 2013-10-17 11:19:51 +02:00
Jacek Caban 63eed79d25 crypt32: Share more code between memory store addContext implementations. 2013-10-17 11:19:46 +02:00
Jacek Caban 23884726f7 crypt32: Use list struct directly instead of ContextList wrapper. 2013-10-17 11:19:41 +02:00
Jacek Caban 724754da64 crypt32: Moved critical section out of ContextList struct. 2013-10-17 11:19:35 +02:00
Jacek Caban 6b6ad98277 crypt32: Get rid of no longer needed fields in ContextList. 2013-10-17 11:19:26 +02:00
Jacek Caban 619bbe5d29 crypt32: Get rid of no longer needed BASE_CONTEXT. 2013-10-17 11:19:23 +02:00
Jacek Caban 83026a7143 crypt32: Use context_t in addContext. 2013-10-17 11:19:20 +02:00
Jacek Caban c75af2b9e0 crypt32: Use context_t in enumContext. 2013-10-17 11:19:14 +02:00
Jacek Caban 8d4b288f59 crypt32: Use context_t in ContextList_Add. 2013-10-17 11:19:09 +02:00
Jacek Caban 6eddbf18ca crypt32: Store properties directly in link contexts and get rid of Context_GetProperties. 2013-10-17 11:19:03 +02:00
Jacek Caban 2601f58acb crypt32: Don't use links to certs in memory store. 2013-10-17 11:18:45 +02:00
Jacek Caban 4553e6d144 crypt32: Get rid of no longer needed Context_GetLinkedContext. 2013-10-15 17:43:14 +02:00
Jacek Caban 6ab429363a crypt32: Added cloning logic to context's vtbl. 2013-10-15 17:43:11 +02:00
Jacek Caban 05f248e968 crypt32: Pass contexts as context_t to CONTEXT_FUNCS->delete. 2013-10-15 17:43:08 +02:00
Jacek Caban 03ff35c270 crypt32: Store extra pointer directly in context_t and get rid of Context_GetExtra. 2013-10-15 17:43:05 +02:00
Jacek Caban 06f5ee4b2c crypt32: Store list entry directly in context_t. 2013-10-15 17:43:03 +02:00
Jacek Caban 2553b4602b crypt32: Use context_t in Context_CreateLinkContext. 2013-10-14 17:26:15 +02:00
Jacek Caban c72570ce52 crypt32: Use Context_Release instead of WINE_CONTEXT_INTERFACE. 2013-10-14 17:26:15 +02:00
Jacek Caban 76066d1cfe crypt32: Use Context_AddRef instead of WINE_CONTEXT_INTERFACE. 2013-10-14 17:26:15 +02:00
Jacek Caban 993691bef5 crypt32: Moved context desatructor to vtbl. 2013-10-14 17:26:15 +02:00
Jacek Caban 17e1dfef9b crypt32: Pass context as context_t to Context_Release. 2013-10-14 17:26:14 +02:00
Jacek Caban 802a6bc1bb crypt32: Pass context as BASE_CONTEXT to Context_AddRef and added structs describing memory layout behind context structs. 2013-10-14 17:26:14 +02:00
Jacek Caban c7d1082b4f crypt32: Added new empty store type and use it for creating certificates with no store. 2013-10-14 17:26:14 +02:00
Jacek Caban 52b2add395 crypt32: Moved store context functions to vtbl. 2013-10-14 17:26:14 +02:00
Jacek Caban 2256a728fe crypt32: Moved store release implementation to vtbl. 2013-10-14 17:26:14 +02:00
Jacek Caban b3b1135d84 crypt32: Added addref to store vtbl and use it instead of directly accessing ref. 2013-10-14 17:26:14 +02:00
Jacek Caban fa0b7b7d3d crypt32: Moved store functions to vtbl. 2013-10-11 16:23:43 +02:00
Jacek Caban 09121895fd crypt32: Get rid of no longer used contextSize argument in Context_CopyProperties. 2013-10-08 18:10:10 +02:00
Jacek Caban c1fa23ac5d crypt32: Get rid of no longer used contextSize argument in Context_Release. 2013-10-08 18:10:06 +02:00
Jacek Caban c6fd036b54 crypt32: Get rid of no longer used contextSize argument in Context_GetProperties. 2013-10-08 18:10:02 +02:00
Jacek Caban 5b5bb50852 crypt32: Get rid of no longer used contextSize argument in Context_GetLinkedContext. 2013-10-08 18:09:58 +02:00