some compilers don't like an array of length zero

nick: should we remove support for IVs for now, since we don't
use them and don't plan to use them?


svn:r1732
This commit is contained in:
Roger Dingledine 2004-04-27 23:50:35 +00:00
parent 158e2cf536
commit 4e0dd5bd33

View File

@ -74,7 +74,8 @@ struct crypto_pk_env_t
struct crypto_cipher_env_t struct crypto_cipher_env_t
{ {
unsigned char key[CIPHER_KEY_LEN]; unsigned char key[CIPHER_KEY_LEN];
unsigned char iv[CIPHER_IV_LEN]; unsigned char iv[CIPHER_IV_LEN+1];
/* +1 because some compilers don't like a length of 0 */
aes_cnt_cipher_t *cipher; aes_cnt_cipher_t *cipher;
}; };