diff options
author | Roger Dingledine <arma@torproject.org> | 2004-04-27 23:50:35 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-04-27 23:50:35 +0000 |
commit | 4e0dd5bd3372b60002f19301db0aa09647fad2d8 (patch) | |
tree | c8e65167d4d08a4743b81d65b89cf2547fad4f97 /src/common/crypto.c | |
parent | 158e2cf536f02aafae1795897563af678dbd0e50 (diff) | |
download | tor-4e0dd5bd3372b60002f19301db0aa09647fad2d8.tar tor-4e0dd5bd3372b60002f19301db0aa09647fad2d8.tar.gz |
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
Diffstat (limited to 'src/common/crypto.c')
-rw-r--r-- | src/common/crypto.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/crypto.c b/src/common/crypto.c index 4a0fc653a..60775e7e7 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; }; |