aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2008-04-18 17:00:30 +0000
committerAndreas Steffen <andreas.steffen@strongswan.org>2008-04-18 17:00:30 +0000
commit855c9a908904a836a9ff16f2c1e90103c97f1085 (patch)
tree4a2f4e6b5fa7f5d6a7d13db843ae0b4931535282 /src
parent66bb16b0337e326fe9403e65549b0846fd1becaf (diff)
downloadstrongswan-855c9a908904a836a9ff16f2c1e90103c97f1085.tar.bz2
strongswan-855c9a908904a836a9ff16f2c1e90103c97f1085.tar.xz
fixed AES default key length
Diffstat (limited to 'src')
-rw-r--r--src/pluto/spdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pluto/spdb.c b/src/pluto/spdb.c
index 00a312a50..8699132da 100644
--- a/src/pluto/spdb.c
+++ b/src/pluto/spdb.c
@@ -2058,7 +2058,7 @@ parse_ipsec_sa_body(
/* set default key length for AES encryption */
if (!esp_attrs.key_len && esp_attrs.transid == ESP_AES)
{
- esp_attrs.key_len = 128 / BITS_PER_BYTE;
+ esp_attrs.key_len = 128; /* bits */
}
if (!kernel_alg_esp_enc_ok(esp_attrs.transid, esp_attrs.key_len