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:
21
kdc/main.c
Normal file
21
kdc/main.c
Normal 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);
|
||||
}
|
Reference in New Issue
Block a user