fixed fatal typo
authorAndreas Steffen <andreas.steffen@strongswan.org>
Fri, 15 May 2009 12:17:05 +0000 (14:17 +0200)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Fri, 15 May 2009 12:17:05 +0000 (14:17 +0200)
src/libstrongswan/plugins/serpent/serpent_crypter.c
src/libstrongswan/plugins/twofish/twofish_crypter.c

index 4433a54..9d53569 100644 (file)
@@ -163,7 +163,7 @@ serpent_crypter_t *serpent_crypter_create(encryption_algorithm_t algo, size_t ke
        private_serpent_crypter_t *this;
        
        if (algo != ENCR_SERPENT_CBC ||
-         !(key_size == 16 || key_size = 24 || key_size == 32))
+         !(key_size == 16 || key_size == 24 || key_size == 32))
        {
                return NULL;
        }
index e72f207..a1c8659 100644 (file)
@@ -163,7 +163,7 @@ twofish_crypter_t *twofish_crypter_create(encryption_algorithm_t algo, size_t ke
        private_twofish_crypter_t *this;
        
        if (algo != ENCR_TWOFISH_CBC ||
-         !(key_size == 16 || key_size = 24 || key_size == 32))
+         !(key_size == 16 || key_size == 24 || key_size == 32))
        {
                return NULL;
        }