From: Roger Dingledine Date: Tue, 27 Apr 2004 23:50:35 +0000 (+0000) Subject: some compilers don't like an array of length zero X-Git-Tag: debian-version-0.0.5+0.0.6rc3-1~19 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4e0dd5bd3372b60002f19301db0aa09647fad2d8;p=thirdparty%2Ftor.git 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 --- diff --git a/src/common/crypto.c b/src/common/crypto.c index 4a0fc653a9..60775e7e7f 100644 --- a/src/common/crypto.c +++ b/src/common/crypto.c @@ -74,7 +74,8 @@ struct crypto_pk_env_t struct crypto_cipher_env_t { 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; };