Commit graph

641 commits

Author SHA1 Message Date
Hans Leidekker ff5db66c43 secur32: Also copy user function tables in nego_SpInitLsaModeContext() and nego_SpAcceptLsaModeContext(). 2023-08-04 18:56:47 +09:00
Hans Leidekker da750b77bd msv1_0: Implement SECPKG_ATTR_SESSION_KEY. 2023-08-03 20:46:08 +09:00
Hans Leidekker 922372e64c secur32: Implement lsa_QueryContextAttributesA(SECPKG_ATTR_SESSION_KEY). 2023-08-03 20:46:08 +09:00
Dmitry Timoshkov 835d73379f secur32/tests: Add some tests for "Negotiate" LSA package.
Fixed test failures under some Windows versions.

Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
2023-08-03 20:45:37 +09:00
Dmitry Timoshkov 519f5cc20a secur32: Add a better stub for LsaApCallPackageUntrusted(NegGetCallerName).
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
2023-08-03 20:45:37 +09:00
Dmitry Timoshkov 021547cabc secur32: Convert "Negotiate" to an LSA package.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
2023-08-03 20:45:36 +09:00
Hans Leidekker f74e119217 secur32/tests: Fix a test failure and extend tests.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55114
2023-07-14 13:25:43 +02:00
Hans Leidekker 9a56d5ff1f secur32/tests: Fix a test failure.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55114
2023-07-06 20:54:29 +02:00
Hans Leidekker b605d822da secur32: Reduce indentation level in schan_QueryContextAttributesA/W(). 2023-07-06 20:54:29 +02:00
Hans Leidekker 472150bf2e secur32/tests: Get rid of workarounds for old Windows versions. 2023-07-06 20:54:29 +02:00
Hans Leidekker 4d7c36ddb0 secur32: Fix a couple of return values. 2023-07-06 20:54:29 +02:00
Hans Leidekker 11afc2da02 secur32: Add support for sending TLS alerts.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55086
2023-06-22 15:34:07 +02:00
Alistair Leslie-Hughes f9c244f2db secur32: Trace fContextReq consistently.
0108:trace:secur32:InitializeSecurityContextA 25528220 00000000 (null) 0x0008c13c 0 16 ...
0108:trace:secur32:schan_InitializeSecurityContextA 25528220 00000000 (null) 573756 0 16 ...
0108:trace:secur32:schan_InitializeSecurityContextW 25528220 00000000 (null) 0x0008c13c 0 16 ...
2023-01-31 16:54:52 +01:00
Alistair Leslie-Hughes cbddd3930b secur32: QueryContextAttributesW check for valid object before use. 2023-01-31 16:54:52 +01:00
Evan Tang d423d76f10 secur32: Add test for schannel AcceptSecurityContext. 2023-01-26 22:05:13 +01:00
Evan Tang 610fd134b7 secur32: Fix schannel AcquireCredentialsHandle algorithm mismatch error return. 2023-01-26 22:05:13 +01:00
Evan Tang ee0c01cb3b secur32: Share code for schannel Acquire and AcceptCredentialsHandle. 2023-01-26 22:05:13 +01:00
Evan Tang 24e276a928 secur32: Schannel AcceptSecurityContext support. 2023-01-26 22:05:13 +01:00
Alexandre Julliard f82dc3d7c4 secur32: Use the Unix call helpers. 2022-11-25 10:16:06 +01:00
Alex Henrie 5f981c37e7 secur32: Use the wcsdup function instead of reimplementing it. 2022-11-21 12:58:09 +01:00
Paul Gofman 72888a4410 secur32: Implement ApplyControlToken for SCHANNEL_SHUTDOWN. 2022-11-08 20:07:52 +01:00
Paul Gofman e55bb2bc71 secur32: Add semi-stub for ApplyControlToken (schannel). 2022-11-08 20:07:52 +01:00
Paul Gofman ac5968790a secur32: Allocate buffer for either ISC_REQ_ALLOCATE_MEMORY or NULL output in schan_InitializeSecurityContextW(). 2022-11-08 20:07:52 +01:00
Paul Gofman 86b3fafe82 secure32/tests: Add tests for ApplyControlToken (schannel). 2022-11-08 20:07:52 +01:00
Owen Rudge 283cefe242 secur32: Implement basic functionality for LsaGetLogonSessionData. 2022-09-22 17:57:58 +02:00
Owen Rudge 402b8473c9 secur32/tests: Add tests for LsaGetLogonSessionData. 2022-09-22 17:57:58 +02:00
Hans Leidekker 7de69f49c6 secur32/tests: Fix test failure caused by expired client certificate. 2022-09-21 21:26:50 +02:00
Olivier F. R. Dierick 8f3352ed91 secur32: Define AES-CCM ciphers missing from GNUTLS before 3.4.0. 2022-08-08 18:47:39 +02:00
Hans Leidekker a0febe9097 secur32: Fix GnuTLS system priority file override.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53344
2022-07-14 23:38:25 +02:00
Hans Leidekker ea930bec2b secur32: Simplify lsa_AcquireCredentialsHandleA(). 2022-07-13 12:50:07 +02:00
Hans Leidekker 4c9d30a121 secur32: Simplify nego_AcquireCredentialsHandleA() and fix an invalid free. 2022-07-13 12:50:07 +02:00
Hans Leidekker c77b23a3e7 secur32/tests: Add more context attributes tests. 2022-07-12 22:51:29 +02:00
Hans Leidekker 0167c0bc88 secur32: Implement lsa_QueryContextAttributesA(SECPKG_ATTR_KEY_INFO). 2022-07-12 22:51:29 +02:00
Hans Leidekker 19d18bbbc3 include: Fix a typo. 2022-07-12 22:51:29 +02:00
Hans Leidekker 738a5b53a4 secur32: Validate input buffers in schan_InitializeSecurityContextW().
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53309
2022-07-06 16:02:48 +02:00
Hans Leidekker 0a10bfc8b1 secur32: Return a SECBUFFER_MISSING buffer from the handshake if the input message is incomplete. 2022-06-30 19:02:02 +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
Hans Leidekker 99e2f4caca secur32: Implement SECPKG_ATTR_CIPHER_INFO.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53180
2022-06-21 18:53:18 +02:00
Nikolay Sivov e44a9d2c2f secur32/schannel: Avoid use-after-free in AcquireClientCredentials() (Coverity).
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-06-06 12:13:56 +02:00
Alexandre Julliard 02eae36ec8 secur32/tests: Update for new WineHQ certificate.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-06-03 21:42:01 +02:00
Nikolay Sivov 2196dd2567 secur32: Add wow64 support to the unixlib.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-06-02 17:25:29 +02:00
Nikolay Sivov 39a01a9f52 secur32: Store certificate credentials object pointer as 64-bit.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-06-02 17:25:29 +02:00
Nikolay Sivov 8a6e15138d secur32: Use 32-bit sizes in parameters structures.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-06-02 17:25:29 +02:00
Nikolay Sivov 086e950a2b secur32: Remove unused pointer parameter from send request.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-06-02 17:25:29 +02:00
Nikolay Sivov 8920ad75e3 secur32: Remove duplicate check.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-06-02 17:25:29 +02:00
Nikolay Sivov abf8ba51b6 secur32: Get rid of buffer iteration callback in unixlib.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-06-02 17:25:29 +02:00
Nikolay Sivov 088c288214 secur32: Prepare schan_send() buffers on PE side.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-06-02 17:25:29 +02:00
Nikolay Sivov 0a62c7bd40 secur32: Update output buffer offset on return from schan_send() call.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-06-02 17:25:29 +02:00
Nikolay Sivov 1c894ec973 secur32: Simplify input buffer handling for schan_recv() call.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-06-02 17:25:29 +02:00
Nikolay Sivov fee52bd43c secur32: Pass single input and output buffers for handshake call.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-06-02 17:25:29 +02:00