aboutsummaryrefslogtreecommitdiff
path: root/src/lib/krb5/krb/rd_rep.c
diff options
context:
space:
mode:
authorTheodore Tso <tytso@mit.edu>1991-02-19 19:38:17 +0000
committerTheodore Tso <tytso@mit.edu>1991-02-19 19:38:17 +0000
commit9ec25ed6ea8b1201228c6bf053a6ef775a9f9540 (patch)
tree5a149e94ede1a985f608bec92eadcbe1a3021f95 /src/lib/krb5/krb/rd_rep.c
parent9652b5a3cde3757f5f30850ef4a9d1f457d22e4c (diff)
downloadkrb5-9ec25ed6ea8b1201228c6bf053a6ef775a9f9540.zip
krb5-9ec25ed6ea8b1201228c6bf053a6ef775a9f9540.tar.gz
krb5-9ec25ed6ea8b1201228c6bf053a6ef775a9f9540.tar.bz2
Changes to conform with API modifications
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1729 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/krb5/krb/rd_rep.c')
-rw-r--r--src/lib/krb5/krb/rd_rep.c25
1 files changed, 11 insertions, 14 deletions
diff --git a/src/lib/krb5/krb/rd_rep.c b/src/lib/krb5/krb/rd_rep.c
index 148835f..72a68dd 100644
--- a/src/lib/krb5/krb/rd_rep.c
+++ b/src/lib/krb5/krb/rd_rep.c
@@ -11,7 +11,7 @@
*/
#if !defined(lint) && !defined(SABER)
-static char rcsid_rd_req_dec_c[] =
+static char rcsid_rd_rep_dec_c[] =
"$Id$";
#endif /* !lint & !SABER */
@@ -22,26 +22,26 @@ static char rcsid_rd_req_dec_c[] =
#include <krb5/asn1.h>
/*
- Parses a KRB_AP_REP message, returning its contents.
-
- repl is filled in with the fields from the encrypted response.
-
- the key in kblock is used to decrypt the message.
-
- returns system errors, encryption errors, replay errors
+ * Parses a KRB_AP_REP message, returning its contents.
+ *
+ * repl is filled in with with a pointer to allocated memory containing
+ * the fields from the encrypted response.
+ *
+ * the key in kblock is used to decrypt the message.
+ *
+ * returns system errors, encryption errors, replay errors
*/
krb5_error_code
krb5_rd_rep(inbuf, kblock, repl)
const krb5_data *inbuf;
const krb5_keyblock *kblock;
-krb5_ap_rep_enc_part *repl;
+krb5_ap_rep_enc_part **repl;
{
krb5_error_code retval;
krb5_ap_rep *reply;
krb5_encrypt_block eblock;
krb5_data scratch;
- krb5_ap_rep_enc_part *local_repl;
if (!krb5_is_ap_rep(inbuf))
return KRB5KRB_AP_ERR_MSG_TYPE;
@@ -93,10 +93,7 @@ free(scratch.data);}
return retval;
}
/* now decode the decrypted stuff */
- if (!(retval = decode_krb5_ap_rep_enc_part(&scratch, &local_repl))) {
- *repl = *local_repl;
- free((char *)local_repl);
- }
+ retval = decode_krb5_ap_rep_enc_part(&scratch, repl);
clean_scratch();
return retval;
}