[or-cvs] some compilers don"t like an array of length zero

Roger Dingledine arma at seul.org
Tue Apr 27 23:50:37 UTC 2004


Update of /home/or/cvsroot/src/common
In directory moria.mit.edu:/home2/arma/work/onion/cvs/src/common

Modified Files:
	crypto.c 
Log Message:
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?


Index: crypto.c
===================================================================
RCS file: /home/or/cvsroot/src/common/crypto.c,v
retrieving revision 1.81
retrieving revision 1.82
diff -u -d -r1.81 -r1.82
--- crypto.c	26 Apr 2004 18:09:49 -0000	1.81
+++ crypto.c	27 Apr 2004 23:50:35 -0000	1.82
@@ -74,7 +74,8 @@
 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;
 };
 



More information about the tor-commits mailing list