summaryrefslogtreecommitdiffstats
path: root/src/lib/krb5/krb/mk_rep.c
diff options
context:
space:
mode:
authorJohn Kohl <jtkohl@mit.edu>1990-09-28 10:54:24 +0000
committerJohn Kohl <jtkohl@mit.edu>1990-09-28 10:54:24 +0000
commit1ec4ceee880e0c2c8185f59e51195da84a6157ec (patch)
tree2f881da4e36d8892b44a8f6514cd99980d0c6ab0 /src/lib/krb5/krb/mk_rep.c
parent82677a06cc9e069e6b9cdbcd1739e66a870382ee (diff)
downloadkrb5-1ec4ceee880e0c2c8185f59e51195da84a6157ec.tar.gz
krb5-1ec4ceee880e0c2c8185f59e51195da84a6157ec.tar.xz
krb5-1ec4ceee880e0c2c8185f59e51195da84a6157ec.zip
no need for credentials; use keyblock directly
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1155 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/krb5/krb/mk_rep.c')
-rw-r--r--src/lib/krb5/krb/mk_rep.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/krb5/krb/mk_rep.c b/src/lib/krb5/krb/mk_rep.c
index f68b21565a..fe8d4fdf24 100644
--- a/src/lib/krb5/krb/mk_rep.c
+++ b/src/lib/krb5/krb/mk_rep.c
@@ -27,7 +27,7 @@ static char rcsid_mk_rep_c[] =
/*
Formats a KRB_AP_REP message into outbuf.
- The reply in repl is encrypted under the key in creds, and the resulting
+ The reply in repl is encrypted under the key in kblock, and the resulting
message encoded and left in outbuf.
The outbuf buffer storage is allocated, and should be freed by the
@@ -37,9 +37,9 @@ static char rcsid_mk_rep_c[] =
*/
krb5_error_code
-krb5_mk_rep(repl, creds, outbuf)
+krb5_mk_rep(repl, kblock, outbuf)
const krb5_ap_rep_enc_part *repl;
-const krb5_creds *creds;
+const krb5_keyblock *kblock;
krb5_data *outbuf;
{
krb5_error_code retval;
@@ -50,10 +50,10 @@ krb5_data *outbuf;
krb5_data *toutbuf;
/* verify a valid etype is available */
- if (!valid_keytype(creds->keyblock.keytype))
+ if (!valid_keytype(kblock->keytype))
return KRB5_PROG_KEYTYPE_NOSUPP;
- etype = krb5_keytype_array[creds->keyblock.keytype]->system->proto_enctype;
+ etype = krb5_keytype_array[kblock->keytype]->system->proto_enctype;
if (!valid_etype(etype))
return KRB5_PROG_ETYPE_NOSUPP;
@@ -85,7 +85,7 @@ krb5_data *outbuf;
#define cleanup_encpart() {(void) bzero(reply.enc_part.data, reply.enc_part.length); free(reply.enc_part.data); reply.enc_part.length = 0; reply.enc_part.data = 0;}
/* do any necessary key pre-processing */
- if (retval = krb5_process_key(&eblock, &creds->keyblock)) {
+ if (retval = krb5_process_key(&eblock, kblock)) {
goto clean_encpart;
}