aboutsummaryrefslogtreecommitdiff
path: root/eBones/lib/libkrb/decomp_ticket.c
diff options
context:
space:
mode:
authorMark Murray <markm@FreeBSD.org>1995-09-07 21:39:00 +0000
committerMark Murray <markm@FreeBSD.org>1995-09-07 21:39:00 +0000
commitd79d4a7ced1f3d1e2960b5cb1ebc6c2774b80ba0 (patch)
tree96ff3578d62372822240f11a1567e45b880f3910 /eBones/lib/libkrb/decomp_ticket.c
parent0e1815bb542d83bde9aed4912268f730d1637808 (diff)
Major cleanup of eBones code:
- Get all functions prototyped or at least defined before use. - Make code compile (Mostly) clean with -Wall set - Start to reduce the degree to which DES aka libdes is built in. - get all functions to the same uniform standard of definition: int foo(a, b) int a; int *b; { : } - fix numerous bugs exposed by above processes. Note - this replaces the previous work which used an unpopular function definition style.
Notes
Notes: svn path=/head/; revision=10610
Diffstat (limited to 'eBones/lib/libkrb/decomp_ticket.c')
-rw-r--r--eBones/lib/libkrb/decomp_ticket.c26
1 files changed, 20 insertions, 6 deletions
diff --git a/eBones/lib/libkrb/decomp_ticket.c b/eBones/lib/libkrb/decomp_ticket.c
index ab4645006d5d..04316ad40577 100644
--- a/eBones/lib/libkrb/decomp_ticket.c
+++ b/eBones/lib/libkrb/decomp_ticket.c
@@ -46,18 +46,32 @@ static char *rcsid =
* See create_ticket.c for the format of the ticket packet.
*/
-int decomp_ticket(KTEXT tkt, unsigned char *flags, char *pname,
- char *pinstance, char *prealm, unsigned long *paddress, des_cblock session,
- int *life, unsigned long *time_sec, char *sname, char *sinstance,
- des_cblock key, des_key_schedule key_s)
+int
+decomp_ticket(tkt, flags, pname, pinstance, prealm, paddress, session,
+ life, time_sec, sname, sinstance, key, key_s)
+ KTEXT tkt; /* The ticket to be decoded */
+ unsigned char *flags; /* Kerberos ticket flags */
+ char *pname; /* Authentication name */
+ char *pinstance; /* Principal's instance */
+ char *prealm; /* Principal's authentication domain */
+ unsigned long *paddress; /* Net address of entity
+ * requesting ticket */
+ C_Block session; /* Session key inserted in ticket */
+ int *life; /* Lifetime of the ticket */
+ unsigned long *time_sec; /* Issue time and date */
+ char *sname; /* Service name */
+ char *sinstance; /* Service instance */
+ C_Block key; /* Service's secret key
+ * (to decrypt the ticket) */
+ Key_schedule key_s; /* The precomputed key schedule */
{
static int tkt_swap_bytes;
unsigned char *uptr;
char *ptr = (char *)tkt->dat;
#ifndef NOENCRYPTION
- pcbc_encrypt((des_cblock *)tkt->dat,(des_cblock *)tkt->dat,
- (long)tkt->length,key_s,(des_cblock *)key,DECRYPT);
+ pcbc_encrypt((C_Block *)tkt->dat,(C_Block *)tkt->dat,(long)tkt->length,
+ key_s,(C_Block *)key,DECRYPT);
#endif /* ! NOENCRYPTION */
*flags = *ptr; /* get flags byte */