-/***********************************************************************
- *
- * encrypt.c - routines to send and receive encrypted chunks using
- * the krb_mk_priv and krb_rd_priv routines. A chunk
- * consists of a network long "n" (the length) followed
- * by "n" bytes of encrypted data.
- *
- * $Id$
- *
- * $Log$
- * Revision 1.4 2005/05/18 06:08:37 eagle
- * Fix lots of warnings.
- *
- * Revision 1.3 2003/08/18 19:03:26 eagle
- * Update the arguments for send_encrypted_chunk and receive_encrypted_chunk
- * to match the header prototypes for Kerberos v5 1.3.x. This will now
- * produce warnings for Kerberos v5 1.2.x, but it should end up being
- * equivalent, and this method is more completely correct.
- *
- * Revision 1.2 2001/03/06 15:02:11 bbense
- * Ported to Solaris 2.7 and new krb5 k4 libraries.
- *
- * Revision 1.1 1994/06/08 17:21:41 schemers
- * Initial revision
- *
- *
- *----------------------------------------------------------------------
- * Copyright (c) 1994 Board of Trustees, Leland Stanford Jr. University
- ***********************************************************************/
+/* $Id$
+**
+** Routines to send and receive encrypted chunks using the krb_mk_priv and
+** krb_rd_priv routines. A chunk consists of a network long "n" (the length)
+** followed by "n" bytes of encrypted data.
+*/
+
+#include "config.h"
#include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
-#include <krb.h>
#include <errno.h>
-
-#include <memory.h>
#include <stdlib.h>
#include <string.h>
+#ifdef HAVE_KERBEROSIV_KRB_H
+# include <kerberosIV/krb.h>
+#else
+# include <krb.h>
+#endif
+
#include "kftgt.h"
int
-/***************************************************************************
- *
- * kftgt.c - client program for kftgtd
- *
- * $Id$
- *
- * $Log$
- * Revision 1.8 2005/05/18 06:08:37 eagle
- * Fix lots of warnings.
- *
- * Revision 1.7 2003/08/18 19:03:27 eagle
- * Update the arguments for send_encrypted_chunk and receive_encrypted_chunk
- * to match the header prototypes for Kerberos v5 1.3.x. This will now
- * produce warnings for Kerberos v5 1.2.x, but it should end up being
- * equivalent, and this method is more completely correct.
- *
- * Revision 1.6 2003/03/04 00:59:26 eagle
- * Return specific error codes on any failures.
- *
- * Revision 1.5 2001/03/22 19:18:43 bbense
- * Minor tweaks to get rid of warnings.
- *
- * Revision 1.4 1997/11/24 18:33:34 opusl
- * fix usage string
- *
- * Revision 1.3 1997/11/24 18:14:31 opusl
- * allow forwarding to multiple hosts and usernames (MASSIVE reorg)
- *
- * Revision 1.2 1997/10/26 03:49:14 opusl
- * reformat, ANSIfy
- *
- * Revision 1.1 1994/06/08 17:28:04 schemers
- * Initial revision
- *
- *
- *--------------------------------------------------------------------------
- * Copyright (c) 1994,1997 Board of Trustees, Leland Stanford Jr. University
- ***************************************************************************/
+/* $Id$
+**
+** Client program for Kerberos v4 ticket forwarding.
+*/
/*
* INCLUDES
*/
+#include "config.h"
+
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
-#include <krb.h>
#include <errno.h>
#include <memory.h>
#include <string.h>
#include <signal.h>
#include <stdarg.h>
+#ifdef HAVE_KERBEROSIV_KRB_H
+# include <kerberosIV/krb.h>
+#else
+# include <krb.h>
+#endif
+
#include "kftgt.h"
#include "encrypt.h"
#include "marsh.h"
-/***********************************************************************
- *
- * kftgtd.c - server program for kftgt
- *
- * $Id$
- *
- * $Log$
- * Revision 1.6 2005/05/18 06:08:37 eagle
- * Fix lots of warnings.
- *
- * Revision 1.5 2003/08/18 19:03:27 eagle
- * Update the arguments for send_encrypted_chunk and receive_encrypted_chunk
- * to match the header prototypes for Kerberos v5 1.3.x. This will now
- * produce warnings for Kerberos v5 1.2.x, but it should end up being
- * equivalent, and this method is more completely correct.
- *
- * Revision 1.4 2001/03/22 19:18:43 bbense
- * Minor tweaks to get rid of warnings.
- *
- * Revision 1.3 2001/03/06 15:02:11 bbense
- * Ported to Solaris 2.7 and new krb5 k4 libraries.
- *
- * Revision 1.2 1997/10/26 03:03:05 opusl
- * strncmp not strcmp on the version string
- *
- * Revision 1.1 1994/06/08 17:28:14 schemers
- * Initial revision
- *
- *
- *----------------------------------------------------------------------
- * Copyright (c) 1994 Board of Trustees, Leland Stanford Jr. University
- ***********************************************************************/
+/* $Id$
+**
+** Server program for Kerberos v4 ticket forwarding.
+*/
+
+#include "config.h"
#include <stdio.h>
#include <sys/types.h>
#include <signal.h>
#include <unistd.h>
-#include <krb.h>
+#ifdef HAVE_KERBEROSIV_KRB_H
+# include <kerberosIV/krb.h>
+#else
+# include <krb.h>
+#endif
#include "kftgt.h"
#include "encrypt.h"
-/***********************************************************************
- *
- * marsh.c - routines to marshall/unmarshall parameters and tgts
- *
- * $Id$
- *
- * $Log$
- * Revision 1.2 2005/05/18 06:08:37 eagle
- * Fix lots of warnings.
- *
- * Revision 1.1 1994/06/08 17:28:42 schemers
- * Initial revision
- *
- *
- *----------------------------------------------------------------------
- * Copyright (c) 1994 Board of Trustees, Leland Stanford Jr. University
- ***********************************************************************/
+/* $Id$
+**
+** Routines to marshall/unmarshall parameters and ticket-granting tickets.
+*/
+
+#include "config.h"
-#include <memory.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
-#include <krb.h>
+
+#ifdef HAVE_KERBEROSIV_KRB_H
+# include <kerberosIV/krb.h>
+#else
+# include <krb.h>
+#endif
#include "kftgt.h"