reorder args to krb5_encode_kdc_rep
authorJohn Kohl <jtkohl@mit.edu>
Mon, 23 Apr 1990 15:28:58 +0000 (15:28 +0000)
committerJohn Kohl <jtkohl@mit.edu>
Mon, 23 Apr 1990 15:28:58 +0000 (15:28 +0000)
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
src/kdc/do_tgs_req.c

index ff554f348ba5c227cf728e65920ce6a4c71a652a..25b83f820e4af0875d68815ec6a412d2b0b0aef3 100644 (file)
@@ -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();
index 39f1faa2605571d34264fae86b655ff716217569..d170527fa17ac5c35c4581be5da66f9df2c66685 100644 (file)
@@ -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;