Fabian Maurer
362802c49a
secur32/tests: Avoid "misleading indentation" warnings.
...
Signed-off-by: Fabian Maurer <dark.shadow4@web.de>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-01-31 18:38:54 +01:00
Connor McAdams
26f81bb883
secur32/tests: Add tests for DTLS handshake retransmission.
...
Successive calls to InitializeSecurityContext without a new pInput
buffer will result in retransmission, creating a handshake packet with
an incremented sequence number value, but otherwise identical to the
last call to InitializeSecurityContext.
Signed-off-by: Connor McAdams <cmcadams@codeweavers.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-01-27 17:56:06 +01:00
Connor McAdams
387a30a8ce
secur32: Switch back to non-blocking mode for DTLS sessions.
...
In order for DTLS retransmission to occur properly, we need to be in
non-blocking mode.
Signed-off-by: Connor McAdams <cmcadams@codeweavers.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-01-27 17:56:06 +01:00
Connor McAdams
290cd6769f
secur32: Properly handle NULL pInput argument for DTLS contexts in schan_InitializeSecurityContextW.
...
When a NULL pInput argument is passed into InitializeSecurityContextW
for an existing DTLS context, we need to retransmit the last handshake
packet.
Signed-off-by: Connor McAdams <cmcadams@codeweavers.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-01-27 17:56:06 +01:00
Connor McAdams
795d3e2cb5
secur32: Clear SECBUFFER_ALERT output buffer count in schan_InitializeSecurityContextW.
...
Since we write no data into this buffer, set the count to 0. Otherwise,
some applications assume there has been alert data written into the
buffer.
Signed-off-by: Connor McAdams <cmcadams@codeweavers.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-01-27 17:56:06 +01:00
Connor McAdams
093d53856d
secur32: Validate output buffer size in schan_InitializeSecurityContextW().
...
Signed-off-by: Connor McAdams <cmcadams@codeweavers.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-01-26 21:53:56 +01:00
Connor McAdams
ef1ac61a7d
secur32: Set phNewContext to phContext in schan_InitializeSecurityContextW().
...
If a valid pointer for phNewContext is passed in alongside a valid phContext
pointer, initialize phNewContext with the value of phContext on success.
Signed-off-by: Connor McAdams <cmcadams@codeweavers.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-01-26 21:53:56 +01:00
Connor McAdams
54185c9c16
secur32/tests: Add more DTLS tests.
...
Add more tests for DTLS, and clear up behavior of prior tests.
Signed-off-by: Connor McAdams <cmcadams@codeweavers.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-01-19 10:39:38 +01:00
Hans Leidekker
84a968abce
secur32/tests: Add DTLS tests.
...
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-10-29 09:29:12 +02:00
Hans Leidekker
5e8acd7a04
secur32/tests: Check supported DTLS protocols.
...
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-10-29 09:29:02 +02:00
Hans Leidekker
3d1a98f486
secur32/tests: Add tests for renegotiating an SSL connection.
...
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-02-19 23:46:30 +01:00
Damjan Jovanovic
de9238962c
secur32: Implement the SECPKG_ATTR_UNIQUE_BINDINGS context attribute.
...
.NET's System.Data.SqlClient needs this to connect to MSSQL Server.
Signed-off-by: Damjan Jovanovic <damjan.jov@gmail.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-01-28 20:39:24 +01:00
Alexandre Julliard
16254af818
secur32/tests: Update for new WineHQ certificate.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-06-05 19:30:42 +02:00
Hans Leidekker
0527cf89fb
secur32: Add TLS application protocol negotiation support.
...
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-09 21:04:04 +02:00
Hans Leidekker
1de8e293d8
secur32/tests: Fix test failures.
...
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-10-04 22:11:20 +02:00
Hans Leidekker
5a0de62cf9
secur32: Fix default return flags for schannel contexts.
...
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-02-08 12:11:45 +01:00
Hans Leidekker
e31bc3dbdb
secur32: Return ISC_RET_USED_SUPPLIED_CREDS for schannel contexts if the feature was requested.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=46127
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-02-08 12:11:41 +01:00
Jacek Caban
40c847d807
schannel.h: Add TLS 1.3 defines.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-11-20 19:46:33 +01:00
Hans Leidekker
061b0c459b
secur32/tests: Connect to test.winehq.org instead of www.winehq.org.
...
Also make the tests more strict.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-03 15:53:03 +02:00
Michael Müller
4ece6abdb5
secur32: Set output buffer size to zero during handshake when no data needs to be sent.
...
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-15 12:36:56 +02:00
Dmitry Timoshkov
dfb09f4807
secur32/tests: Add a test for Schannel behaviour with SECPKG_ATTR_NEGOTIATION_INFO query.
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-14 13:50:56 +01:00
Akihiro Sagawa
b6d32239d6
secur32: Add support for SECPKG_ATTR_KEY_INFO.
...
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-25 20:53:04 +02:00
Akihiro Sagawa
8b2e3c6796
secur32/tests: Add tests with SECPKG_ATTR_KEY_INFO.
...
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-21 22:06:58 +02:00
Jacek Caban
0706ba1114
secur32: Added support for SECPKG_ATTR_ENDPOINT_BINDINGS in schannel.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-02 15:46:26 +01:00
Huw Davies
7a0c843425
secur32/tests: Fix test failures on Windows 10.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-16 16:54:53 +01:00
Jacek Caban
c1f055d8df
secur32: Don't change input buffer in InitializeSecurityContext.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-13 20:13:31 +01:00
Jacek Caban
81861dddcc
secur32/tests: Use importlib for functions available since Windows XP.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-13 20:13:29 +01:00
Jacek Caban
76507e0ed2
secur32/tests: Don't load crypt32.dll function dynamically.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-14 23:50:22 +09:00
Jacek Caban
6032480124
secur32/tests: Don't load advapi32.dll function dynamically.
...
They are available since XP.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-14 01:02:59 +09:00
Alexandre Julliard
a0fe286174
secur32/tests: Relax the certificate check a little.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-24 23:11:08 +09:00
Alexandre Julliard
9ab03dd7bb
secur32/tests: Don't check the exact number of cipher bits.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-21 19:50:27 +01:00
Jacek Caban
bca49f1403
secur32: Added SECPKG_ATTR_SUPPORTED_ALGS tests.
2015-07-03 12:46:44 +09:00
Jacek Caban
48ea8a1cb4
secur32/tests: Don't call InitializeSecurityContext on an uninitialized buffer.
...
Also documents failure on an invalid buffer.
2015-01-22 17:31:44 +01:00
Hans Leidekker
5a6558b854
secur32/tests: Switch requested protocol from SSL3 to TLS1.
2014-10-21 18:49:58 +09:00
Alexandre Julliard
0ff2fb8a4f
secur32/tests: Update test for the new certificate on winehq.org.
2014-09-25 16:08:05 +02:00
Alexandre Julliard
d0d6dcb70e
secur32/tests: Include winsock2.h before other headers.
2014-07-24 20:10:28 +02:00
Jacek Caban
293c53e22f
secur32: Fixed schannel tests on Windows 8.1.
2014-04-16 14:38:16 +02:00
Jacek Caban
29a409b222
secur32/tests: Fixed tests with new winehq.org setup.
2014-03-03 17:02:53 +01:00
Dmitry Timoshkov
25a0375432
secur32/tests: Add a test for QueryCredentialsAttributes(SECPKG_CRED_ATTR_NAMES).
2013-12-13 16:21:08 +01:00
Dmitry Timoshkov
476f57fd63
secur32/tests: Make sure that QueryContextAttributes(SECPKG_ATTR_STREAM_SIZES) succeeds.
2013-12-13 14:37:42 +01:00
Dmitry Timoshkov
79511d98b7
secur32/tests: Use LoadLibrary instead of GetModuleHandle to load advapi32.dll APIs.
2013-12-13 14:37:40 +01:00
Jacek Caban
00e53de765
secur32: Compile tests with __WINESRC__ define.
2013-10-10 13:33:50 +02:00
Michael Stefaniuc
2a39cb377a
dlls: Replace the remaining CONSTs.
2013-09-25 11:49:20 +02:00
André Hentschel
3a0961aced
secur32/tests: Better defined InitializeSecurityContext tests.
2013-08-28 11:30:31 +02:00
Alexandre Julliard
55e37bdbf3
secur32/tests: Run the tests against the winehq.org server.
2013-07-30 14:43:36 +02:00
Jacek Caban
79c5d5cc17
secur32: Added SECPKG_ATTR_SUPPORTED_PROTOCOLS tests.
2013-03-27 20:12:29 +01:00
Jacek Caban
64c84ef5c4
secur32: Report SecPkgContext_ConnectionInfo in bits, not bytes.
2013-02-27 19:23:36 +01:00
Jacek Caban
63c7f8d8ee
secur32: Added SECPKG_ATTR_REMOTE_CERT_CONTEXT tests.
2013-01-21 16:19:35 +01:00
Henri Verbeet
394519db67
secur32: Handle incomplete messages in schan_InitializeSecurityContextW().
2012-06-26 17:32:40 +02:00
Alexandre Julliard
0359f9d430
secur32/tests: Avoid crash on test failure.
2011-09-09 15:53:49 +02:00