2 * Copyright (C) 2006-2011 Tobias Brunner
3 * Copyright (C) 2006 Daniel Roethlisberger
4 * Copyright (C) 2005-2009 Martin Willi
5 * Copyright (C) 2005 Jan Hutter
6 * Hochschule fuer Technik Rapperswil
8 * This program is free software; you can redistribute it and/or modify it
9 * under the terms of the GNU General Public License as published by the
10 * Free Software Foundation; either version 2 of the License, or (at your
11 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
13 * This program is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
15 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
20 * @defgroup ike_sa ike_sa
27 typedef enum ike_extension_t ike_extension_t
;
28 typedef enum ike_condition_t ike_condition_t
;
29 typedef enum ike_sa_state_t ike_sa_state_t
;
30 typedef enum statistic_t statistic_t
;
31 typedef struct ike_sa_t ike_sa_t
;
34 #include <attributes/attribute_handler.h>
35 #include <encoding/message.h>
36 #include <encoding/payloads/proposal_substructure.h>
37 #include <encoding/payloads/configuration_attribute.h>
38 #include <sa/ike_sa_id.h>
39 #include <sa/child_sa.h>
41 #include <sa/task_manager.h>
42 #include <sa/keymat.h>
43 #include <config/peer_cfg.h>
44 #include <config/ike_cfg.h>
45 #include <credentials/auth_cfg.h>
48 * Timeout in seconds after that a half open IKE_SA gets deleted.
50 #define HALF_OPEN_IKE_SA_TIMEOUT 30
53 * Interval to send keepalives when NATed, in seconds.
55 #define KEEPALIVE_INTERVAL 20
58 * After which time rekeying should be retried if it failed, in seconds.
60 #define RETRY_INTERVAL 30
63 * Jitter to subtract from RETRY_INTERVAL to randomize rekey retry.
65 #define RETRY_JITTER 20
68 * Extensions (or optional features) the peer supports
70 enum ike_extension_t
{
73 * peer supports NAT traversal as specified in RFC4306 or RFC3947
78 * peer supports MOBIKE (RFC4555)
83 * peer supports HTTP cert lookups as specified in RFC4306
85 EXT_HASH_AND_URL
= (1<<2),
88 * peer supports multiple authentication exchanges, RFC4739
90 EXT_MULTIPLE_AUTH
= (1<<3),
93 * peer uses strongSwan, accept private use extensions
95 EXT_STRONGSWAN
= (1<<4),
98 * peer supports EAP-only authentication, draft-eronen-ipsec-ikev2-eap-auth
100 EXT_EAP_ONLY_AUTHENTICATION
= (1<<5),
103 * peer is probably a Windows 7 RAS client
105 EXT_MS_WINDOWS
= (1<<6),
108 * peer supports XAuth authentication, draft-ietf-ipsec-isakmp-xauth-06
114 * Conditions of an IKE_SA, change during its lifetime
116 enum ike_condition_t
{
119 * Connection is natted (or faked) somewhere
121 COND_NAT_ANY
= (1<<0),
126 COND_NAT_HERE
= (1<<1),
129 * other is behind NAT
131 COND_NAT_THERE
= (1<<2),
134 * Faking NAT to enforce UDP encapsulation
136 COND_NAT_FAKE
= (1<<3),
139 * peer has been authenticated using EAP at least once
141 COND_EAP_AUTHENTICATED
= (1<<4),
144 * received a certificate request from the peer
146 COND_CERTREQ_SEEN
= (1<<5),
149 * Local peer is the "original" IKE initiator. Unaffected from rekeying.
151 COND_ORIGINAL_INITIATOR
= (1<<6),
154 * IKE_SA is stale, the peer is currently unreachable (MOBIKE)
159 * Initial contact received
161 COND_INIT_CONTACT_SEEN
= (1<<8),
165 * Timing information and statistics to query from an SA
168 /** Timestamp of SA establishement */
169 STAT_ESTABLISHED
= 0,
170 /** Timestamp of scheudled rekeying */
172 /** Timestamp of scheudled reauthentication */
174 /** Timestamp of scheudled delete */
176 /** Timestamp of last inbound IKE packet */
178 /** Timestamp of last outbound IKE packet */
185 * State of an IKE_SA.
187 * An IKE_SA passes various states in its lifetime. A newly created
188 * SA is in the state CREATED.
194 on initiate()---> ¦ <----- on IKE_SA_INIT received
200 ¦ <----- on IKE_AUTH successfully completed
203 ¦ SA_ESTABLISHED ¦-------------------------+ <-- on rekeying
206 on delete()---> ¦ <----- on IKE_SA +-------------+
207 ¦ delete request ¦ SA_REKEYING ¦
208 ¦ received +-------------+
211 ¦ SA_DELETING ¦<------------------------+ <-- after rekeying
214 ¦ <----- after delete() acknowledged
221 enum ike_sa_state_t
{
224 * IKE_SA just got created, but is not initiating nor responding yet.
229 * IKE_SA gets initiated actively or passively
234 * IKE_SA is fully established
239 * IKE_SA is managed externally and does not process messages
244 * IKE_SA rekeying in progress
249 * IKE_SA is in progress of deletion
254 * IKE_SA object gets destroyed
260 * enum names for ike_sa_state_t.
262 extern enum_name_t
*ike_sa_state_names
;
265 * Class ike_sa_t representing an IKE_SA.
267 * An IKE_SA contains crypto information related to a connection
268 * with a peer. It contains multiple IPsec CHILD_SA, for which
269 * it is responsible. All traffic is handled by an IKE_SA, using
270 * the task manager and its tasks.
275 * Get the id of the SA.
277 * Returned ike_sa_id_t object is not getting cloned!
279 * @return ike_sa's ike_sa_id_t
281 ike_sa_id_t
* (*get_id
) (ike_sa_t
*this);
284 * Gets the IKE version of the SA
286 ike_version_t (*get_version
)(ike_sa_t
*this);
289 * Get the numerical ID uniquely defining this IKE_SA.
293 u_int32_t (*get_unique_id
) (ike_sa_t
*this);
296 * Get the state of the IKE_SA.
298 * @return state of the IKE_SA
300 ike_sa_state_t (*get_state
) (ike_sa_t
*this);
303 * Set the state of the IKE_SA.
305 * @param state state to set for the IKE_SA
307 void (*set_state
) (ike_sa_t
*this, ike_sa_state_t state
);
310 * Get the name of the connection this IKE_SA uses.
314 char* (*get_name
) (ike_sa_t
*this);
317 * Get statistic values from the IKE_SA.
319 * @param kind kind of requested value
320 * @return value as integer
322 u_int32_t (*get_statistic
)(ike_sa_t
*this, statistic_t kind
);
325 * Set statistic value of the IKE_SA.
327 * @param kind kind of value to update
328 * @param value value as integer
330 void (*set_statistic
)(ike_sa_t
*this, statistic_t kind
, u_int32_t value
);
333 * Get the own host address.
335 * @return host address
337 host_t
* (*get_my_host
) (ike_sa_t
*this);
340 * Set the own host address.
342 * @param me host address
344 void (*set_my_host
) (ike_sa_t
*this, host_t
*me
);
347 * Get the other peers host address.
349 * @return host address
351 host_t
* (*get_other_host
) (ike_sa_t
*this);
354 * Set the others host address.
356 * @param other host address
358 void (*set_other_host
) (ike_sa_t
*this, host_t
*other
);
361 * Float to port 4500 (e.g. if a NAT is detected).
363 * The port of either endpoint is changed only if it is currently
364 * set to the default value of 500.
366 void (*float_ports
)(ike_sa_t
*this);
369 * Update the IKE_SAs host.
371 * Hosts may be NULL to use current host.
373 * @param me new local host address, or NULL
374 * @param other new remote host address, or NULL
375 * @param force force update
377 void (*update_hosts
)(ike_sa_t
*this, host_t
*me
, host_t
*other
, bool force
);
380 * Get the own identification.
382 * @return identification
384 identification_t
* (*get_my_id
) (ike_sa_t
*this);
387 * Set the own identification.
389 * @param me identification
391 void (*set_my_id
) (ike_sa_t
*this, identification_t
*me
);
394 * Get the other peer's identification.
396 * @return identification
398 identification_t
* (*get_other_id
) (ike_sa_t
*this);
401 * Get the others peer identity, but prefer an EAP-Identity.
403 * @return EAP or IKEv2 identity
405 identification_t
* (*get_other_eap_id
)(ike_sa_t
*this);
408 * Set the other peer's identification.
410 * @param other identification
412 void (*set_other_id
) (ike_sa_t
*this, identification_t
*other
);
415 * Get the config used to setup this IKE_SA.
419 ike_cfg_t
* (*get_ike_cfg
) (ike_sa_t
*this);
422 * Set the config to setup this IKE_SA.
424 * @param config ike_config to use
426 void (*set_ike_cfg
) (ike_sa_t
*this, ike_cfg_t
* config
);
429 * Get the peer config used by this IKE_SA.
431 * @return peer_config
433 peer_cfg_t
* (*get_peer_cfg
) (ike_sa_t
*this);
436 * Set the peer config to use with this IKE_SA.
438 * @param config peer_config to use
440 void (*set_peer_cfg
) (ike_sa_t
*this, peer_cfg_t
*config
);
443 * Get the authentication config with rules of the current auth round.
445 * @param local TRUE for local rules, FALSE for remote constraints
446 * @return current cfg
448 auth_cfg_t
* (*get_auth_cfg
)(ike_sa_t
*this, bool local
);
451 * Insert a completed authentication round.
453 * @param local TRUE for own rules, FALSE for others constraints
454 * @param cfg auth config to append
456 void (*add_auth_cfg
)(ike_sa_t
*this, bool local
, auth_cfg_t
*cfg
);
459 * Create an enumerator over added authentication rounds.
461 * @param local TRUE for own rules, FALSE for others constraints
462 * @return enumerator over auth_cfg_t
464 enumerator_t
* (*create_auth_cfg_enumerator
)(ike_sa_t
*this, bool local
);
467 * Get the selected proposal of this IKE_SA.
469 * @return selected proposal
471 proposal_t
* (*get_proposal
)(ike_sa_t
*this);
474 * Set the proposal selected for this IKE_SA.
476 * @param selected proposal
478 void (*set_proposal
)(ike_sa_t
*this, proposal_t
*proposal
);
481 * Set the message id of the IKE_SA.
483 * The IKE_SA stores two message IDs, one for initiating exchanges (send)
484 * and one to respond to exchanges (expect).
486 * @param initiate TRUE to set message ID for initiating
487 * @param mid message id to set
489 void (*set_message_id
)(ike_sa_t
*this, bool initiate
, u_int32_t mid
);
492 * Add an additional address for the peer.
494 * In MOBIKE, a peer may transmit additional addresses where it is
495 * reachable. These are stored in the IKE_SA.
496 * The own list of addresses is not stored, they are queried from
497 * the kernel when required.
499 * @param host host to add to list
501 void (*add_additional_address
)(ike_sa_t
*this, host_t
*host
);
504 * Create an enumerator over all additional addresses of the peer.
506 * @return enumerator over addresses
508 enumerator_t
* (*create_additional_address_enumerator
)(ike_sa_t
*this);
511 * Remove all additional addresses of the peer.
513 void (*remove_additional_addresses
)(ike_sa_t
*this);
516 * Check if mappings have changed on a NAT for our source address.
518 * @param hash received DESTINATION_IP hash
519 * @return TRUE if mappings have changed
521 bool (*has_mapping_changed
)(ike_sa_t
*this, chunk_t hash
);
524 * Enable an extension the peer supports.
526 * If support for an IKE extension is detected, this method is called
527 * to enable that extension and behave accordingly.
529 * @param extension extension to enable
531 void (*enable_extension
)(ike_sa_t
*this, ike_extension_t extension
);
534 * Check if the peer supports an extension.
536 * @param extension extension to check for support
537 * @return TRUE if peer supports it, FALSE otherwise
539 bool (*supports_extension
)(ike_sa_t
*this, ike_extension_t extension
);
542 * Enable/disable a condition flag for this IKE_SA.
544 * @param condition condition to enable/disable
545 * @param enable TRUE to enable condition, FALSE to disable
547 void (*set_condition
) (ike_sa_t
*this, ike_condition_t condition
, bool enable
);
550 * Check if a condition flag is set.
552 * @param condition condition to check
553 * @return TRUE if condition flag set, FALSE otherwise
555 bool (*has_condition
) (ike_sa_t
*this, ike_condition_t condition
);
558 * Get the number of queued MOBIKE address updates.
560 * @return number of pending updates
562 u_int32_t (*get_pending_updates
)(ike_sa_t
*this);
565 * Set the number of queued MOBIKE address updates.
567 * @param updates number of pending updates
569 void (*set_pending_updates
)(ike_sa_t
*this, u_int32_t updates
);
573 * Activate mediation server functionality for this IKE_SA.
575 void (*act_as_mediation_server
) (ike_sa_t
*this);
578 * Get the server reflexive host.
580 * @return server reflexive host
582 host_t
* (*get_server_reflexive_host
) (ike_sa_t
*this);
585 * Set the server reflexive host.
587 * @param host server reflexive host
589 void (*set_server_reflexive_host
) (ike_sa_t
*this, host_t
*host
);
592 * Get the connect ID.
596 chunk_t (*get_connect_id
) (ike_sa_t
*this);
599 * Initiate the mediation of a mediated connection (i.e. initiate a
600 * ME_CONNECT exchange to a mediation server).
602 * @param mediated_cfg peer_cfg of the mediated connection
604 * - SUCCESS if initialization started
605 * - DESTROY_ME if initialization failed
607 status_t (*initiate_mediation
) (ike_sa_t
*this, peer_cfg_t
*mediated_cfg
);
610 * Initiate the mediated connection
612 * @param me local endpoint (gets cloned)
613 * @param other remote endpoint (gets cloned)
614 * @param connect_id connect ID (gets cloned)
616 * - SUCCESS if initialization started
617 * - DESTROY_ME if initialization failed
619 status_t (*initiate_mediated
) (ike_sa_t
*this, host_t
*me
, host_t
*other
,
623 * Relay data from one peer to another (i.e. initiate a ME_CONNECT exchange
628 * @param requester ID of the requesting peer
629 * @param connect_id data of the ME_CONNECTID payload
630 * @param connect_key data of the ME_CONNECTKEY payload
631 * @param endpoints endpoints
632 * @param response TRUE if this is a response
634 * - SUCCESS if relay started
635 * - DESTROY_ME if relay failed
637 status_t (*relay
) (ike_sa_t
*this, identification_t
*requester
,
638 chunk_t connect_id
, chunk_t connect_key
,
639 linked_list_t
*endpoints
, bool response
);
642 * Send a callback to a peer.
646 * @param peer_id ID of the other peer
648 * - SUCCESS if response started
649 * - DESTROY_ME if response failed
651 status_t (*callback
) (ike_sa_t
*this, identification_t
*peer_id
);
654 * Respond to a ME_CONNECT request.
658 * @param peer_id ID of the other peer
659 * @param connect_id the connect ID supplied by the initiator
661 * - SUCCESS if response started
662 * - DESTROY_ME if response failed
664 status_t (*respond
) (ike_sa_t
*this, identification_t
*peer_id
,
669 * Initiate a new connection.
671 * The configs are owned by the IKE_SA after the call. If the initiate
672 * is triggered by a packet, traffic selectors of the packet can be added
675 * @param child_cfg child config to create CHILD from
676 * @param reqid reqid to use for CHILD_SA, 0 assigne uniquely
677 * @param tsi source of triggering packet
678 * @param tsr destination of triggering packet.
680 * - SUCCESS if initialization started
681 * - DESTROY_ME if initialization failed
683 status_t (*initiate
) (ike_sa_t
*this, child_cfg_t
*child_cfg
,
684 u_int32_t reqid
, traffic_selector_t
*tsi
,
685 traffic_selector_t
*tsr
);
688 * Initiates the deletion of an IKE_SA.
690 * Sends a delete message to the remote peer and waits for
691 * its response. If the response comes in, or a timeout occurs,
692 * the IKE SA gets deleted.
695 * - SUCCESS if deletion is initialized
696 * - DESTROY_ME, if the IKE_SA is not in
697 * an established state and can not be
698 * deleted (but destroyed).
700 status_t (*delete) (ike_sa_t
*this);
703 * Update IKE_SAs after network interfaces have changed.
705 * Whenever the network interface configuration changes, the kernel
706 * interface calls roam() on each IKE_SA. The IKE_SA then checks if
707 * the new network config requires changes, and handles appropriate.
708 * If MOBIKE is supported, addresses are updated; If not, the tunnel is
711 * @param address TRUE if address list changed, FALSE otherwise
712 * @return SUCCESS, FAILED, DESTROY_ME
714 status_t (*roam
)(ike_sa_t
*this, bool address
);
717 * Processes a incoming IKEv2-Message.
719 * Message processing may fail. If a critical failure occurs,
720 * process_message() return DESTROY_ME. Then the caller must
721 * destroy the IKE_SA immediately, as it is unusable.
723 * @param message message to process
727 * - DESTROY_ME if this IKE_SA MUST be deleted
729 status_t (*process_message
) (ike_sa_t
*this, message_t
*message
);
732 * Generate a IKE message to send it to the peer.
734 * This method generates all payloads in the message and encrypts/signs
737 * @param message message to generate
738 * @param packet generated output packet
742 * - DESTROY_ME if this IKE_SA MUST be deleted
744 status_t (*generate_message
) (ike_sa_t
*this, message_t
*message
,
748 * Retransmits a request.
750 * @param message_id ID of the request to retransmit
753 * - NOT_FOUND if request doesn't have to be retransmited
755 status_t (*retransmit
) (ike_sa_t
*this, u_int32_t message_id
);
758 * Sends a DPD request to the peer.
760 * To check if a peer is still alive, periodic
761 * empty INFORMATIONAL messages are sent if no
762 * other traffic was received.
766 * - DESTROY_ME, if peer did not respond
768 status_t (*send_dpd
) (ike_sa_t
*this);
771 * Sends a keep alive packet.
773 * To refresh NAT tables in a NAT router
774 * between the peers, periodic empty
775 * UDP packets are sent if no other traffic
778 void (*send_keepalive
) (ike_sa_t
*this);
781 * Get the keying material of this IKE_SA.
783 * @return per IKE_SA keymat instance
785 keymat_t
* (*get_keymat
)(ike_sa_t
*this);
788 * Associates a child SA to this IKE SA
790 * @param child_sa child_sa to add
792 void (*add_child_sa
) (ike_sa_t
*this, child_sa_t
*child_sa
);
795 * Get a CHILD_SA identified by protocol and SPI.
797 * @param protocol protocol of the SA
798 * @param spi SPI of the CHILD_SA
799 * @param inbound TRUE if SPI is inbound, FALSE if outbound
800 * @return child_sa, or NULL if none found
802 child_sa_t
* (*get_child_sa
) (ike_sa_t
*this, protocol_id_t protocol
,
803 u_int32_t spi
, bool inbound
);
806 * Get the number of CHILD_SAs.
808 * @return number of CHILD_SAs
810 int (*get_child_count
) (ike_sa_t
*this);
813 * Create an enumerator over all CHILD_SAs.
817 enumerator_t
* (*create_child_sa_enumerator
) (ike_sa_t
*this);
820 * Remove the CHILD_SA the given enumerator points to from this IKE_SA.
822 * @param enumerator enumerator pointing to CHILD_SA
824 void (*remove_child_sa
) (ike_sa_t
*this, enumerator_t
*enumerator
);
827 * Rekey the CHILD SA with the specified reqid.
829 * Looks for a CHILD SA owned by this IKE_SA, and start the rekeing.
831 * @param protocol protocol of the SA
832 * @param spi inbound SPI of the CHILD_SA
834 * - NOT_FOUND, if IKE_SA has no such CHILD_SA
835 * - SUCCESS, if rekeying initiated
837 status_t (*rekey_child_sa
) (ike_sa_t
*this, protocol_id_t protocol
, u_int32_t spi
);
840 * Close the CHILD SA with the specified protocol/SPI.
842 * Looks for a CHILD SA owned by this IKE_SA, deletes it and
843 * notify's the remote peer about the delete. The associated
844 * states and policies in the kernel get deleted, if they exist.
846 * @param protocol protocol of the SA
847 * @param spi inbound SPI of the CHILD_SA
848 * @param expired TRUE if CHILD_SA is expired
850 * - NOT_FOUND, if IKE_SA has no such CHILD_SA
851 * - SUCCESS, if delete message sent
853 status_t (*delete_child_sa
)(ike_sa_t
*this, protocol_id_t protocol
,
854 u_int32_t spi
, bool expired
);
857 * Destroy a CHILD SA with the specified protocol/SPI.
859 * Looks for a CHILD SA owned by this IKE_SA and destroys it.
861 * @param protocol protocol of the SA
862 * @param spi inbound SPI of the CHILD_SA
864 * - NOT_FOUND, if IKE_SA has no such CHILD_SA
867 status_t (*destroy_child_sa
) (ike_sa_t
*this, protocol_id_t protocol
, u_int32_t spi
);
872 * Sets up a new IKE_SA, moves all CHILDs to it and deletes this IKE_SA.
874 * @return - SUCCESS, if IKE_SA rekeying initiated
876 status_t (*rekey
) (ike_sa_t
*this);
879 * Reauthenticate the IKE_SA.
881 * Create a completely new IKE_SA with authentication, recreates all children
882 * within the IKE_SA, closes this IKE_SA.
884 * @return DESTROY_ME to destroy the IKE_SA
886 status_t (*reauth
) (ike_sa_t
*this);
889 * Restablish the IKE_SA.
891 * Reestablish an IKE_SA after it has been closed.
893 * @return DESTROY_ME to destroy the IKE_SA
895 status_t (*reestablish
) (ike_sa_t
*this);
898 * Set the lifetime limit received from a AUTH_LIFETIME notify.
900 * @param lifetime lifetime in seconds
902 void (*set_auth_lifetime
)(ike_sa_t
*this, u_int32_t lifetime
);
905 * Set the virtual IP to use for this IKE_SA and its children.
907 * The virtual IP is assigned per IKE_SA, not per CHILD_SA. It has the same
908 * lifetime as the IKE_SA.
910 * @param local TRUE to set local address, FALSE for remote
911 * @param ip IP to set as virtual IP
913 void (*set_virtual_ip
) (ike_sa_t
*this, bool local
, host_t
*ip
);
916 * Get the virtual IP configured.
918 * @param local TRUE to get local virtual IP, FALSE for remote
919 * @return host_t *virtual IP
921 host_t
* (*get_virtual_ip
) (ike_sa_t
*this, bool local
);
924 * Register a configuration attribute to the IKE_SA.
926 * If an IRAS sends a configuration attribute it is installed and
927 * registered at the IKE_SA. Attributes are inherit()ed and get released
928 * when the IKE_SA is closed.
930 * @param handler handler installed the attribute, use for release()
931 * @param type configuration attribute type
932 * @param data associated attribute data
934 void (*add_configuration_attribute
)(ike_sa_t
*this,
935 attribute_handler_t
*handler
,
936 configuration_attribute_type_t type
, chunk_t data
);
939 * Set local and remote host addresses to be used for IKE.
941 * These addresses are communicated via the KMADDRESS field of a MIGRATE
942 * message sent via the NETLINK or PF _KEY kernel socket interface.
944 * @param local local kmaddress
945 * @param remote remote kmaddress
947 void (*set_kmaddress
) (ike_sa_t
*this, host_t
*local
, host_t
*remote
);
950 * Create enumerator over a task queue of this IKE_SA.
952 * @param queue type to enumerate
953 * @return enumerator over task_t
955 enumerator_t
* (*create_task_enumerator
)(ike_sa_t
*this, task_queue_t queue
);
958 * Queue a task for initiaton to the task manager.
960 * @param task task to queue
962 void (*queue_task
)(ike_sa_t
*this, task_t
*task
);
965 * Inherit all attributes of other to this after rekeying.
967 * When rekeying is completed, all CHILD_SAs, the virtual IP and all
968 * outstanding tasks are moved from other to this.
969 * As this call may initiate inherited tasks, a status is returned.
971 * @param other other task to inherit from
973 void (*inherit
) (ike_sa_t
*this, ike_sa_t
*other
);
976 * Reset the IKE_SA, useable when initiating fails
978 void (*reset
) (ike_sa_t
*this);
981 * Destroys a ike_sa_t object.
983 void (*destroy
) (ike_sa_t
*this);
987 * Creates an ike_sa_t object with a specific ID and IKE version.
989 * @param ike_sa_id ike_sa_id_t to associate with new IKE_SA/ISAKMP_SA
990 * @param initiator TRUE to create this IKE_SA as initiator
991 * @param version IKE version of this SA
992 * @return ike_sa_t object
994 ike_sa_t
*ike_sa_create(ike_sa_id_t
*ike_sa_id
, bool initiator
,
995 ike_version_t version
);
997 #endif /** IKE_SA_H_ @}*/