sub-component depth from pts database on component evidence request
[strongswan.git] / src / libpts / pts / components / pts_component_manager.c
index ddfeac8..5f11e41 100644 (file)
@@ -252,7 +252,8 @@ METHOD(pts_component_manager_t, get_qualifier, u_int8_t,
 }
 
 METHOD(pts_component_manager_t, create, pts_component_t*,
-       private_pts_component_manager_t *this, pts_comp_func_name_t *name)
+       private_pts_component_manager_t *this,
+       pts_comp_func_name_t *name, u_int32_t depth)
 {
        enumerator_t *enumerator, *e2;
        vendor_entry_t *entry;
@@ -269,7 +270,7 @@ METHOD(pts_component_manager_t, create, pts_component_t*,
                        {
                                if (entry2->name == name->get_name(name) && entry2->create)
                                {
-                                       component = entry2->create(name->get_qualifier(name));
+                                       component = entry2->create(name->get_qualifier(name), depth);
                                        break;
                                }
                        }