Commit Graph

34 Commits

Author SHA1 Message Date
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
Dmitry Timoshkov 5b6920bd8f kerberos: Add stubs for SpInitialize and SpShutdown.
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-19 16:40:54 +01:00
Dmitry Timoshkov 3e7edceb14 kerberos: Implement SpGetInfo.
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-19 16:40:54 +01:00
Dmitry Timoshkov 892e11835d kerberos: Use kerberos prefix instead of krb5.
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-19 12:12:03 +01:00
Dmitry Timoshkov e9063e1243 kerberos: Add a stub for Kerberos5 Authentication Package.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-18 11:49:58 +02:00