diff options
| author | Geoff Rehmet <csgr@FreeBSD.org> | 1994-09-30 14:50:09 +0000 |
|---|---|---|
| committer | Geoff Rehmet <csgr@FreeBSD.org> | 1994-09-30 14:50:09 +0000 |
| commit | 60643d379b73fbb523325aa82009e9d1a0675573 (patch) | |
| tree | 74873a7f8b1a654a96addadb5929b6249491922d /eBones/lib/libkrb/pkt_cipher.c | |
| parent | 3c6459e594dba63b0a1c54fd5b99a3315d522b40 (diff) | |
Notes
Diffstat (limited to 'eBones/lib/libkrb/pkt_cipher.c')
| -rw-r--r-- | eBones/lib/libkrb/pkt_cipher.c | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/eBones/lib/libkrb/pkt_cipher.c b/eBones/lib/libkrb/pkt_cipher.c new file mode 100644 index 000000000000..6ef870c977bf --- /dev/null +++ b/eBones/lib/libkrb/pkt_cipher.c @@ -0,0 +1,38 @@ +/* + * 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 $ + * $Id: pkt_cipher.c,v 1.2 1994/07/19 19:26:07 g89r4222 Exp $ + */ + +#ifndef lint +static char *rcsid = +"$Id: pkt_cipher.c,v 1.2 1994/07/19 19:26:07 g89r4222 Exp $"; +#endif /* lint */ + +#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); +} |
