diff options
-rw-r--r-- | cifs.upcall.c | 1 | ||||
-rw-r--r-- | spnego.h | 11 |
2 files changed, 12 insertions, 0 deletions
diff --git a/cifs.upcall.c b/cifs.upcall.c index 964bbbd..c7653de 100644 --- a/cifs.upcall.c +++ b/cifs.upcall.c @@ -38,6 +38,7 @@ create dns_resolver * * /usr/local/sbin/cifs.upcall %k #include "replace.h" #include "data_blob.h" +#include "spnego.h" #include "cifs_spnego.h" #define CIFS_DEFAULT_KRB5_DIR "/tmp" diff --git a/spnego.h b/spnego.h new file mode 100644 index 0000000..9120f9a --- /dev/null +++ b/spnego.h @@ -0,0 +1,11 @@ +#ifndef _SPNEGO_H +#define _SPNEGO_H + +/* not really SPNEGO but GSSAPI (RFC 1964) */ +#define TOK_ID_KRB_AP_REQ (unsigned char *)"\x01\x00" +#define TOK_ID_KRB_AP_REP (unsigned char *)"\x02\x00" +#define TOK_ID_KRB_ERROR (unsigned char *)"\x03\x00" +#define TOK_ID_GSS_GETMIC (unsigned char *)"\x01\x01" +#define TOK_ID_GSS_WRAP (unsigned char *)"\x02\x01" + +#endif /* _SPNEGO_H */ |