Henri Verbeet : secur32: Add stubs for schannel QueryContextAttributesA() and QueryContextAttributesW().
Alexandre Julliard
julliard at winehq.org
Mon Dec 29 08:47:39 CST 2008
Module: wine
Branch: master
Commit: 3c114a88ca1752ac07fe039d0471f89384ea4704
URL: http://source.winehq.org/git/wine.git/?a=commit;h=3c114a88ca1752ac07fe039d0471f89384ea4704
Author: Henri Verbeet <hverbeet at gmail.com>
Date: Sun Dec 28 22:21:35 2008 +0100
secur32: Add stubs for schannel QueryContextAttributesA() and QueryContextAttributesW().
---
dlls/secur32/schannel.c | 32 ++++++++++++++++++++++++++++++--
1 files changed, 30 insertions(+), 2 deletions(-)
diff --git a/dlls/secur32/schannel.c b/dlls/secur32/schannel.c
index c0c1726..df5d56a 100644
--- a/dlls/secur32/schannel.c
+++ b/dlls/secur32/schannel.c
@@ -800,6 +800,34 @@ static SECURITY_STATUS SEC_ENTRY schan_InitializeSecurityContextA(
return ret;
}
+static SECURITY_STATUS SEC_ENTRY schan_QueryContextAttributesW(
+ PCtxtHandle context_handle, ULONG attribute, PVOID buffer)
+{
+ TRACE("context_handle %p, attribute %#x, buffer %p\n",
+ context_handle, attribute, buffer);
+
+ switch(attribute)
+ {
+ default:
+ FIXME("Unhandled attribute %#x\n", attribute);
+ return SEC_E_UNSUPPORTED_FUNCTION;
+ }
+}
+
+static SECURITY_STATUS SEC_ENTRY schan_QueryContextAttributesA(
+ PCtxtHandle context_handle, ULONG attribute, PVOID buffer)
+{
+ TRACE("context_handle %p, attribute %#x, buffer %p\n",
+ context_handle, attribute, buffer);
+
+ switch(attribute)
+ {
+ default:
+ FIXME("Unhandled attribute %#x\n", attribute);
+ return SEC_E_UNSUPPORTED_FUNCTION;
+ }
+}
+
static SECURITY_STATUS SEC_ENTRY schan_DeleteSecurityContext(PCtxtHandle context_handle)
{
struct schan_context *ctx;
@@ -834,7 +862,7 @@ static const SecurityFunctionTableA schanTableA = {
NULL, /* CompleteAuthToken */
schan_DeleteSecurityContext,
NULL, /* ApplyControlToken */
- NULL, /* QueryContextAttributesA */
+ schan_QueryContextAttributesA,
NULL, /* ImpersonateSecurityContext */
NULL, /* RevertSecurityContext */
NULL, /* MakeSignature */
@@ -865,7 +893,7 @@ static const SecurityFunctionTableW schanTableW = {
NULL, /* CompleteAuthToken */
schan_DeleteSecurityContext,
NULL, /* ApplyControlToken */
- NULL, /* QueryContextAttributesW */
+ schan_QueryContextAttributesW,
NULL, /* ImpersonateSecurityContext */
NULL, /* RevertSecurityContext */
NULL, /* MakeSignature */
More information about the wine-cvs
mailing list