From 8602b948ac50fe5c83f4465ea801dfda625e1b7f Mon Sep 17 00:00:00 2001 From: Bill Sommerfeld Date: Mon, 5 Feb 1990 15:31:58 +0000 Subject: [PATCH] Initial revision git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@281 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/krb/gc_via_tgt.c | 56 +++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 src/lib/krb5/krb/gc_via_tgt.c diff --git a/src/lib/krb5/krb/gc_via_tgt.c b/src/lib/krb5/krb/gc_via_tgt.c new file mode 100644 index 000000000..70180974c --- /dev/null +++ b/src/lib/krb5/krb/gc_via_tgt.c @@ -0,0 +1,56 @@ +/* + * $Source$ + * $Author$ + * + * Copyright 1990 by the Massachusetts Institute of Technology. + * + * For copying and distribution information, please see the file + * . + * + * Given a tgt, and a target cred, get it. + */ + +#if !defined(lint) && !defined(SABER) +static char rcsid_gcvtgt_c[] = +"$Id$"; +#endif /* !lint & !SABER */ + +#include + +/* + * Warning: here lie eggs in search of their chickens, and chickens in + * search of the eggs they hatched from. + * + * This code is incomplete. + * + * Don't even think about finishing it until this C&E problem is resolved. + * + */ + + +krb5_error_code +krb5_get_cred_via_tgt (tgt, cred) + krb5_creds *tgt; /* IN */ + krb5_creds *cred /* IN OUT */ +{ + krb5_tgs_req_enc_part tgs_enc; + krb5_tgs_req tgs; + krb5_ap_req ap; + + /* tgt->client must be equal to cred->client */ + /* tgt->server must be equal to krbtgt/realmof(cred->client) */ + + /* + * Construct a KRB_TGS_REQ. + * + * The first thing is an ap_req + */ + code = krb5_mk_req_int (/* flags */, /* checksum */, /* times */, + /* flags */, &tgt, &ap); + if (code != 0) goto out; + + abort(); + +out: + return code; +} -- 2.26.2