diff options
author | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2000-11-21 06:44:05 +0000 |
---|---|---|
committer | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2000-11-21 06:44:05 +0000 |
commit | dd8dd81b9c953440a52d8b7b4c3bbc1e345ea799 (patch) | |
tree | 1dc22d75af64a9a21cb1ca965f6192d1a27f1fae /sbin/isakmpd/ipsec.c | |
parent | 6d74a94786ac87369e1fbebf8c688a304683ddf8 (diff) |
CAST-128 has a maximum of 128bit keys, not 256.
Diffstat (limited to 'sbin/isakmpd/ipsec.c')
-rw-r--r-- | sbin/isakmpd/ipsec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/isakmpd/ipsec.c b/sbin/isakmpd/ipsec.c index b02ebbab011..f316cdbf47d 100644 --- a/sbin/isakmpd/ipsec.c +++ b/sbin/isakmpd/ipsec.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ipsec.c,v 1.30 2000/10/16 23:26:33 niklas Exp $ */ +/* $OpenBSD: ipsec.c,v 1.31 2000/11/21 06:44:04 angelos Exp $ */ /* $EOM: ipsec.c,v 1.139 2000/10/16 06:01:34 niklas Exp $ */ /* @@ -1338,7 +1338,7 @@ ipsec_esp_enckeylength (struct proto *proto) return 24; case IPSEC_ESP_CAST: if (!iproto->keylen) - return 32; + return 16; return iproto->keylen / 8; case IPSEC_ESP_AES: if (!iproto->keylen) |