Fri Jun 9 18:52:19 1995 <tytso@rsx-11.mit.edu>
+ * des_crc.c, des_md5.c: Fix -Wall nits.
+
* configure.in: Remove standardized set of autoconf macros, which
are now handled by CONFIG_RULES. Use DO_SUBDIRS to
recurse down subdirectories.
memset((char *)out, 0, sumsize);
/* put in the confounder */
- if (retval = krb5_random_confounder(sizeof(mit_des_cblock), out))
+ if ((retval = krb5_random_confounder(sizeof(mit_des_cblock), out)))
return retval;
memcpy((char *)out+sizeof(mit_des_cblock)+CRC32_CKSUM_LENGTH, (char *)in,
/* This is equivalent to krb5_calculate_checksum(CKSUMTYPE_CRC32,...)
but avoids use of the cryptosystem config table which can not be
referenced here if this object is to be included in a shared library. */
- if (retval = crc32_cksumtable_entry.sum_func((krb5_pointer) out,
- sumsize,
- (krb5_pointer)key->key->contents,
- sizeof(mit_des_cblock),
- &cksum))
+ if ((retval = crc32_cksumtable_entry.sum_func((krb5_pointer) out,
+ sumsize,
+ (krb5_pointer)key->key->contents,
+ sizeof(mit_des_cblock),
+ &cksum)))
return retval;
memcpy((char *)out+sizeof(mit_des_cblock), (char *)contents,
memcpy((char *)contents_get, p, CRC32_CKSUM_LENGTH);
memset(p, 0, CRC32_CKSUM_LENGTH);
- if (retval = crc32_cksumtable_entry.sum_func(out, size,
- (krb5_pointer)key->key->contents,
- sizeof(mit_des_cblock),
- &cksum))
+ if ((retval = crc32_cksumtable_entry.sum_func(out, size,
+ (krb5_pointer)key->key->contents,
+ sizeof(mit_des_cblock),
+ &cksum)))
return retval;
if (memcmp((char *)contents_get, (char *)contents_prd, CRC32_CKSUM_LENGTH) )
memset((char *)out, 0, sumsize);
/* put in the confounder */
- if (retval = krb5_random_confounder(sizeof(mit_des_cblock), out))
+ if ((retval = krb5_random_confounder(sizeof(mit_des_cblock), out)))
return retval;
memcpy((char *)out+sizeof(mit_des_cblock)+RSA_MD5_CKSUM_LENGTH, (char *)in,
/* This is equivalent to krb5_calculate_checksum(CKSUMTYPE_MD5,...)
but avoids use of the cryptosystem config table which can not be
referenced here if this object is to be included in a shared library. */
- if (retval = rsa_md5_cksumtable_entry.sum_func((krb5_pointer) out,
- sumsize,
- (krb5_pointer)key->key->contents,
- sizeof(mit_des_cblock),
- &cksum))
+ if ((retval = rsa_md5_cksumtable_entry.sum_func((krb5_pointer) out,
+ sumsize,
+ (krb5_pointer)key->key->contents,
+ sizeof(mit_des_cblock),
+ &cksum)))
return retval;
memcpy((char *)out+sizeof(mit_des_cblock), (char *)contents,
memcpy((char *)contents_get, p, RSA_MD5_CKSUM_LENGTH);
memset(p, 0, RSA_MD5_CKSUM_LENGTH);
- if (retval = rsa_md5_cksumtable_entry.sum_func(out, size,
- (krb5_pointer)key->key->contents,
- sizeof(mit_des_cblock),
- &cksum))
+ if ((retval = rsa_md5_cksumtable_entry.sum_func(out, size,
+ (krb5_pointer)key->key->contents,
+ sizeof(mit_des_cblock),
+ &cksum)))
return retval;
if (memcmp((char *)contents_get, (char *)contents_prd, RSA_MD5_CKSUM_LENGTH) )