aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2007-02-08 13:31:31 +0000
committerMartin Willi <martin@strongswan.org>2007-02-08 13:31:31 +0000
commit9425da18160f7fef40fa8b483fcbd71a27c199b1 (patch)
tree43c0b62add4dd225772c6c27556685e5d9cd8d93 /src
parentf56d2b26235025abd07016f0176a83222a00ba04 (diff)
downloadstrongswan-9425da18160f7fef40fa8b483fcbd71a27c199b1.tar.bz2
strongswan-9425da18160f7fef40fa8b483fcbd71a27c199b1.tar.xz
include NO_EXT_SEQUENCE_NUMBER in default proposal
Diffstat (limited to 'src')
-rw-r--r--src/charon/config/proposal.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/charon/config/proposal.c b/src/charon/config/proposal.c
index e6a4a4d7d..ce7720d5a 100644
--- a/src/charon/config/proposal.c
+++ b/src/charon/config/proposal.c
@@ -538,10 +538,12 @@ proposal_t *proposal_create_default(protocol_id_t protocol)
add_algorithm(this, ENCRYPTION_ALGORITHM, ENCR_BLOWFISH, 256);
add_algorithm(this, INTEGRITY_ALGORITHM, AUTH_HMAC_SHA1_96, 0);
add_algorithm(this, INTEGRITY_ALGORITHM, AUTH_HMAC_MD5_96, 0);
+ add_algorithm(this, EXTENDED_SEQUENCE_NUMBERS, NO_EXT_SEQ_NUMBERS, 0);
break;
case PROTO_AH:
add_algorithm(this, INTEGRITY_ALGORITHM, AUTH_HMAC_SHA1_96, 0);
add_algorithm(this, INTEGRITY_ALGORITHM, AUTH_HMAC_MD5_96, 0);
+ add_algorithm(this, EXTENDED_SEQUENCE_NUMBERS, NO_EXT_SEQ_NUMBERS, 0);
break;
default:
break;
@@ -582,5 +584,9 @@ proposal_t *proposal_create_from_string(protocol_id_t protocol, const char *algs
return NULL;
}
+ if (protocol == PROTO_AH || protocol == PROTO_ESP)
+ {
+ add_algorithm(this, EXTENDED_SEQUENCE_NUMBERS, NO_EXT_SEQ_NUMBERS, 0);
+ }
return &this->public;
}