summaryrefslogtreecommitdiffstats
path: root/src/gss_spi.c
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2013-10-16 21:51:16 -0400
committerSimo Sorce <simo@redhat.com>2013-10-18 16:29:51 -0400
commitfd8d8833e2f3496893c970550eecc6449b59b9d5 (patch)
tree25fc65ee9548c38b861fb65986b452fc6ad36bc4 /src/gss_spi.c
parent1793582754d508191bf90404b0936060060b9027 (diff)
downloadgss-ntlmssp-fd8d8833e2f3496893c970550eecc6449b59b9d5.tar.gz
gss-ntlmssp-fd8d8833e2f3496893c970550eecc6449b59b9d5.tar.xz
gss-ntlmssp-fd8d8833e2f3496893c970550eecc6449b59b9d5.zip
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.
Diffstat (limited to 'src/gss_spi.c')
-rw-r--r--src/gss_spi.c11
1 files changed, 11 insertions, 0 deletions
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);
+}