aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/encoding/payloads/sa_payload.c
Commit message (Collapse)AuthorAgeFilesLines
* Use standard unsigned integer typesAndreas Steffen2016-03-241-16/+16
|
* ikev1: Skip unusable IPComp proposalsTobias Brunner2014-09-121-1/+1
| | | | Fixes #661.
* ikev1: Properly handle different proposal numbering schemesTobias Brunner2014-09-121-5/+10
| | | | | | | | | | | | | | | | | | While the examples in RFC 2408 show proposal numbers starting at 1 and increasing by one for each subsequent proposal this is not mandatory. Actually, IKEv1 proposals may start at any number, the only requirement is that the proposal numbers increase monotonically they don't have to do so consecutively. Most implementations follow the examples and start numbering at 1 (charon, racoon, Shrew, Cisco, Windows XP, FRITZ!Box) but pluto was one of the implementations that started with 0 and there might be others out there. The previous assumption that implementations always start numbering proposals at 0 caused problems with clients that start numbering with 1 and whose first proposal consists of multiple protocols (e.g. ESP+IPComp). Fixes #661.
* payload: Use common prefixes for all payload type identifiersMartin Willi2014-06-041-10/+10
| | | | | The old identifiers did not use a proper namespace and often clashed with other defines.
* ikev1: Support parsing of AH+IPComp proposalsMartin Willi2013-10-111-9/+11
|
* Fix crash if the initiator has no suitable proposal availableTobias Brunner2013-06-211-0/+5
| | | | Could be triggered with a typo in the ike or esp options when ! is used.
* Add support for draft-ietf-ipsec-nat-t-ike-03 and earlierVolker Rümelin2012-12-191-4/+4
| | | | | This adds support for early versions of the draft that eventually resulted in RFC 3947.
* Moved data structures to new collections subfolderTobias Brunner2012-10-241-1/+1
|
* Added encapsulation mode transform attribute to IPComp proposal.Tobias Brunner2012-05-251-1/+1
|
* Add an additional proposal without IPComp to SA payload.Tobias Brunner2012-05-241-17/+15
|
* Added support for IKEv1 IPComp proposals in SA payload.Tobias Brunner2012-05-241-5/+76
|
* Properly filter IKEv1 proposals consisting of multiple proposal payloads.Tobias Brunner2012-05-241-9/+15
| | | | | | | Since a proposal_t object is created for each transform contained in the proposal payload, it does not work to simply remove the last proposal_t object added to the list (there may be several other extracted from the previous proposal payload).
* Implemented IKEv1 attribute encoding in SA payloadMartin Willi2012-03-201-5/+48
|
* Implemented encoding of additional IKEv1 proposal attributesMartin Willi2012-03-201-60/+9
|
* Added not-yet used sa_payload parameters used in IKEv1Martin Willi2012-03-201-0/+106
|
* Parse proposal substructure with multiple IKEv1 transforms to multiple proposalsMartin Willi2012-03-201-8/+6
|
* Encode multiple IKEv1 proposals in a single transform substructureMartin Willi2012-03-201-5/+17
|
* Remove public sa_payload.add_proposal() methodMartin Willi2012-03-201-11/+12
|
* Fixed proposal numbering check in sa_payloadMartin Willi2012-03-201-10/+0
|
* Use a generic list encoding rule we can use to specify the wrapped payload typeMartin Willi2012-03-201-6/+6
|
* Add a payload.get_header_length() method, remove header length definitionsMartin Willi2012-03-201-8/+13
|
* Simplify signature of get_encoding_rules(), make all rules staticMartin Willi2012-03-201-8/+5
|
* Added limiting encoding of IKEv1 SA payloadsMartin Willi2012-03-201-1/+1
|
* Implemented limited payload parsing for IKEv1 SA payloadsMartin Willi2012-03-201-2/+17
|
* Extend sa_payload for IKEv1 supportMartin Willi2012-03-201-24/+101
|
* Fix some warnings triggered by gcc 4.6 -Wunused-but-set-variableMartin Willi2011-05-191-2/+0
|
* Added substructure enumerators to sa_payload, proposal_substructureMartin Willi2011-01-051-0/+7
|
* Added member fields for reserved bits and bytes in all payloadsMartin Willi2011-01-051-7/+12
|
* Do not update payload length during generation, allows hooks override ↵Martin Willi2011-01-051-1/+0
| | | | payload length
* Store proposal number in proposal_t to reuse it in the selected proposalMartin Willi2010-10-281-2/+9
| | | | | According to RFC 5996 3.3.1, we MUST reuse the proposal number of the selected proposal in the SA payload reply.
* Migrated sa_payload to INIT/METHOD macros, removed unused methodsMartin Willi2010-10-281-158/+112
|
* Moving charon to libcharon.Tobias Brunner2010-03-191-0/+368