aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Yu <tlyu@mit.edu>2009-05-25 05:44:09 +0000
committerTom Yu <tlyu@mit.edu>2009-05-25 05:44:09 +0000
commitff5a36c32b6bcc2f139a5d35dd6953076a3003db (patch)
tree57fc64c951e45e9a3870befe5956f0f429523635
parentd3d3521be66620ce3b1448e4677e33fd0c6cf8a8 (diff)
downloadkrb5-ff5a36c32b6bcc2f139a5d35dd6953076a3003db.zip
krb5-ff5a36c32b6bcc2f139a5d35dd6953076a3003db.tar.gz
krb5-ff5a36c32b6bcc2f139a5d35dd6953076a3003db.tar.bz2
use correct type for krb5_c_prf_length length arg
pull up r22364 from trunk ------------------------------------------------------------------------ r22364 | raeburn | 2009-05-22 19:20:15 +0200 (Fri, 22 May 2009) | 2 lines Use correct type for krb5_c_prf_length length arg. ticket: 6500 target_version: 1.7 tags: pullup version_fixed: 1.7 git-svn-id: svn://anonsvn.mit.edu/krb5/branches/krb5-1-7@22380 dc483132-0cff-0310-8789-dd5450dbe970
-rw-r--r--src/lib/crypto/t_prf.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/lib/crypto/t_prf.c b/src/lib/crypto/t_prf.c
index e6d98cb..b3b8d08 100644
--- a/src/lib/crypto/t_prf.c
+++ b/src/lib/crypto/t_prf.c
@@ -23,13 +23,14 @@
* this software for any purpose. It is provided "as is" without express
* or implied warranty.
*
- * This file contains tests for the PRF code in Kerberos. IT reads
- *an input file, and writes an output file. It is assumed that the
- *output file will be diffed against expected output to see whether
- *regression tests pass. The input file is a very primitive format.
- *It includes an enctype and to be string2keyed followed by a number of bytes of input
- *length, followed by that many bytes of input. The program outputs
- *krb5_c_prf of that input and key as a hex string.
+ * This file contains tests for the PRF code in Kerberos. IT reads an
+ * input file, and writes an output file. It is assumed that the
+ * output file will be diffed against expected output to see whether
+ * regression tests pass. The input file is a very primitive format.
+ * It includes an enctype and password to be string2keyed followed by
+ * a number of bytes of input length, followed by that many bytes of
+ * input. The program outputs krb5_c_prf of that input and key as a
+ * hex string.
*/
#include "k5-int.h"
@@ -39,7 +40,7 @@ int main () {
krb5_data input, output;
krb5_keyblock *key = NULL;
unsigned int in_length;
- unsigned int i;
+ size_t i;
while (1) {
krb5_enctype enctype;
char s[1025];