some more bits of gss_context_query_attributes

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24727 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2009-02-16 18:36:46 +00:00
parent 377420ab8e
commit f20b6f093d

View File

@@ -143,7 +143,7 @@ gss_release_iov_buffer(OM_uint32 *minor_status,
return GSS_S_COMPLETE; return GSS_S_COMPLETE;
} }
typedef struct gss_context_stream_sizes_desc { typedef struct {
size_t header; /**< size of header */ size_t header; /**< size of header */
size_t trailer; /**< size of trailer */ size_t trailer; /**< size of trailer */
size_t max_msg_size; /**< maximum message size */ size_t max_msg_size; /**< maximum message size */
@@ -156,9 +156,16 @@ typedef struct gss_context_stream_sizes_desc {
/** /**
* Query the context for parameters. * Query the context for parameters.
* *
* - GSS_OID_ATTR_STREAM_SIZES data is a gss_context_stream_sizes. * SSPI equivalent if this function is QueryContextAttributes.
*
* - GSS_C_ATTR_STREAM_SIZES data is a gss_context_stream_sizes.
*/ */
static gss_OID_desc gss_c_attr_stream_sizes_desc =
{10, rk_UNCONST("\x2a\x86\x48\x86\xf7\x12\x01\x02\x01\x03")};
gss_OID GSSAPI_LIB_VARIABLE GSS_C_ATTR_STREAM_SIZES =
&gss_c_attr_stream_sizes_desc;
OM_uint32 GSSAPI_LIB_FUNCTION OM_uint32 GSSAPI_LIB_FUNCTION
gss_context_query_attributes(OM_uint32 *minor_status, gss_context_query_attributes(OM_uint32 *minor_status,
@@ -168,6 +175,10 @@ gss_context_query_attributes(OM_uint32 *minor_status,
{ {
*minor_status = 0; *minor_status = 0;
if (gss_oid_equal(GSS_C_ATTR_STREAM_SIZES, attribute)) {
memset(data, 0, len);
return GSS_S_COMPLETE; return GSS_S_COMPLETE;
} }
return GSS_S_FAILURE;
}