]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
some compilers don't like an array of length zero
authorRoger Dingledine <arma@torproject.org>
Tue, 27 Apr 2004 23:50:35 +0000 (23:50 +0000)
committerRoger Dingledine <arma@torproject.org>
Tue, 27 Apr 2004 23:50:35 +0000 (23:50 +0000)
nick: should we remove support for IVs for now, since we don't
use them and don't plan to use them?

svn:r1732

src/common/crypto.c

index 4a0fc653a9eccb08ad70fb0db4f60a62ad562b51..60775e7e7fc22a1932a2f5a7e53da2e2b1430ff3 100644 (file)
@@ -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;
 };