Commit graph

2111 commits

Author SHA1 Message Date
Paul Gofman 5f3cd85361 crypt32: Support MICROSOFT_ROOT_CERT_CHAIN_POLICY_CHECK_APPLICATION_ROOT_FLAG.
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
2022-07-11 18:55:11 +02:00
Alexandre Julliard 194e09baec makefiles: Add separate variables for Unix flags and libraries.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-06-29 23:23:41 +02:00
Dmitry Timoshkov 559a83a8f4 crypt32: CryptAcquireCertificatePrivateKey() should reset last error code on success.
One of Chrome crypto plugins depends on this.

Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-27 15:26:16 +02:00
Hans Leidekker 74832c2177 crypt32/tests: Add more OCSP revocation tests.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-24 12:04:02 +02:00
Hans Leidekker 8a463a335b crypt32: Add support for decoding OCSP_BASIC_REVOKED_INFO structures.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-24 12:03:53 +02:00
Brendan Shanks 65954db2be crypt32/tests: Fix mismatched deallocation function.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-18 18:36:10 +02:00
Paul Gofman fc4067a2ac crypt32/tests: Handle CERT_NAME_SEARCH_ALL_NAMES_FLAG being unsupported before Win8.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52961
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-12 19:32:28 +02:00
Paul Gofman 0c35a851cd crypt32: Support CERT_NAME_SEARCH_ALL_NAMES_FLAG in CertGetNameStringW().
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-04 21:27:25 +02:00
Paul Gofman b1b9a75411 crypt32: Support up to date subject and issuer alt names OIDs.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-04 21:27:25 +02:00
Paul Gofman c515e55d71 crypt32: Reimplement CertNameToStrA() on top of CertNameToStrW().
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-03 18:57:17 +02:00
Paul Gofman f560aab5f6 crypt32: Reimplement CertRDNValueToStrA() on top of CertRDNValueToStrW().
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-03 18:57:17 +02:00
Paul Gofman bc96cfac11 crypt32: Fix filling short output in CertGetNameStringA().
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-03 18:57:17 +02:00
Paul Gofman 66d9250c42 crypt32: Fix filling short output in CertGetNameStringW().
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-03 18:57:17 +02:00
Paul Gofman a78f2319e8 crypt32: Fix filling short output in CertRDNValueToStrW().
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-03 18:57:17 +02:00
Paul Gofman 61957d8212 crypt32: Fix filling short output in cert_name_to_str_with_indent().
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-03 18:57:17 +02:00
Paul Gofman 20fd7dacd4 crypt32/tests: Add tests for short return string buffer.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-03 18:57:16 +02:00
Drew Ronneberg 9253ee302f crypt32: Remove obsolete -D_CRYPT32_ from Makefile.in.
Signed-off-by: Drew Ronneberg <drew_ronneberg@yahoo.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-28 12:17:25 +02:00
Francois Gouget 2fa950f6b7 crypt32/tests: Fix the spelling of an ok() message.
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-18 12:36:33 +02:00
Paul Gofman a6ea269a96 crypt32: Support CERT_QUERY_OBJECT_BLOB in CRYPT_QueryEmbeddedMessageObject().
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-14 11:34:39 +02:00
Hans Leidekker 21f82ad4ff crypt32/tests: Get rid of workarounds for old Windows versions.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-12 21:39:42 +02:00
Hans Leidekker 4237cefb95 crypt32/tests: Add more OCSP response decoding tests.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-01 20:30:57 +02:00
Hans Leidekker 33ff4a6671 crypt32/tests: Use wide character string literals.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-31 12:35:04 +02:00
Hans Leidekker 8516a9e931 crypt32: Use CRT allocation functions.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-30 16:05:29 +02:00
Hans Leidekker 1fb28509f7 crypt32: Consistently use CryptMemAlloc/Free().
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-30 16:05:29 +02:00
Hans Leidekker dd91e541b6 crypt32: Correctly free memory in CNG_ImportRSAPubKey().
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-30 16:05:29 +02:00
Hans Leidekker f04b102484 crypt32: Add partial support for decoding OCSP_BASIC_RESPONSE_INFO structures.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-25 17:56:39 +01:00
Hans Leidekker 0b350ab967 crypt32: Add support for decoding signed OCSP responses.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-15 18:05:27 +01:00
Hans Leidekker 3b90b7be75 crypt32: Add support for decoding OCSP responses.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-10 18:27:43 +01:00
Hans Leidekker 85d2cbbe53 crypt32: Add partial support for encoding signed OCSP requests.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-10 18:27:43 +01:00
Hans Leidekker 6de79d64fa crypt32: Requestor name is optional in OCSP request.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-10 18:27:43 +01:00
Hans Leidekker 92821ebd49 crypt32: Add support for encoding OCSP requests.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-04 19:13:04 +01:00
Huw Davies 2c9fbf8300 crypt32: Use an unsigned int to avoid a compiler warning on macOS.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-28 21:31:56 +01:00
Sven Baars 36378958f7 crypt32/tests: Fix a memory leak (Valgrind).
Signed-off-by: Sven Baars <sbaars@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-25 19:02:18 +01:00
Eric Pouech c51ea8566b crypt32/tests: Enable compilation with long types.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-23 10:17:26 +01:00
Eric Pouech 5fc99b35ba crypt32: Enable compilation with long types.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-09 18:37:32 +01:00
Eric Pouech bb1fc33570 include/msvcrt: Add attribute((format)) to printf and scanf -like APIs.
Fix a bunch of warnings generated by this patch and the migration of
GUID.Data1 to long in ae2693e2c4

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-01-31 18:38:55 +01:00
Alexandre Julliard f0cd33c69e include: Add support for defining Win32 types as 'long' where possible.
Add -DWINE_NO_LONG_TYPES to modules that still have compilation
warnings with long types.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-01-27 20:38:22 +01:00
Eric Pouech f88507a4fd crypt32: Use correct integral type.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-01-27 11:13:00 +01:00
Fabian Maurer 281836d5b1 crypt32/tests: Avoid "misleading indentation" warnings.
Signed-off-by: Fabian Maurer <dark.shadow4@web.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-01-26 21:53:26 +01:00
Paul Gofman 861ae99683 crypt32: Increase maximum object encode length.
E. g., DigiCert CRL file is currently 35MB.

Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-01-13 17:05:14 +01:00
Alex Henrie 4fd80941f8 crypt32/tests: Make pfxdata static.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-12-23 22:57:01 +01:00
Alexandre Julliard b714ed411a crypt32/tests: Mark a failing test as todo.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-12-17 15:05:09 +01:00
Alexandre Julliard b52c6bfbb1 crypt32: Implement Wow64 entry points in the Unix library.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-12-07 17:54:01 +01:00
Dmitry Timoshkov 8afb89436f crypt32: Avoid truncating unicode chars.
So that strings containing Cyrillic Capital Letter ER (0x420) won't be
quoted when not needed.

Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-11-17 20:57:54 +01:00
Alexandre Julliard 41663e6ea5 crypt32: Convert the Unix library to the __wine_unix_call interface.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-10-31 17:09:52 +01:00
Alexandre Julliard f18ccfef7b crypt32: Split the import_cert_store function to move memory allocations to the PE side.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-10-31 17:09:52 +01:00
Alexandre Julliard 97479d3d32 ntdll: Move some exception definitions to winternl.h.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-10-07 13:52:42 +02:00
Charles Davis 6eab45621c crypt32: Use the SecItemExport() function.
Signed-off-by: Chip Davis <cdavis@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-09-28 10:03:46 +02:00
Alexandre Julliard 088a787a2c makefiles: Make -mno-cygwin the default.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-09-20 22:45:48 +02:00
Francois Gouget dc502ec5d0 crypt32: Make gnutls_(un)?initialize() static.
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-08-31 15:51:52 +02:00