Added patch to return more context attributes in schan_InitializeSecurityContextW.

This commit is contained in:
Sebastian Lackner 2014-11-11 08:55:07 +01:00
parent de353ee024
commit 4b062e3f22
5 changed files with 60 additions and 1 deletions

View File

@ -39,7 +39,7 @@ Wine. All those differences are also documented on the
Included bug fixes and improvements
===================================
**Bugfixes and features included in the next upcoming release [15]:**
**Bugfixes and features included in the next upcoming release [16]:**
* Add stub for NtSetLdtEntries/ZwSetLdtEntries ([Wine Bug #26268](https://bugs.winehq.org/show_bug.cgi?id=26268))
* Add stubs for vectored continue handler ([Wine Bug #30572](https://bugs.winehq.org/show_bug.cgi?id=30572))
@ -54,6 +54,7 @@ Included bug fixes and improvements
* Fix texture corruption in CSI: Fatal Conspiracy ([Wine Bug #33768](https://bugs.winehq.org/show_bug.cgi?id=33768))
* MSVCRT crashes when NULL is passed as string to atof or strtod ([Wine Bug #32550](https://bugs.winehq.org/show_bug.cgi?id=32550))
* Return correct values for GetThreadTimes function ([Wine Bug #20230](https://bugs.winehq.org/show_bug.cgi?id=20230))
* Return more context attributes in schan_InitializeSecurityContextW ([Wine Bug #37527](https://bugs.winehq.org/show_bug.cgi?id=37527))
* vSphere needs IoCsqInitialize ([Wine Bug #36777](https://bugs.winehq.org/show_bug.cgi?id=36777))
* wglDescribePixelFormat should return max index for NULL descriptor ([Wine Bug #6176](https://bugs.winehq.org/show_bug.cgi?id=6176))

1
debian/changelog vendored
View File

@ -18,6 +18,7 @@ wine-compholio (1.7.31) UNRELEASED; urgency=low
* Added patch to emulate access to KI_USER_SHARED_DATA kernel page on x86_64.
* Added patch to initialize irp.Tail.Overlay.OriginalFileObject with stub file object.
* Added patch to implement emulation of SIDT instruction when using Exagear.
* Added patch to return more context attributes in schan_InitializeSecurityContextW.
* Removed patch for iphlpapi stub functions (accepted upstream).
* Removed patches for FindFirstFileExW (accepted upstream).
* Removed patches for TLB dependencies lookup in resources (accepted upstream).

View File

@ -78,6 +78,7 @@ PATCHLIST := \
ole32-CoWaitForMultipleHandles.ok \
quartz-MediaSeeking_Positions.ok \
riched20-IText_Interface.ok \
secur32-Schannel_ContextAttr.ok \
server-ACL_Compat.ok \
server-Address_Change_Notification.ok \
server-CreateProcess_ACLs.ok \
@ -1324,6 +1325,24 @@ riched20-IText_Interface.ok:
echo '+ { "riched20-IText_Interface", "Sebastian Lackner", "Implement ITextSelection_fnGetDuplicate." },'; \
) > riched20-IText_Interface.ok
# Patchset secur32-Schannel_ContextAttr
# |
# | Included patches:
# | * Return more context attributes in schan_InitializeSecurityContextW. [by Sebastian Lackner]
# |
# | This patchset fixes the following Wine bugs:
# | * [#37527] Return more context attributes in schan_InitializeSecurityContextW
# |
# | Modified files:
# | * dlls/secur32/schannel.c
# |
.INTERMEDIATE: secur32-Schannel_ContextAttr.ok
secur32-Schannel_ContextAttr.ok:
$(call APPLY_FILE,secur32-Schannel_ContextAttr/0001-secur32-Return-more-context-attributes-in-schan_Init.patch)
@( \
echo '+ { "secur32-Schannel_ContextAttr", "Sebastian Lackner", "Return more context attributes in schan_InitializeSecurityContextW." },'; \
) > secur32-Schannel_ContextAttr.ok
# Patchset server-ACL_Compat
# |
# | Included patches:

View File

@ -0,0 +1,34 @@
From f7577766e160ac55faacd0fadf20fd9ebfb47e3a Mon Sep 17 00:00:00 2001
From: Sebastian Lackner <sebastian@fds-team.de>
Date: Tue, 11 Nov 2014 08:50:46 +0100
Subject: secur32: Return more context attributes in
schan_InitializeSecurityContextW.
---
dlls/secur32/schannel.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/dlls/secur32/schannel.c b/dlls/secur32/schannel.c
index 5b86a75..12d4c8d 100644
--- a/dlls/secur32/schannel.c
+++ b/dlls/secur32/schannel.c
@@ -908,8 +908,16 @@ static SECURITY_STATUS SEC_ENTRY schan_InitializeSecurityContextW(
}
*pfContextAttr = 0;
+ if (ctx->req_ctx_attr & ISC_REQ_REPLAY_DETECT)
+ *pfContextAttr |= ISC_RET_REPLAY_DETECT;
+ if (ctx->req_ctx_attr & ISC_REQ_SEQUENCE_DETECT)
+ *pfContextAttr |= ISC_RET_SEQUENCE_DETECT;
+ if (ctx->req_ctx_attr & ISC_REQ_CONFIDENTIALITY)
+ *pfContextAttr |= ISC_RET_CONFIDENTIALITY;
if (ctx->req_ctx_attr & ISC_REQ_ALLOCATE_MEMORY)
*pfContextAttr |= ISC_RET_ALLOCATED_MEMORY;
+ if (ctx->req_ctx_attr & ISC_REQ_STREAM)
+ *pfContextAttr |= ISC_RET_STREAM;
return ret;
}
--
2.1.3

View File

@ -0,0 +1,4 @@
Author: Sebastian Lackner
Subject: Return more context attributes in schan_InitializeSecurityContextW.
Revision: 1
Fixes: [37527] Return more context attributes in schan_InitializeSecurityContextW