Commit Graph

130 Commits

Author SHA1 Message Date
Eric Pouech 7e39b60a69 advapi32: Enable compilation with long types.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-08 10:45:56 +01:00
Paul Gofman 992117ac98 advapi32: Handle exceptions from dereferencing invalid crypt objects' handles.
Fixes crash on start in "Re:ZERO -Starting Life in Another World- The
Prophecy of the Throne".

Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-02-23 22:30:31 +01:00
Paul Gofman 7d4eaa30a4 advapi32: Return ERROR_INVALID_PARAMETER for invalid crypt objects' handles.
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-02-23 22:30:30 +01:00
Hans Leidekker 53d956700a advapi32: Use wide character string literals.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-09-10 22:06:39 +02:00
Alexandre Julliard c487f21b6b advapi32: Build with msvcrt.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-09-09 20:30:31 +02:00
Hans Leidekker e9090e1c90 advapi32: Reimplement SystemFunction036 using system interrupt information.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-09-09 20:30:31 +02:00
Serge Gautherie 2df16753f0 advapi32: Fix 3 comments about pdwReserved and dwFlags.
Signed-off-by: Serge Gautherie <winehq-git_serge_180711@gautherie.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-03-18 19:37:21 +01:00
Serge Gautherie 8b9e3dae4f advapi32: Fix CryptReleaseContext() last error on NULL provider.
Signed-off-by: Serge Gautherie <winehq-git_serge_180711@gautherie.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-03-17 16:00:22 +01:00
Serge Gautherie 62df03af96 advapi32: Use standard refcount in CRYPTPROV.
Signed-off-by: Serge Gautherie <winehq-git_serge_180711@gautherie.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-03-17 16:00:07 +01:00
Serge Gautherie 9cc8b501ee advapi32: CryptReleaseContext() dwFlags parameter is DWORD, not ULONG_PTR.
Signed-off-by: Serge Gautherie <winehq-git_serge_180711@gautherie.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-03-17 15:59:57 +01:00
Alexandre Julliard 5768fd6dd2 advapi32: Move MD4 implementation to ntdll.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-06-24 15:00:29 +02:00
Dmitry Timoshkov cd5c9a2bed advapi32: CryptAcquireContext(CRYPT_DELETEKEYSET) should set returned provider handle to 0.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-03-12 20:32:59 +01:00
Brendan McGrath c970b263c0 advapi32: Don't create a WoW6432 MachineGuid.
Signed-off-by: Brendan McGrath <brendan@redmandi.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-10-18 19:56:20 +02:00
Andrey Gusev 2c598e5523 advapi32: Fix a typo in comment.
Signed-off-by: Andrey Gusev <andrey.goosev@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-03 12:30:39 +09:00
Austin English d5ef271ece advapi32: Add stub for CloseEncryptedFileRaw. 2014-09-01 21:10:13 +02:00
Austin English a98496a09a advapi32: Add stub for WriteEncryptedFileRaw. 2014-09-01 21:10:13 +02:00
Austin English 8ca36632e9 advapi32: Add stub for ReadEncryptedFileRaw. 2014-09-01 21:10:13 +02:00
Austin English 27f00d4f68 advapi32: Add stub for OpenEncryptedFileRawA/W. 2014-09-01 21:10:13 +02:00
Hans Leidekker 2722c45173 advapi32: PP_USE_HARDWARE_RNG is a parameter, not a flag. 2014-01-10 18:15:05 +01:00
Michael Stefaniuc 6f8b2f5938 advapi32: Avoid using CONST. 2013-09-23 11:53:54 +02:00
Alex Henrie 142afabb41 advapi32: Destination length -1 means no limit. 2013-01-31 12:21:08 +01:00
Johan Gill 16dc83578a advapi32: CryptCreateHash actually sets ERROR_INVALID_PARAMETER if the CSP handle is 0. 2012-02-14 17:59:29 +01:00
Francois Gouget ada3d57e83 advapi32: Fix printing NULL strings. 2011-09-20 16:21:38 +02:00
Nikolay Sivov 322049cebf advapi32/crypt: Fixed some HKEY leaks. 2011-08-04 09:08:07 +02:00
Michael Stefaniuc b856884c3b advapi32: Remove wrong "is NULL and error out" code (coccicheck). 2011-06-06 16:29:58 +02:00
Austin Lund c98e6c09ae advapi32: Add magic codes to HCRYPTKEY and HCRYPTHASH. 2010-08-18 09:47:27 +02:00
Alexandre Julliard 58a698882d advapi32: Make rpcrt4 a delayed import to work around circular dependencies with native. 2010-06-21 17:55:37 +02:00
Andrew Nguyen c62dd29b37 include: Add prototypes for RtlEncryptMemory and RtlDecryptMemory in ntsecapi.h. 2010-03-22 11:40:25 +01:00
Andrew Nguyen 890ce5360d advapi32: Fix SystemFunction036 prototype to match ntsecapi.h. 2010-03-22 11:40:22 +01:00
Alexandre Julliard a54bd70bac advapi32: Use strict prototypes in the VTableProvStruc definition. 2009-10-07 13:31:12 +02:00
Andrew Talbot 301cfd141b advapi32: Constify some variables. 2009-03-27 11:23:10 +01:00
Michael Stefaniuc 6a48bb4217 advapi32: Remove superfluous pointer casts. 2009-02-16 16:01:36 +01:00
Michael Stefaniuc e86eb8efa6 include: Change RPC_STATUS from long to LONG for Win64 compatibility.
Also fix the compiler warnings introduced by this change.
2009-01-04 13:34:38 +01:00
Juan Lang 59f2a3312e advapi32: Print error if opening /dev/urandom fails, and update comment. 2008-10-31 12:57:40 +01:00
Andrew Talbot 092a2b3efa advapi32: Avoid giving variables same name as library functions. 2008-05-05 19:46:15 +02:00
Lei Zhang 9fca0f27d0 advapi32: Replace UuidToStringW call with a sprintfW. 2008-04-29 12:34:29 +02:00
Juan Lang 9ea9eaaa81 advapi32: Create MachineGuid value if it doesn't exist. 2008-03-25 19:58:43 +01:00
Andrew Talbot 263cb72e13 advapi32: Remove unneeded casts. 2007-12-03 13:10:21 +01:00
Christian Gmeiner bb3a968d30 advapi32: fix some compiler warnings when using -Wsign-compare. 2007-09-25 14:12:46 +02:00
Juan Lang a5bbed2b95 advapi32: Add more tests for CryptVerifySignatureW, and correct its parameter checking. 2007-08-23 12:37:55 +02:00
Francois Gouget a33993bcbd crypt32: Fix the CryptReleaseContext() prototype. 2007-07-31 21:37:09 +02:00
Mounir IDRASSI 5bb4ed2d66 advapi32: Check for error in CryptEnumProviderTypesA and CryptEnumProvidersA. 2007-05-03 14:36:43 +02:00
Lei Zhang d347ebe196 advapi32: Spelling fixes. 2007-04-07 11:01:17 +02:00
Andrew Talbot 201317ed5e advapi32: Constify a variable. 2007-03-05 12:08:58 +01:00
Bang Jun-Young 671b023de8 advapi32: Fix prototypes to match the PSDK. 2007-02-05 12:25:48 +01:00
Francois Gouget f46cfe601c advapi32: Remove a useless macro. 2007-01-05 20:27:13 +01:00
James Hawkins 024237efaa advapi32: Remove redundant NULL checks before CRYPT_Free. 2006-11-30 12:27:03 +01:00
Hans Leidekker 4301816d47 advapi32: Win64 printf format warning fixes. 2006-10-03 16:21:58 +02:00
Francois Gouget 06f9532dda Assorted spelling fixes. 2006-09-08 11:04:53 +02:00
Andrew Talbot 9959d7e37f advapi32: Cast-qual warnings fix. 2006-08-26 19:16:19 +02:00