diff options
author | John Kohl <jtkohl@mit.edu> | 1990-02-03 17:09:56 +0000 |
---|---|---|
committer | John Kohl <jtkohl@mit.edu> | 1990-02-03 17:09:56 +0000 |
commit | 96f822ffa575d9a5dd9d34b6b53fb16567393dc7 (patch) | |
tree | 76f34f3e0799a2771f471457aa50daee393ae803 /src/kdc | |
parent | b4164b5863046cc968bb55538a7a0829ae395881 (diff) | |
download | krb5-96f822ffa575d9a5dd9d34b6b53fb16567393dc7.tar.gz krb5-96f822ffa575d9a5dd9d34b6b53fb16567393dc7.tar.xz krb5-96f822ffa575d9a5dd9d34b6b53fb16567393dc7.zip |
add "from" arg
clean up externs into an include file
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@252 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/kdc')
-rw-r--r-- | src/kdc/do_as_req.c | 14 | ||||
-rw-r--r-- | src/kdc/do_tgs_req.c | 15 |
2 files changed, 11 insertions, 18 deletions
diff --git a/src/kdc/do_as_req.c b/src/kdc/do_as_req.c index 472af5621d..0291ecce3e 100644 --- a/src/kdc/do_as_req.c +++ b/src/kdc/do_as_req.c @@ -31,13 +31,7 @@ static char rcsid_do_as_req_c[] = #include "kdc_util.h" #include "policy.h" - -extern krb5_cs_table_entry *csarray[]; -extern int max_cryptosystem; /* max entry in array */ -extern krb5_data empty_string; /* initialized to {0, ""} */ -extern krb5_timestamp infinity; /* greater than every valid timestamp */ -extern krb5_deltat max_life_for_realm; /* XXX should be a parameter? */ -extern krb5_deltat max_renewable_life_for_realm; /* XXX should be a parameter? */ +#include "extern.h" static krb5_error_code prepare_error_as PROTOTYPE((krb5_as_req *, int, @@ -49,9 +43,11 @@ static krb5_error_code prepare_error_as PROTOTYPE((krb5_as_req *, /* XXX needs lots of cleanup and modularizing */ +/*ARGSUSED*/ krb5_error_code -process_as_req(request, response) +process_as_req(request, from, response) register krb5_as_req *request; +krb5_fulladdr *from; /* who sent it ? */ krb5_data **response; /* filled in with a response packet */ { @@ -109,7 +105,7 @@ krb5_data **response; /* filled in with a response packet */ return(prepare_error_as(request, KDC_ERR_ETYPE_NOSUPP, response)); } - if (retval = (*(csarray[request->etype]->system->random_key))(csarray[request->etype]->random_sequence, &session_key)) { + if (retval = (*(krb5_csarray[request->etype]->system->random_key))(krb5_csarray[request->etype]->random_sequence, &session_key)) { /* random key failed */ cleanup(); return(retval); diff --git a/src/kdc/do_tgs_req.c b/src/kdc/do_tgs_req.c index e2830a91e6..a28e6cdcb0 100644 --- a/src/kdc/do_tgs_req.c +++ b/src/kdc/do_tgs_req.c @@ -31,22 +31,19 @@ static char rcsid_do_tgs_req_c[] = #include "kdc_util.h" #include "policy.h" +#include "extern.h" -extern krb5_cs_table_entry *csarray[]; -extern int max_cryptosystem; /* max entry in array */ -extern krb5_data empty_string; /* initialized to {0, ""} */ -extern krb5_timestamp infinity; /* greater than every valid timestamp */ -extern krb5_deltat max_life_for_realm; /* XXX should be a parameter? */ -extern krb5_deltat max_renewable_life_for_realm; /* XXX should be a parameter? */ static krb5_error_code prepare_error_tgs PROTOTYPE((krb5_tgs_req *, int, krb5_data **)); static krb5_error_code decrypt_second_ticket PROTOTYPE((krb5_ticket *)); +/*ARGSUSED*/ krb5_error_code -process_tgs_req(request, response) +process_tgs_req(request, from, response) register krb5_tgs_req *request; +krb5_fulladdr *from; /* who sent it ? */ krb5_data **response; /* filled in with a response packet */ { @@ -121,7 +118,7 @@ krb5_data **response; /* filled in with a response packet */ } session_key = second_ticket->enc_part2->session; } else { - if (retval = (*(csarray[request->etype]->system->random_key))(csarray[request->etype]->random_sequence, &session_key)) { + if (retval = (*(krb5_csarray[request->etype]->system->random_key))(krb5_csarray[request->etype]->random_sequence, &session_key)) { /* random key failed */ cleanup(); return(retval); @@ -303,7 +300,7 @@ krb5_data **response; /* filled in with a response packet */ } else { /* assemble new transited field into allocated storage */ if (retval = - compress_transited(header_ticket->enc_part2->transited, + compress_transited(&header_ticket->enc_part2->transited, header_ticket->server, &enc_tkt_reply.transited)) { cleanup(); |