From: Dmitry Timoshkov dmitry@baikal.ru
Signed-off-by: Dmitry Timoshkov dmitry@baikal.ru --- dlls/secur32/lsa.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/dlls/secur32/lsa.c b/dlls/secur32/lsa.c index 3f119df04d0..11e05a55d0a 100644 --- a/dlls/secur32/lsa.c +++ b/dlls/secur32/lsa.c @@ -770,6 +770,14 @@ static SECURITY_STATUS WINAPI lsa_VerifySignature(CtxtHandle *context, SecBuffer return lsa_ctx->package->user_api->VerifySignature(lsa_ctx->handle, message, message_seq_no, quality_of_protection); }
+static SECURITY_STATUS WINAPI lsa_QuerySecurityContextToken(CtxtHandle *context, HANDLE *token) +{ + FIXME("%p %p): stub\n", context, token); + if (!OpenProcessToken(GetCurrentProcess(), MAXIMUM_ALLOWED, token)) + return GetLastError(); + return SEC_E_OK; +} + static SECURITY_STATUS WINAPI lsa_EncryptMessage(CtxtHandle *context, ULONG quality_of_protection, SecBufferDesc *message, ULONG message_seq_no) { @@ -830,7 +838,7 @@ static const SecurityFunctionTableW lsa_sspi_tableW = NULL, /* ImportSecurityContextW */ NULL, /* AddCredentialsW */ NULL, /* Reserved8 */ - NULL, /* QuerySecurityContextToken */ + lsa_QuerySecurityContextToken, lsa_EncryptMessage, lsa_DecryptMessage, NULL, /* SetContextAttributesW */