diff options
| author | cvs2svn <cvs2svn@FreeBSD.org> | 1997-03-27 03:07:27 +0000 | 
|---|---|---|
| committer | cvs2svn <cvs2svn@FreeBSD.org> | 1997-03-27 03:07:27 +0000 | 
| commit | 1784d64eb85eb63599204bb31b826970b6661e65 (patch) | |
| tree | 31089dd6c9e4a7feeac25f24574e6269b75f5db0 /eBones/lib/libkrb/get_request.c | |
| parent | fe49c1266233ddc2306072aefb4e1c1d045060fe (diff) | |
Diffstat (limited to 'eBones/lib/libkrb/get_request.c')
| -rw-r--r-- | eBones/lib/libkrb/get_request.c | 55 | 
1 files changed, 0 insertions, 55 deletions
| diff --git a/eBones/lib/libkrb/get_request.c b/eBones/lib/libkrb/get_request.c deleted file mode 100644 index c4982bf3283c..000000000000 --- a/eBones/lib/libkrb/get_request.c +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 1985, 1986, 1987, 1988 by the Massachusetts Institute - * of Technology. - * For copying and distribution information, please see the file - * <Copyright.MIT>. - * - *	from: get_request.c,v 4.7 88/12/01 14:00:11 jtkohl Exp $ - *	$Id: get_request.c,v 1.3 1995/07/18 16:38:39 mark Exp $ - */ - -#if 0 -#ifndef lint -static char *rcsid = -"$Id: get_request.c,v 1.3 1995/07/18 16:38:39 mark Exp $"; -#endif /* lint */ -#endif - -#include <krb.h> -#include <prot.h> - -/* - * This procedure is obsolete.  It is used in the kerberos_slave - * code for Version 3 tickets. - * - * This procedure sets s_name, and instance to point to - * the corresponding fields from tne nth request in the packet. - * it returns the lifetime requested.  Garbage will be returned - * if there are less than n requests in the packet. - */ - -int -get_request(pkt, n, s_name, instance) -    KTEXT pkt;			/* The packet itself */ -    int n;			/* Which request do we want */ -    char **s_name;		/* Service name to be filled in */ -    char **instance;		/* Instance name to be filled in */ -{ -    /* Go to the beginning of the request list */ -    char *ptr = (char *) pkt_a_realm(pkt) + 6 + -	strlen((char *)pkt_a_realm(pkt)); - -    /* Read requests until we hit the right one */ -    while (n-- > 1) { -        ptr++; -        ptr += 1 + strlen(ptr); -        ptr += 1 + strlen(ptr); -    } - -    /* Set the arguments to point to the right place */ -    *s_name = 1 + ptr; -    *instance = 2 + ptr + strlen(*s_name); - -    /* Return the requested lifetime */ -    return((int) *ptr); -} | 
