diff options
author | Simo Sorce <simo@redhat.com> | 2013-10-16 17:59:35 -0400 |
---|---|---|
committer | Simo Sorce <simo@redhat.com> | 2013-10-18 16:29:50 -0400 |
commit | 11b40086ed584a20764be67f4345ccee7ea5bcaf (patch) | |
tree | 3985ac7025f2e4f1592cbdd4bef93f9ea6bb253b /src | |
parent | e6370d26843206bcf7e418d3c3014611fdecc489 (diff) | |
download | gss-ntlmssp-11b40086ed584a20764be67f4345ccee7ea5bcaf.tar.gz gss-ntlmssp-11b40086ed584a20764be67f4345ccee7ea5bcaf.tar.xz gss-ntlmssp-11b40086ed584a20764be67f4345ccee7ea5bcaf.zip |
Add public devel header file
This contains definitions for various OIDs and flags needed to
implemented non-standard features like NTLMSSP Connectionless mode.
Diffstat (limited to 'src')
-rw-r--r-- | src/gss_ntlmssp.c | 9 | ||||
-rw-r--r-- | src/gssapi_ntlmssp.h | 41 |
2 files changed, 44 insertions, 6 deletions
diff --git a/src/gss_ntlmssp.c b/src/gss_ntlmssp.c index 6dba56b..7246359 100644 --- a/src/gss_ntlmssp.c +++ b/src/gss_ntlmssp.c @@ -20,15 +20,12 @@ #include <string.h> #include <time.h> -#include <gssapi/gssapi.h> -#include <gssapi/gssapi_ext.h> - +#include "gssapi_ntlmssp.h" #include "gss_ntlmssp.h" -/* 1.3.6.1.4.1.311.2.2.10 */ const gss_OID_desc gssntlm_oid = { - .length = 10, - .elements = "\x2b\x06\x01\x04\x01\x82\x37\x02\x02\x0a" + .length = GSS_NTLMSSP_OID_LENGTH, + .elements = GSS_NTLMSSP_OID_STRING }; uint8_t gssntlm_required_security(int security_level, diff --git a/src/gssapi_ntlmssp.h b/src/gssapi_ntlmssp.h new file mode 100644 index 0000000..17cbed8 --- /dev/null +++ b/src/gssapi_ntlmssp.h @@ -0,0 +1,41 @@ +/* + Copyright (C) 2013 Simo Sorce <simo@samba.org> + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 3 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, see <http://www.gnu.org/licenses/>. +*/ + +#ifndef _GSSAPI_NTLMSSP_H_ +#define _GSSAPI_NTLMSSP_H_ + +#include <gssapi/gssapi.h> +#include <gssapi/gssapi_ext.h> + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +/* NTLMSSP OID: 1.3.6.1.4.1.311.2.2.10 */ +#define GSS_NTLMSSP_OID_STRING "\x2b\x06\x01\x04\x01\x82\x37\x02\x02\x0a" +#define GSS_NTLMSSP_OID_LENGTH 10 + +/* add a new GSSPAPI req flag, it is technically a sort of SSPI + * extension as Microsoft's SSPI may change behavior on datagram + * oriented connections and has a ISC_REQ_DATAGRAM flag for that */ +#define GSS_C_DATAGRAM_FLAG 0x10000 + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + +#endif /* _GSSAPI_NTLMSSP_H_ */ |