diff options
Diffstat (limited to 'cipher/cipher.c')
-rw-r--r-- | cipher/cipher.c | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/cipher/cipher.c b/cipher/cipher.c index ff19219e4..4518d909c 100644 --- a/cipher/cipher.c +++ b/cipher/cipher.c @@ -176,16 +176,20 @@ setup_cipher_table(void) if( !cipher_table[i].name ) BUG(); i++; + +#ifdef USE_IDEA cipher_table[i].algo = CIPHER_ALGO_IDEA; cipher_table[i].name = idea_get_info( cipher_table[i].algo, - &cipher_table[i].keylen, - &cipher_table[i].blocksize, - &cipher_table[i].contextsize, - &cipher_table[i].setkey, - &cipher_table[i].encrypt, - &cipher_table[i].decrypt ); + &cipher_table[i].keylen, + &cipher_table[i].blocksize, + &cipher_table[i].contextsize, + &cipher_table[i].setkey, + &cipher_table[i].encrypt, + &cipher_table[i].decrypt ); if (cipher_table[i].name) - i++; /* Note that IDEA is usually not available. */ + i++; /* Note that the loadable IDEA module may not be + available. */ +#endif #ifdef ALLOW_DUMMY cipher_table[i].algo = CIPHER_ALGO_DUMMY; |