summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2013-11-23 15:44:00 -0500
committerSimo Sorce <simo@redhat.com>2014-01-06 21:27:55 -0500
commit2525b828319b5159a682da20f016a051b6db85bd (patch)
treeb4118f0e1fb786694899cef7e0a466ab7d2686d5
parentf2d61c219137cc54aa39ef786320cc271e4220f0 (diff)
downloadgss-proxy-2525b828319b5159a682da20f016a051b6db85bd.tar.gz
gss-proxy-2525b828319b5159a682da20f016a051b6db85bd.tar.xz
gss-proxy-2525b828319b5159a682da20f016a051b6db85bd.zip
Interpose also NTLMSSP mechanism
-rw-r--r--proxy/src/mechglue/gss_plugin.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/proxy/src/mechglue/gss_plugin.c b/proxy/src/mechglue/gss_plugin.c
index 372ab2e..0fe7636 100644
--- a/proxy/src/mechglue/gss_plugin.c
+++ b/proxy/src/mechglue/gss_plugin.c
@@ -27,6 +27,7 @@
#include <signal.h>
#include <endian.h>
#include <gssapi/gssapi_krb5.h>
+#include <gssapi/gssapi_ntlmssp.h>
#define KRB5_OID_LEN 9
#define KRB5_OID "\052\206\110\206\367\022\001\002\002"
@@ -58,6 +59,11 @@ const gss_OID_desc gpoid_iakerb = {
.elements = IAKERB_OID
};
+const gss_OID_desc gpoid_ntlmssp = {
+ .length = GSS_NTLMSSP_OID_LENGTH,
+ .elements = GSS_NTLMSSP_OID_STRING
+};
+
enum gpp_behavior gpp_get_behavior(void)
{
static enum gpp_behavior behavior = GPP_UNINITIALIZED;
@@ -138,6 +144,11 @@ gss_OID_set gss_mech_interposer(gss_OID mech_type)
if (maj != 0) {
goto done;
}
+ maj = gss_add_oid_set_member(&min, no_const(&gpoid_ntlmssp),
+ &interposed_mechs);
+ if (maj != 0) {
+ goto done;
+ }
}
/* while there also initiaize special_mechs */