Lines Matching refs:optionset

701 	else if (xmlStrcmp(node->name, (xmlChar *)"optionset") == 0)
711 * sa_optionset_name(optionset, oname, len, id)
712 * return the SMF name for the optionset. If id is not NULL, it
714 * instead of the keyword "optionset" which is used for
715 * groups. If the optionset doesn't have a protocol type
723 sa_optionset_name(sa_optionset_t optionset, char *oname, size_t len, char *id)
730 id = "optionset";
732 parent = sa_get_optionset_parent(optionset);
735 proto = sa_get_optionset_attr(optionset, "type");
760 * sa_security_name(optionset, oname, len, id)
764 * keyword "optionset" which is used for groups. If the optionset
779 id = "optionset";
1404 sa_optionset_t optionset;
1409 for (optionset = sa_get_optionset(group, NULL);
1410 optionset != NULL;
1411 optionset = sa_get_next_optionset(optionset)) {
1414 value = sa_get_optionset_attr(optionset, "type");
1441 sa_optionset_t optionset;
1444 for (optionset = sa_get_optionset(group, NULL);
1445 optionset != NULL;
1446 optionset = sa_get_next_optionset(optionset)) {
1448 value = sa_get_optionset_attr(optionset, "type");
1632 sa_optionset_t optionset;
1636 for (optionset = sa_get_optionset(group, NULL);
1637 optionset != NULL;
1638 optionset = sa_get_next_optionset(optionset)) {
1640 proto = sa_get_optionset_attr(optionset,
1681 sa_optionset_t optionset;
1686 for (optionset = sa_get_optionset(group, NULL);
1687 optionset != NULL;
1688 optionset = sa_get_next_optionset(optionset)) {
1691 proto = sa_get_optionset_attr(optionset, "type");
2269 sa_get_optionset_attr(sa_property_t optionset, char *tag)
2271 return (get_node_attr((void *)optionset, tag));
2276 * sa_set_optionset_attr(optionset, tag, value)
2279 * optionset.
2283 sa_set_optionset_attr(sa_group_t optionset, char *tag, char *value)
2285 set_node_attr((void *)optionset, tag, value);
2304 * Return the optionset, if it exists, that is associated with the
2316 if (xmlStrcmp(node->name, (xmlChar *)"optionset") == 0) {
2338 * sa_get_next_optionset(optionset)
2340 * Return the next optionset in the group. NULL if this was the last.
2344 sa_get_next_optionset(sa_optionset_t optionset)
2348 for (node = ((xmlNodePtr)optionset)->next; node != NULL;
2350 if (xmlStrcmp(node->name, (xmlChar *)"optionset") == 0) {
2360 * Return the security optionset. The internal name is a hold over
2362 * finalized. This is really a named optionset that can be negotiated
2414 * Get the next security optionset if one exists.
2432 * sa_get_property(optionset, prop)
2435 * optionset.
2439 sa_get_property(sa_optionset_t optionset, char *prop)
2441 xmlNodePtr node = (xmlNodePtr)optionset;
2444 if (optionset == NULL)
2601 * Create an optionset for the specified protocol in the specied
2608 sa_optionset_t optionset;
2614 optionset = sa_get_optionset(group, proto);
2615 if (optionset != NULL) {
2617 optionset = NULL;
2648 optionset = (sa_optionset_t)xmlNewChild((xmlNodePtr)group,
2649 NULL, (xmlChar *)"optionset", NULL);
2652 * able to create an optionset.
2654 if (optionset != NULL) {
2670 sa_set_optionset_attr(optionset, "type", proto);
2672 (void) sa_optionset_name(optionset, oname,
2695 return (optionset);
2702 * be an optionset of some type.
2716 * sa_get_optionset_parent(optionset)
2718 * Return the parent of the specified optionset. This could be a group
2723 sa_get_optionset_parent(sa_optionset_t optionset)
2727 if (optionset != NULL)
2728 node = ((xmlNodePtr)optionset)->parent;
2770 * sa_commit_properties(optionset, clear)
2777 sa_commit_properties(sa_optionset_t optionset, int clear)
2786 group = sa_get_optionset_parent(optionset);
2817 * sa_destroy_optionset(optionset)
2819 * Remove the optionset from its group. Update the repository to
2824 sa_destroy_optionset(sa_optionset_t optionset)
2834 group = sa_get_optionset_parent(optionset);
2848 len = sa_optionset_name(optionset, name, sizeof (name), id);
2859 xmlUnlinkNode((xmlNodePtr)optionset);
2860 xmlFreeNode((xmlNodePtr)optionset);
2868 _sa_remove_optionset(sa_optionset_t optionset)
2872 xmlUnlinkNode((xmlNodePtr)optionset);
2873 xmlFreeNode((xmlNodePtr)optionset);
2880 * Create a security optionset (one that has a type name and a
2939 * Remove the specified optionset from the document and the
2988 * sa_get_security_attr(optionset, tag)
2990 * Return the specified attribute value from the optionset.
2994 sa_get_security_attr(sa_property_t optionset, char *tag)
2996 return (get_node_attr((void *)optionset, tag));
3001 * sa_set_security_attr(optionset, tag, value)
3007 sa_set_security_attr(sa_group_t optionset, char *tag, char *value)
3009 set_node_attr((void *)optionset, tag, value);
3058 * sa_set_prop_by_prop(optionset, group, prop, type)
3060 * Add/remove/update the specified property prop into the optionset or
3067 sa_set_prop_by_prop(sa_optionset_t optionset, sa_group_t group,
3075 int opttype; /* 1 == optionset, 0 == security */
3097 opttype = is_nodetype((void *)optionset, "optionset");
3137 (void) sa_optionset_name(optionset,
3140 (void) sa_security_name(optionset,
3306 if (is_nodetype(object, "optionset")) {
3376 sa_optionset_t optionset;
3378 optionset = sa_get_property_parent(property);
3379 if (optionset != NULL) {
3380 group = sa_get_optionset_parent(optionset);
3382 ret = sa_set_prop_by_prop(optionset, group,
3408 sa_optionset_t optionset;
3411 optionset = sa_get_property_parent(property);
3412 if (optionset != NULL) {
3413 group = sa_get_optionset_parent(optionset);
3415 ret = sa_set_prop_by_prop(optionset, group,
3890 sa_optionset_t optionset;
3894 for (optionset = sa_get_optionset(group, NULL);
3895 optionset != NULL;
3896 optionset = sa_get_next_optionset(optionset)) {
3898 type = sa_get_optionset_attr(optionset, "type");
4105 * get_protocol_list(optionset, object)
4107 * Get the protocol optionset list for the object and add them as
4108 * properties to optionset.
4111 get_protocol_list(sa_optionset_t optionset, void *object)
4123 * It is possible to have a non-protocol optionset. We
4131 prop = (sa_property_t)xmlAddChild((xmlNodePtr)optionset,
4143 * sa_free_protoset(optionset)
4145 * Free the protocol property optionset.
4148 sa_free_protoset(sa_optionset_t optionset)
4150 if (optionset != NULL) {
4151 xmlUnlinkNode((xmlNodePtr) optionset);
4152 xmlFreeNode((xmlNodePtr) optionset);
4164 * optionsets creating a new optionset with the protocols as properties.
4166 * The caller must free the returned optionset.
4180 options = (sa_optionset_t)xmlNewNode(NULL, (xmlChar *)"optionset");