Split into more files. Add support for TCP.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1848 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
1997-06-07 17:35:53 +00:00
parent 20f7838f30
commit 96f3cac1da
7 changed files with 343 additions and 148 deletions

21
kdc/main.c Normal file
View File

@@ -0,0 +1,21 @@
#include "kdc_locl.h"
RCSID("$Id$");
RETSIGTYPE
sigterm(int sig)
{
exit(0);
}
int
main(int argc, char **argv)
{
krb5_context context;
des_cblock key;
des_new_random_key(&key);
memset(&key, 0, sizeof(key));
signal(SIGINT, sigterm);
krb5_init_context(&context);
loop(context);
}