aboutsummaryrefslogtreecommitdiff
path: root/src/krb524/libinit.c
diff options
context:
space:
mode:
authorDanilo Almeida <dalmeida@mit.edu>2000-07-20 00:46:02 +0000
committerDanilo Almeida <dalmeida@mit.edu>2000-07-20 00:46:02 +0000
commitaaa76aad10fa3caac34fabf5231146a36d579471 (patch)
tree8d710bd96a98fc7607a5058bc95b8c5bb00c6654 /src/krb524/libinit.c
parent3e14565597763891f97322ff9d6843ab109cf830 (diff)
downloadkrb5-aaa76aad10fa3caac34fabf5231146a36d579471.zip
krb5-aaa76aad10fa3caac34fabf5231146a36d579471.tar.gz
krb5-aaa76aad10fa3caac34fabf5231146a36d579471.tar.bz2
* Makefile.in: Make krb524 library and k524init program build on
Windows. * krb524.def, libinit.c: Files needed to build on Windows. * k524init.c: Use public krb_in_tkt() with realm paramter instead of potentially private in_tkt() w/o realm parameter (which does not even exist w/o the realm paramter in some krb4 libraries). Use krb_save_credentials() instead of tf_init() then tf_save_credentials() then tf_close(). * cnv_tkt_skey.c: Put copy of krb_cr_tkt_krb5() and krb_create_ticket() as static functions in this file, calling them krb524int_*(). Call these functions instead of the ones in the MIT krb4 library included in the krb5 tree. * conv_princ.c: Remove unused headers. * k524init.c, cnv_tkt_skey.c, conv_creds.c, encode.c, misc.c, sendmsg.c, test.c: Do not include Unix headers on Windows. * sendmsg.c (krb524_sendto_kdc): Fix call to krb5_locate_kdc() to use right number and types of parameters. Use krb5int_accessor() to get at internals: krb5_locate_kdc(), krb5_max_dgram_size, krb5_skdc_timeout_1, and krb5_skdc_timeout_shift. (The latter 3 should probably be #defines...) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12569 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/krb524/libinit.c')
-rw-r--r--src/krb524/libinit.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/krb524/libinit.c b/src/krb524/libinit.c
new file mode 100644
index 0000000..22aeea9
--- /dev/null
+++ b/src/krb524/libinit.c
@@ -0,0 +1,27 @@
+#ifdef _WIN32
+#include <windows.h>
+
+BOOL
+WINAPI
+DllMain(
+ HANDLE hModule,
+ DWORD fdwReason,
+ LPVOID lpReserved
+ )
+{
+ switch (fdwReason)
+ {
+ case DLL_PROCESS_ATTACH:
+ break;
+ case DLL_THREAD_ATTACH:
+ break;
+ case DLL_THREAD_DETACH:
+ break;
+ case DLL_PROCESS_DETACH:
+ break;
+ default:
+ return FALSE;
+ }
+ return TRUE;
+}
+#endif