filtering out IKEv1 configurations for manager
authorMartin Willi <martin@strongswan.org>
Thu, 15 Nov 2007 10:09:14 +0000 (10:09 -0000)
committerMartin Willi <martin@strongswan.org>
Thu, 15 Nov 2007 10:09:14 +0000 (10:09 -0000)
src/charon/control/interfaces/xml_interface.c

index a3be570..8ec295f 100644 (file)
@@ -313,6 +313,11 @@ static void request_query_config(xmlTextReaderPtr reader, xmlTextWriterPtr write
                ike_cfg_t *ike_cfg;
                linked_list_t *list;
                
                ike_cfg_t *ike_cfg;
                linked_list_t *list;
                
+               if (peer_cfg->get_ike_version(peer_cfg) != 2)
+               {       /* only IKEv2 connections yet */
+                       continue;
+               }
+               
                /* <peerconfig> */
                xmlTextWriterStartElement(writer, "peerconfig");
                xmlTextWriterWriteElement(writer, "name", peer_cfg->get_name(peer_cfg));
                /* <peerconfig> */
                xmlTextWriterStartElement(writer, "peerconfig");
                xmlTextWriterWriteElement(writer, "name", peer_cfg->get_name(peer_cfg));