Lines Matching defs:optionset

702 	else if (xmlStrcmp(node->name, (xmlChar *)"optionset") == 0)
712 * sa_optionset_name(optionset, oname, len, id)
713 * return the SMF name for the optionset. If id is not NULL, it
715 * instead of the keyword "optionset" which is used for
716 * groups. If the optionset doesn't have a protocol type
724 sa_optionset_name(sa_optionset_t optionset, char *oname, size_t len, char *id)
731 id = "optionset";
733 parent = sa_get_optionset_parent(optionset);
736 proto = sa_get_optionset_attr(optionset, "type");
761 * sa_security_name(optionset, oname, len, id)
765 * keyword "optionset" which is used for groups. If the optionset
780 id = "optionset";
1405 sa_optionset_t optionset;
1410 for (optionset = sa_get_optionset(group, NULL);
1411 optionset != NULL;
1412 optionset = sa_get_next_optionset(optionset)) {
1415 value = sa_get_optionset_attr(optionset, "type");
1442 sa_optionset_t optionset;
1445 for (optionset = sa_get_optionset(group, NULL);
1446 optionset != NULL;
1447 optionset = sa_get_next_optionset(optionset)) {
1449 value = sa_get_optionset_attr(optionset, "type");
1633 sa_optionset_t optionset;
1637 for (optionset = sa_get_optionset(group, NULL);
1638 optionset != NULL;
1639 optionset = sa_get_next_optionset(optionset)) {
1641 proto = sa_get_optionset_attr(optionset,
1682 sa_optionset_t optionset;
1687 for (optionset = sa_get_optionset(group, NULL);
1688 optionset != NULL;
1689 optionset = sa_get_next_optionset(optionset)) {
1692 proto = sa_get_optionset_attr(optionset, "type");
2270 sa_get_optionset_attr(sa_property_t optionset, char *tag)
2272 return (get_node_attr((void *)optionset, tag));
2277 * sa_set_optionset_attr(optionset, tag, value)
2280 * optionset.
2284 sa_set_optionset_attr(sa_group_t optionset, char *tag, char *value)
2286 set_node_attr((void *)optionset, tag, value);
2305 * Return the optionset, if it exists, that is associated with the
2317 if (xmlStrcmp(node->name, (xmlChar *)"optionset") == 0) {
2339 * sa_get_next_optionset(optionset)
2341 * Return the next optionset in the group. NULL if this was the last.
2345 sa_get_next_optionset(sa_optionset_t optionset)
2349 for (node = ((xmlNodePtr)optionset)->next; node != NULL;
2351 if (xmlStrcmp(node->name, (xmlChar *)"optionset") == 0) {
2361 * Return the security optionset. The internal name is a hold over
2363 * finalized. This is really a named optionset that can be negotiated
2415 * Get the next security optionset if one exists.
2433 * sa_get_property(optionset, prop)
2436 * optionset.
2440 sa_get_property(sa_optionset_t optionset, char *prop)
2442 xmlNodePtr node = (xmlNodePtr)optionset;
2445 if (optionset == NULL)
2602 * Create an optionset for the specified protocol in the specied
2609 sa_optionset_t optionset;
2615 optionset = sa_get_optionset(group, proto);
2616 if (optionset != NULL) {
2618 optionset = NULL;
2649 optionset = (sa_optionset_t)xmlNewChild((xmlNodePtr)group,
2650 NULL, (xmlChar *)"optionset", NULL);
2653 * able to create an optionset.
2655 if (optionset != NULL) {
2671 sa_set_optionset_attr(optionset, "type", proto);
2673 (void) sa_optionset_name(optionset, oname,
2696 return (optionset);
2703 * be an optionset of some type.
2717 * sa_get_optionset_parent(optionset)
2719 * Return the parent of the specified optionset. This could be a group
2724 sa_get_optionset_parent(sa_optionset_t optionset)
2728 if (optionset != NULL)
2729 node = ((xmlNodePtr)optionset)->parent;
2771 * sa_commit_properties(optionset, clear)
2778 sa_commit_properties(sa_optionset_t optionset, int clear)
2787 group = sa_get_optionset_parent(optionset);
2818 * sa_destroy_optionset(optionset)
2820 * Remove the optionset from its group. Update the repository to
2825 sa_destroy_optionset(sa_optionset_t optionset)
2835 group = sa_get_optionset_parent(optionset);
2849 len = sa_optionset_name(optionset, name, sizeof (name), id);
2860 xmlUnlinkNode((xmlNodePtr)optionset);
2861 xmlFreeNode((xmlNodePtr)optionset);
2869 _sa_remove_optionset(sa_optionset_t optionset)
2873 xmlUnlinkNode((xmlNodePtr)optionset);
2874 xmlFreeNode((xmlNodePtr)optionset);
2881 * Create a security optionset (one that has a type name and a
2940 * Remove the specified optionset from the document and the
2989 * sa_get_security_attr(optionset, tag)
2991 * Return the specified attribute value from the optionset.
2995 sa_get_security_attr(sa_property_t optionset, char *tag)
2997 return (get_node_attr((void *)optionset, tag));
3002 * sa_set_security_attr(optionset, tag, value)
3008 sa_set_security_attr(sa_group_t optionset, char *tag, char *value)
3010 set_node_attr((void *)optionset, tag, value);
3059 * sa_set_prop_by_prop(optionset, group, prop, type)
3061 * Add/remove/update the specified property prop into the optionset or
3068 sa_set_prop_by_prop(sa_optionset_t optionset, sa_group_t group,
3076 int opttype; /* 1 == optionset, 0 == security */
3098 opttype = is_nodetype((void *)optionset, "optionset");
3138 (void) sa_optionset_name(optionset,
3141 (void) sa_security_name(optionset,
3307 if (is_nodetype(object, "optionset")) {
3377 sa_optionset_t optionset;
3379 optionset = sa_get_property_parent(property);
3380 if (optionset != NULL) {
3381 group = sa_get_optionset_parent(optionset);
3383 ret = sa_set_prop_by_prop(optionset, group,
3409 sa_optionset_t optionset;
3412 optionset = sa_get_property_parent(property);
3413 if (optionset != NULL) {
3414 group = sa_get_optionset_parent(optionset);
3416 ret = sa_set_prop_by_prop(optionset, group,
3891 sa_optionset_t optionset;
3895 for (optionset = sa_get_optionset(group, NULL);
3896 optionset != NULL;
3897 optionset = sa_get_next_optionset(optionset)) {
3899 type = sa_get_optionset_attr(optionset, "type");
4106 * get_protocol_list(optionset, object)
4108 * Get the protocol optionset list for the object and add them as
4109 * properties to optionset.
4112 get_protocol_list(sa_optionset_t optionset, void *object)
4124 * It is possible to have a non-protocol optionset. We
4132 prop = (sa_property_t)xmlAddChild((xmlNodePtr)optionset,
4144 * sa_free_protoset(optionset)
4146 * Free the protocol property optionset.
4149 sa_free_protoset(sa_optionset_t optionset)
4151 if (optionset != NULL) {
4152 xmlUnlinkNode((xmlNodePtr) optionset);
4153 xmlFreeNode((xmlNodePtr) optionset);
4165 * optionsets creating a new optionset with the protocols as properties.
4167 * The caller must free the returned optionset.
4181 options = (sa_optionset_t)xmlNewNode(NULL, (xmlChar *)"optionset");