From f106b6850a740f4f9e7625ad9ad192f15d78d491 Mon Sep 17 00:00:00 2001 From: John Kohl Date: Mon, 23 Apr 1990 15:28:58 +0000 Subject: [PATCH] reorder args to krb5_encode_kdc_rep add const to one function argument git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@553 dc483132-0cff-0310-8789-dd5450dbe970 --- src/kdc/do_as_req.c | 6 +++--- src/kdc/do_tgs_req.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/kdc/do_as_req.c b/src/kdc/do_as_req.c index ff554f348..25b83f820 100644 --- a/src/kdc/do_as_req.c +++ b/src/kdc/do_as_req.c @@ -47,7 +47,7 @@ static krb5_error_code prepare_error_as PROTOTYPE((krb5_as_req *, krb5_error_code process_as_req(request, from, response) register krb5_as_req *request; -krb5_fulladdr *from; /* who sent it ? */ +const krb5_fulladdr *from; /* who sent it ? */ krb5_data **response; /* filled in with a response packet */ { @@ -260,8 +260,8 @@ krb5_data **response; /* filled in with a response packet */ cleanup(); return retval; } - retval = krb5_encode_kdc_rep(KRB5_AS_REP, &reply, &reply_encpart, - &encrypting_key, response); + retval = krb5_encode_kdc_rep(KRB5_AS_REP, &reply_encpart, + &encrypting_key, &reply, response); bzero((char *)encrypting_key.contents, encrypting_key.length); free((char *)encrypting_key.contents); cleanup(); diff --git a/src/kdc/do_tgs_req.c b/src/kdc/do_tgs_req.c index 39f1faa26..d170527fa 100644 --- a/src/kdc/do_tgs_req.c +++ b/src/kdc/do_tgs_req.c @@ -43,7 +43,7 @@ static krb5_error_code decrypt_second_ticket PROTOTYPE((krb5_ticket *)); krb5_error_code process_tgs_req(request, from, response) krb5_tgs_req *request; -krb5_fulladdr *from; /* who sent it ? */ +const krb5_fulladdr *from; /* who sent it ? */ krb5_data **response; /* filled in with a response packet */ { @@ -391,9 +391,9 @@ krb5_data **response; /* filled in with a response packet */ reply_encpart.flags = enc_tkt_reply.flags; reply_encpart.server = ticket_reply.server; - retval = krb5_encode_kdc_rep(KRB5_TGS_REP, &reply, &reply_encpart, + retval = krb5_encode_kdc_rep(KRB5_TGS_REP, &reply_encpart, header_ticket->enc_part2->session, - response); + &reply, response); bzero((char *)session_key->contents, session_key->length); free((char *)session_key->contents); session_key->contents = 0; -- 2.26.2