+2001-03-10 Ezra Peisach <epeisach@kangaroo.mit.edu>
+
+ * make_random_key.c, old_api_glue.c: Do not use a variable named
+ random that might shadow a system header file definition.
+
2001-03-09 Ken Raeburn <raeburn@mit.edu>
* cksumtypes.c, etypes.c, prng.c: Use krb5int_ prefix for internal
krb5_error_code ret;
const struct krb5_enc_provider *enc;
size_t keybytes, keylength;
- krb5_data random;
+ krb5_data random_data;
unsigned char *bytes;
for (i=0; i<krb5_enctypes_length; i++) {
return(ENOMEM);
}
- random.data = bytes;
- random.length = keybytes;
+ random_data.data = bytes;
+ random_data.length = keybytes;
- if ((ret = krb5_c_random_make_octets(context, &random)))
+ if ((ret = krb5_c_random_make_octets(context, &random_data)))
goto cleanup;
random_key->magic = KV5M_KEYBLOCK;
random_key->enctype = enctype;
random_key->length = keylength;
- ret = ((*(enc->make_key))(&random, random_key));
+ ret = ((*(enc->make_key))(&random_data, random_key));
cleanup:
memset(bytes, 0, keybytes);
size_t size;
krb5_pointer ptr;
{
- krb5_data random;
+ krb5_data random_data;
- random.length = size;
- random.data = ptr;
+ random_data.length = size;
+ random_data.data = ptr;
- return(krb5_c_random_make_octets(/* XXX */ 0, &random));
+ return(krb5_c_random_make_octets(/* XXX */ 0, &random_data));
}
krb5_error_code krb5_encrypt_data(context, key, ivec, data, enc_data)