#include <proposal.h>
Inheritance diagram for openikev2::Proposal:

Public Member Functions | |
| Proposal (Enums::PROTOCOL_ID protocol_id) | |
| Creates a new Proposal. | |
| Proposal (ByteBuffer &byte_buffer) | |
| Creates a new Proposal based on its binary representation. | |
| virtual auto_ptr< Proposal > | clone () const |
| Creates a new Proposal clonning this one. | |
| virtual void | addTransform (auto_ptr< Transform > transform) |
| Adds a Transform to the Proposal object. | |
| virtual Transform * | getFirstTransformByType (Enums::TRANSFORM_TYPE type) const |
| Gets the first Transform with indicated type from the Proposal. | |
| virtual bool | hasTransform (const Transform &transform) const |
| Indicates if the Proposal has the indicated Transform. | |
| virtual bool | hasTheSameTransformTypes (const Proposal &other) const |
| Indicates if the Proposals has the same transform types than other. | |
| virtual void | deleteTransformsByType (Enums::TRANSFORM_TYPE type) |
| Detele all the transforms with the specified type. | |
| virtual void | setIkeSpi (uint64_t spi) |
| Sets the SPI value when the protocol is IKE. | |
| virtual void | setIpsecSpi (uint32_t spi) |
| Sets the SPI value when the protocol is AH or ESP. | |
| virtual uint64_t | getIkeSpi () |
| Gets the SPI value when the protocol is IKE. | |
| virtual uint32_t | getIpsecSpi () |
| Gets the SPI value when the protocol is AH or ESP. | |
| virtual void | getBinaryRepresentation (ByteBuffer &byte_buffer) const |
| Appends the binary representation of the Proposal in the ByteBuffer. | |
| virtual string | toStringTab (uint8_t tabs) const |
| Construct a textual representation of the object, preceded of a num of tabs of size TAB_SIZE. | |
Static Public Member Functions | |
| static auto_ptr< Proposal > | intersection (const Proposal &proposal1, const Proposal &proposal2) |
| Calculates the intersection between two proposals. | |
Public Attributes | |
| AutoVector< Transform > | transforms |
| Transform collection. | |
| auto_ptr< ByteArray > | spi |
| SPI value. | |
| Enums::PROTOCOL_ID | protocol_id |
| Protocol id. | |
| uint8_t | proposal_number |
| Number of the proposal. | |
| openikev2::Proposal::Proposal | ( | Enums::PROTOCOL_ID | protocol_id | ) |
Creates a new Proposal.
The SPI will be 0 length until it was assigned
| protocol_id | Protocol id |
| openikev2::Proposal::Proposal | ( | ByteBuffer & | byte_buffer | ) |
Creates a new Proposal based on its binary representation.
| byte_buffer | Buffer with its read pointer at the "proposal length" field |
| auto_ptr< Proposal > openikev2::Proposal::clone | ( | ) | const [virtual] |
| void openikev2::Proposal::addTransform | ( | auto_ptr< Transform > | transform | ) | [virtual] |
| Transform * openikev2::Proposal::getFirstTransformByType | ( | Enums::TRANSFORM_TYPE | type | ) | const [virtual] |
| bool openikev2::Proposal::hasTransform | ( | const Transform & | transform | ) | const [virtual] |
| bool openikev2::Proposal::hasTheSameTransformTypes | ( | const Proposal & | other | ) | const [virtual] |
Indicates if the Proposals has the same transform types than other.
| other | Other proposal |
| void openikev2::Proposal::deleteTransformsByType | ( | Enums::TRANSFORM_TYPE | type | ) | [virtual] |
| void openikev2::Proposal::setIkeSpi | ( | uint64_t | spi | ) | [virtual] |
Sets the SPI value when the protocol is IKE.
| spi | SPI value for the IKE protocol (in network order) |
| void openikev2::Proposal::setIpsecSpi | ( | uint32_t | spi | ) | [virtual] |
Sets the SPI value when the protocol is AH or ESP.
| spi | SPI value for the IPsec protocol (in network order) |
| uint64_t openikev2::Proposal::getIkeSpi | ( | ) | [virtual] |
Gets the SPI value when the protocol is IKE.
| uint32_t openikev2::Proposal::getIpsecSpi | ( | ) | [virtual] |
Gets the SPI value when the protocol is AH or ESP.
| void openikev2::Proposal::getBinaryRepresentation | ( | ByteBuffer & | byte_buffer | ) | const [virtual] |
Appends the binary representation of the Proposal in the ByteBuffer.
| byte_buffer | ByteBuffer where append the binary representation |
| string openikev2::Proposal::toStringTab | ( | uint8_t | tabs | ) | const [virtual] |
Construct a textual representation of the object, preceded of a num of tabs of size TAB_SIZE.
| tabs | Num of tabs preceding the textual representation. |
Implements openikev2::Printable.
1.5.1