diff options
author | Jeff Layton <jlayton@redhat.com> | 2010-02-07 10:54:17 -0500 |
---|---|---|
committer | Jeff Layton <jlayton@redhat.com> | 2010-02-07 10:54:17 -0500 |
commit | 6479cc23ac75cd19b795e18a6ae4a4ead6df843c (patch) | |
tree | 91c4392af0f4663b66c36fcef18febb1fcb393e2 | |
parent | 055f09f3ede1c9fb946cdc8ccad86b1185396e01 (diff) | |
download | cifs-utils-6479cc23ac75cd19b795e18a6ae4a4ead6df843c.tar.gz cifs-utils-6479cc23ac75cd19b795e18a6ae4a4ead6df843c.tar.bz2 cifs-utils-6479cc23ac75cd19b795e18a6ae4a4ead6df843c.zip |
cifs.upcall: add a spnego.h file
...to hold SPNEGO definitions.
Signed-off-by: Jeff Layton <jlayton@redhat.com>
-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 */ |