diff options
Diffstat (limited to 'Source/charon/sa/ike_sa.h')
-rw-r--r-- | Source/charon/sa/ike_sa.h | 29 |
1 files changed, 21 insertions, 8 deletions
diff --git a/Source/charon/sa/ike_sa.h b/Source/charon/sa/ike_sa.h index 806fd6581..6a12aaf8d 100644 --- a/Source/charon/sa/ike_sa.h +++ b/Source/charon/sa/ike_sa.h @@ -71,6 +71,17 @@ struct ike_sa_t { * @return TODO */ status_t (*initialize_connection) (ike_sa_t *this, char *name); + + /** + * @brief Retransmits a request. + * + * @param this calling object + * @param message_id ID of the request to retransmit + * @return + * - SUCCESS + * - NOT_FOUND if request doesn't have to be retransmited + */ + status_t (*retransmit_request) (ike_sa_t *this, u_int32_t message_id); /** * @brief Get the id of the SA. @@ -223,30 +234,32 @@ struct protected_ike_sa_t { status_t (*create_transforms_from_proposal) (protected_ike_sa_t *this,ike_proposal_t * proposal); /** - * Sets the last requested message. + * Sends the next request message. + * + * Also the first retransmit job is created. * - * Allready set last requested message gets destroyed. object gets not cloned! + * Stored requested message gets destroyed. object gets not cloned! * * @param this calling object - * @param message pointer to the new last requested message + * @param message pointer to the message which should be sent * @return * - SUCCESS * - FAILED if message id is not next expected one */ - status_t (*set_last_requested_message) (protected_ike_sa_t *this,message_t * message); + status_t (*send_request) (protected_ike_sa_t *this,message_t * message); /** - * Sets the last responded message. + * Sends the next response message. * - * Allready set last requested message gets destroyed. object gets not cloned! + * Stored responded message gets destroyed. object gets not cloned! * * @param this calling object - * @param message pointer to the new last responded message + * @param message pointer to the message which should be sent * return * - SUCCESS * - FAILED if message id is not next expected one */ - status_t (*set_last_responded_message) (protected_ike_sa_t *this,message_t * message); + status_t (*send_response) (protected_ike_sa_t *this,message_t * message); /** * Gets the internal stored randomizer_t object. |