summaryrefslogtreecommitdiffstats
path: root/source/include/kanji.h
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1997-09-14 16:37:18 +0000
committerAndrew Tridgell <tridge@samba.org>1997-09-14 16:37:18 +0000
commitdb917c62c14315afe6f0745a8097c1bca25cbf07 (patch)
tree6628a1429b830fabe83671c0f811cb0fb5318a17 /source/include/kanji.h
parentc2bc073a878179dd56db97c66dc957d42fe0b81b (diff)
downloadsamba-db917c62c14315afe6f0745a8097c1bca25cbf07.tar.gz
samba-db917c62c14315afe6f0745a8097c1bca25cbf07.tar.xz
samba-db917c62c14315afe6f0745a8097c1bca25cbf07.zip
This commit does 3 main things:
1) put the encryption code in by default, with no #ifdef. It is still disabled by default so you need to add "encrypt passwords = yes" in smb.conf but at least all binaries will have it. 2) cleanup the kanji code so it compiles with no warnings 3) get rid of lots of uses of ugly non-portable C code. The main offender being things like "register" but also remove uses of the "const" keyword as there are compilers out there that don't support it and even those that do often complain about its usage. Users don't like warnings :-( There is still some work to do. We need to replace the md4 code with our own implementation. The current code (from rfc1186) is PD but is not very portable. The new RFC (rfc1320) is more portable but adds copyright restrictions. I'll do a from-scratch MD4 soon. We also need to test that what I've implemented is portable. It should be, but I'm too tired right now to test it on anything other than intel linux.
Diffstat (limited to 'source/include/kanji.h')
-rw-r--r--source/include/kanji.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/source/include/kanji.h b/source/include/kanji.h
index 1d2359baa94..cf303659208 100644
--- a/source/include/kanji.h
+++ b/source/include/kanji.h
@@ -105,13 +105,8 @@
#else /* not _KANJI_C_ */
-extern char* (*_dos_to_unix) (const char *str, BOOL overwrite);
-extern char* (*_unix_to_dos) (const char *str, BOOL overwrite);
-
-extern char *sj_strtok (char *s1, const char *s2);
-extern char *sj_strchr (const char *s, int c);
-extern char *sj_strrchr (const char *s, int c);
-extern char *sj_strstr (const char *s1, const char *s2);
+extern char *(*_dos_to_unix)(char *str, BOOL overwrite);
+extern char *(*_unix_to_dos)(char *str, BOOL overwrite);
#define strchr sj_strchr
#define strrchr sj_strrchr