1994-09-30 14:50:09 +00:00
|
|
|
/*
|
|
|
|
* Copyright 1985, 1986, 1987, 1988 by the Massachusetts Institute
|
|
|
|
* of Technology.
|
|
|
|
* For copying and distribution information, please see the file
|
|
|
|
* <Copyright.MIT>.
|
|
|
|
*
|
|
|
|
* from: pkt_cipher.c,v 4.8 89/01/13 17:46:14 steiner Exp $
|
1995-08-25 22:52:32 +00:00
|
|
|
* $Id: pkt_cipher.c,v 1.3 1995/07/18 16:39:25 mark Exp $
|
1994-09-30 14:50:09 +00:00
|
|
|
*/
|
|
|
|
|
1995-08-25 22:52:32 +00:00
|
|
|
#if 0
|
1994-09-30 14:50:09 +00:00
|
|
|
#ifndef lint
|
|
|
|
static char *rcsid =
|
1995-08-25 22:52:32 +00:00
|
|
|
"$Id: pkt_cipher.c,v 1.3 1995/07/18 16:39:25 mark Exp $";
|
1994-09-30 14:50:09 +00:00
|
|
|
#endif /* lint */
|
1995-08-25 22:52:32 +00:00
|
|
|
#endif
|
1994-09-30 14:50:09 +00:00
|
|
|
|
|
|
|
#include <krb.h>
|
|
|
|
#include <prot.h>
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* This routine takes a reply packet from the Kerberos ticket-granting
|
|
|
|
* service and returns a pointer to the beginning of the ciphertext in it.
|
|
|
|
*
|
|
|
|
* See "prot.h" for packet format.
|
|
|
|
*/
|
|
|
|
|
|
|
|
KTEXT
|
|
|
|
pkt_cipher(packet)
|
|
|
|
KTEXT packet;
|
|
|
|
{
|
|
|
|
unsigned char *ptr = pkt_a_realm(packet) + 6
|
|
|
|
+ strlen((char *)pkt_a_realm(packet));
|
|
|
|
/* Skip a few more fields */
|
|
|
|
ptr += 3 + 4; /* add 4 for exp_date */
|
|
|
|
|
|
|
|
/* And return the pointer */
|
|
|
|
return((KTEXT) ptr);
|
|
|
|
}
|