summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.am2
-rw-r--r--replace.h4
-rw-r--r--spnego.h6
3 files changed, 11 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index ea94284..21dd012 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -3,5 +3,5 @@ root_sbin_PROGRAMS = mount.cifs
mount_cifs_SOURCES = mount.cifs.c mtab.c
sbin_PROGRAMS = cifs.upcall
-cifs_upcall_SOURCES = cifs.upcall.c data_blob.c
+cifs_upcall_SOURCES = cifs.upcall.c data_blob.c asn1.c
cifs_upcall_LDADD = ltalloc
diff --git a/replace.h b/replace.h
index 7f29338..741d8ec 100644
--- a/replace.h
+++ b/replace.h
@@ -714,4 +714,8 @@ char *ufc_crypt(const char *key, const char *salt);
#define SAFE_FREE(x) do { if ((x) != NULL) {free(x); x=NULL;} } while(0)
#endif
+typedef uint32_t NTSTATUS;
+#define NT_STATUS(x) (x)
+#define NT_STATUS_V(x) (x)
+
#endif /* _LIBREPLACE_REPLACE_H */
diff --git a/spnego.h b/spnego.h
index 9120f9a..cff67ca 100644
--- a/spnego.h
+++ b/spnego.h
@@ -1,6 +1,12 @@
#ifndef _SPNEGO_H
#define _SPNEGO_H
+/* needed OID's */
+#define OID_SPNEGO "1.3.6.1.5.5.2"
+#define OID_NTLMSSP "1.3.6.1.4.1.311.2.2.10"
+#define OID_KERBEROS5_OLD "1.2.840.48018.1.2.2"
+#define OID_KERBEROS5 "1.2.840.113554.1.2.2"
+
/* 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"