From fd8d8833e2f3496893c970550eecc6449b59b9d5 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Wed, 16 Oct 2013 21:51:16 -0400 Subject: Add way to set sequence numbres. In NTLMSSP connectionless mode applications are supposed to provide the sequence number, however GSSAPI's get_mic and verify_mic functions do not allow to pass an explicit sequence number. Allow to override the context sequence numbers using a custom oid and implemnting gss_set_sec_context_option() Allows the operation only if the context is in connectionless mode. --- src/gss_spi.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/gss_spi.c') diff --git a/src/gss_spi.c b/src/gss_spi.c index 3c17e95..5818824 100644 --- a/src/gss_spi.c +++ b/src/gss_spi.c @@ -285,3 +285,14 @@ OM_uint32 gss_display_name(OM_uint32 *minor_status, output_name_buffer, output_name_type); } + +OM_uint32 gss_set_sec_context_option(OM_uint32 *minor_status, + gss_ctx_id_t *context_handle, + const gss_OID desired_object, + const gss_buffer_t value) +{ + return gssntlm_set_sec_context_option(minor_status, + context_handle, + desired_object, + value); +} -- cgit