Commit Graph

54 Commits

Author SHA1 Message Date
Hans Leidekker 30e07109a7 kerberos: Use CRT memory allocators.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-21 10:49:39 +02:00
Hans Leidekker 1a16994a65 kerberos: Use wide character string literals.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-21 10:49:34 +02:00
Hans Leidekker 455e37850b kerberos: Build with msvcrt.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-21 10:49:24 +02:00
Hans Leidekker 0eb53443c8 kerberos: Move support for KerbQueryTicketCacheMessage to the Unix library.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-21 10:49:21 +02:00
Hans Leidekker 44593a6364 kerberos: Move support for SpUnsealMessage to the Unix library.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-21 10:49:18 +02:00
Hans Leidekker 9120045653 kerberos: Move support for SpSealMessage to the Unix library.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-21 10:49:16 +02:00
Hans Leidekker ed51785744 kerberos: Move support for SpQueryContextAttributes to the Unix library.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-21 10:49:14 +02:00
Hans Leidekker afa5c64508 kerberos: Move support for SpVerifySignature to the Unix library.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-20 21:07:10 +02:00
Hans Leidekker 712dfa4660 kerberos: Move support for SpMakeSignature to the Unix library.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-20 21:07:10 +02:00
Hans Leidekker e6aa95c08a kerberos: Move support for SpAcceptLsaModeContext to the Unix library.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-20 21:07:10 +02:00
Hans Leidekker f9292ec8b6 kerberos: Move support for SpInitLsaModeContext/SpDeleteContext to the Unix library.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-20 21:07:10 +02:00
Hans Leidekker 6e9a9d6701 kerberos: Move support for SpAcquireCredentialsHandle/SpFreeCredentialsHandle to a new Unix library.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-20 21:07:10 +02:00
Alexandre Julliard 64c8951725 kerberos: Use standard dlopen() instead of the libwine wrappers.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-06 21:21:41 +02:00
Dmitry Timoshkov 92d77920fd kerberos: Add support for SECQOP_WRAP_NO_ENCRYPT to SpSealMessage.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-02-12 20:02:40 +01:00
Dmitry Timoshkov 33732facd6 kerberos: Avoid needless conversions between SYSTEMTIME and FILETIME.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-28 11:08:59 +02:00
Dmitry Timoshkov 2db0e421ff kerberos: SpInstanceInit() doesn't need a special implementation.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-07-20 09:10:22 +02:00
Dmitry Timoshkov f9f7b775d9 kerberos: Add ISC_REQ_CONNECTION to the list of supported flags.
Formatting messages are not supported anyway.

Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-24 12:37:38 +02:00
Dmitry Timoshkov 1288908ace kerberos: Translate GSS_C_DCE_STYLE to appropriate ISC_RET and ASC_RET flags.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-24 12:37:35 +02:00
Dmitry Timoshkov 1cf45fe554 kerberos: Add support for ISC_REQ_IDENTIFY flag.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-24 12:37:33 +02:00
Dmitry Timoshkov 1f6e34aa40 kerberos: Silence a FIXME for the GSS_S_FAILURE case.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-18 11:21:30 +02:00
Hans Leidekker 697bda8ac3 kerberos: Consistently use NTSTATUS return values.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-18 16:13:55 +02:00
Hans Leidekker a110f87b83 kerberos: Add support for caller supplied credentials.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-21 15:52:08 +01:00
Hans Leidekker 917bf27322 kerberos: Get rid of a redundant parameter check in kerberos_SpInitLsaModeContext.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-21 15:51:58 +01:00
Hans Leidekker 84cde2b31a kerberos: Trace returned flags instead of the context handle in kerberos_SpAcceptLsaModeContext.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-14 20:37:54 +01:00
Hans Leidekker ab43b7cb24 kerberos: ISC_REQ_USE_DCE_STYLE is supported.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-14 20:37:54 +01:00
Hans Leidekker c6e607ff1f kerberos: Allocate a buffer for the package info structure in kerberos_SpQueryContextAttributes.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-08 13:10:06 +01:00
Hans Leidekker 64cbf292bb kerberos: Simplify kerberos_SpInitLsaModeContext.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-08 13:10:00 +01:00
Hans Leidekker 5744469234 kerberos: Don't fail on caller supplied credentials in kerberos_SpAcquireCredentialsHandle.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-08 13:09:56 +01:00
Dmitry Timoshkov 0d44fc7904 kerberos: Slightly simplify name_sspi_to_gss.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-08 13:09:41 +01:00
Hans Leidekker ddfa042db1 kerberos: Support non-DCE style contexts.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-06 14:28:10 +01:00
Dmitry Timoshkov b8f0649851 kerberos: Calling InitializeSecurityContext without a token buffer is not an error.
This patch makes Kerberos Authentication Tester work with https and dotnet40.
Apparently that's a dotnet40 quirk that it passes not NULL input buffers
but doesn't mark any of buffers as a token, dotnet20 passes NULL input.

Note, that in order to make version 2.0 applications work (Kerberos
Authentication Tester is such an application) with dotnet40+ one
needs to add to the registry key
[Software\\Microsoft\\.NETFramework]
"OnlyUseLatestCLR"=dword:00000001

Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-05 11:46:45 +01:00
Hans Leidekker 51a0b4ebb1 kerberos: Use the global memory allocation helpers.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-02 14:42:38 +01:00
Hans Leidekker e1bef53ebb kerberos: Fix parameter check in kerberos_SpUnsealMessage.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-02 14:42:38 +01:00
Hans Leidekker 1195f58643 kerberos: Don't check for GSS_S_CONTINUE_NEEDED from gss_acquire_cred.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-02 14:42:38 +01:00
Dmitry Timoshkov 0e9922bd3e kerberos: Add support for KerbQueryTicketCacheMessage.
Based on the code written by George Popoff.

Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-30 10:00:13 +01:00
Dmitry Timoshkov 10c2968ce8 kerberos: Print verbose traces on gssapi failures.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-26 15:58:40 +01:00
Dmitry Timoshkov 40f317749f kerberos: Fix printing of the sequence message number.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-26 15:58:32 +01:00
Dmitry Timoshkov 1cf6624f91 kerberos: Don't fail InitializeSecurityContext if there are unsupported flags.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-25 12:26:52 +01:00
Hans Leidekker 7919b53a30 kerberos: Implement SpUnsealMessage.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-25 12:26:48 +01:00
Hans Leidekker c4e12ca71e kerberos: Implement SpSealMessage.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-25 12:26:46 +01:00
Hans Leidekker 58996f8a77 kerberos: Implement SpVerifySignature.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-25 12:26:44 +01:00
Hans Leidekker 9a8df00503 kerberos: Implement SpMakeSignature.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-25 12:26:42 +01:00
Dmitry Timoshkov ea9e8c54d6 kerberos: Add SpInstanceInit stub.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-25 12:26:40 +01:00
Dmitry Timoshkov 83ea13d6d7 kerberos: Add SpUserModeInitialize implementation.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-25 12:26:36 +01:00
Hans Leidekker 301419ed21 kerberos: Implement SpQueryContextAttributes.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-25 12:26:31 +01:00
Hans Leidekker 5aaeaa60c2 kerberos: Implement SpFreeCredentialsHandle.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-24 17:09:39 +01:00
Hans Leidekker 09f0404326 kerberos: Implement SpDeleteContext.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-24 17:09:39 +01:00
Hans Leidekker ce3f72ef32 kerberos: Implement SpAcceptLsaModeContext.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-24 17:09:39 +01:00
Hans Leidekker 61086485e8 kerberos: Implement SpInitLsaModeContext.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-24 17:09:38 +01:00
Hans Leidekker 737d464e75 kerberos: Implement SpAcquireCredentialsHandle.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-24 16:12:38 +01:00