From: Marc Horowitz Date: Wed, 5 Aug 1998 07:11:39 +0000 (+0000) Subject: have the function allocate space, and add a free function X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f137c0ece2e650597d69aaf1739e27f5ed13538d;p=thirdparty%2Fkrb5.git have the function allocate space, and add a free function git-svn-id: svn://anonsvn.mit.edu/krb5/branches/marc-3des@10777 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/crypto/keyed_checksum_types.c b/src/lib/crypto/keyed_checksum_types.c index e0aa424b4d..f5a6a5d064 100644 --- a/src/lib/crypto/keyed_checksum_types.c +++ b/src/lib/crypto/keyed_checksum_types.c @@ -16,50 +16,54 @@ static int etype_match(e1, e2) break; return((i1 < krb5_enctypes_length) && - (i2 < krb5_enctypes_length) || + (i2 < krb5_enctypes_length) && (krb5_enctypes_list[i1].enc == krb5_enctypes_list[i2].enc)); } krb5_error_code -krb5_c_num_keyed_checksum_types(context, enctype, count) +krb5_c_keyed_checksum_types(context, enctype, count, cksumtypes) krb5_context context; krb5_enctype enctype; unsigned int *count; + krb5_cksumtype **cksumtypes; { - int i; - unsigned int c; + unsigned int i, c; c = 0; - for (i=0; i