- added get_responder_spi function
authorJan Hutter <jhutter@hsr.ch>
Tue, 22 Nov 2005 15:37:32 +0000 (15:37 -0000)
committerJan Hutter <jhutter@hsr.ch>
Tue, 22 Nov 2005 15:37:32 +0000 (15:37 -0000)
Source/charon/message.c

index 243a4e6..5d888eb 100644 (file)
@@ -296,6 +296,15 @@ static u_int32_t get_message_id (private_message_t *this)
 }
 
 /**
+ * Implements message_t's get_responder_spi function.
+ * See #message_s.get_responder_spi.
+ */
+static u_int64_t get_responder_spi (private_message_t *this)
+{
+       return (this->ike_sa_id->get_responder_spi(this->ike_sa_id));
+}
+
+/**
  * Implements message_t's set_major_version function.
  * See #message_s.set_major_version.
  */
@@ -792,6 +801,7 @@ message_t *message_create_from_packet(packet_t *packet)
        this->public.get_minor_version = (u_int8_t(*)(message_t*))get_minor_version;
        this->public.set_message_id = (status_t(*)(message_t*, u_int32_t))set_message_id;
        this->public.get_message_id = (u_int32_t(*)(message_t*))get_message_id;
+       this->public.get_responder_spi = (u_int64_t(*)(message_t*))get_responder_spi;   
        this->public.set_ike_sa_id = (status_t(*)(message_t*, ike_sa_id_t *))set_ike_sa_id;
        this->public.get_ike_sa_id = (status_t(*)(message_t*, ike_sa_id_t **))get_ike_sa_id;
        this->public.set_exchange_type = (status_t(*)(message_t*, exchange_type_t))set_exchange_type;