c28749e97052f09388969427adf7df641cdcdc22kais * CDDL HEADER START
c28749e97052f09388969427adf7df641cdcdc22kais * The contents of this file are subject to the terms of the
dd49f125507979bb2ab505a8daf2a46d1be27051Anders Persson * Common Development and Distribution License (the "License").
dd49f125507979bb2ab505a8daf2a46d1be27051Anders Persson * You may not use this file except in compliance with the License.
c28749e97052f09388969427adf7df641cdcdc22kais * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
c28749e97052f09388969427adf7df641cdcdc22kais * See the License for the specific language governing permissions
c28749e97052f09388969427adf7df641cdcdc22kais * and limitations under the License.
c28749e97052f09388969427adf7df641cdcdc22kais * When distributing Covered Code, include this CDDL HEADER in each
c28749e97052f09388969427adf7df641cdcdc22kais * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
c28749e97052f09388969427adf7df641cdcdc22kais * If applicable, add the following below this CDDL HEADER, with the
c28749e97052f09388969427adf7df641cdcdc22kais * fields enclosed by brackets "[]" replaced with your own identifying
c28749e97052f09388969427adf7df641cdcdc22kais * information: Portions Copyright [yyyy] [name of copyright owner]
c28749e97052f09388969427adf7df641cdcdc22kais * CDDL HEADER END
dd49f125507979bb2ab505a8daf2a46d1be27051Anders Persson * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
c28749e97052f09388969427adf7df641cdcdc22kais "ksslcfg delete [-v] [<server_address>] <server_port>\n");
c28749e97052f09388969427adf7df641cdcdc22kais ((cp = scf_simple_prop_next_count(sp)) != NULL) && (*cp != 0))
c28749e97052f09388969427adf7df641cdcdc22kais /* incremental wait */
c28749e97052f09388969427adf7df641cdcdc22kais /* Check state after the wait */
c28749e97052f09388969427adf7df641cdcdc22kais (void) fprintf(stderr, gettext("Warning: delete %s timed out.\n"),
c28749e97052f09388969427adf7df641cdcdc22kais if (scf_handle_get_scope(handle, SCF_SCOPE_LOCAL, scope) == -1) {
c28749e97052f09388969427adf7df641cdcdc22kais if (scf_scope_get_service(scope, SERVICE_NAME, svc) < 0) {
c28749e97052f09388969427adf7df641cdcdc22kais "ERROR scf_scope_get_service failed: %s\n",
c28749e97052f09388969427adf7df641cdcdc22kais if (scf_service_get_instance(svc, instance_name, instance) != 0) {
c28749e97052f09388969427adf7df641cdcdc22kais "ERROR scf_scope_get_service failed: %s\n",
c28749e97052f09388969427adf7df641cdcdc22kais if (scf_instance_to_fmri(instance, buf, max_fmri_len + 1) > 0) {
c28749e97052f09388969427adf7df641cdcdc22kais "smf_disable_instance failed: %s\n",
c28749e97052f09388969427adf7df641cdcdc22kais * Wait for some time till timeout to avoid
c28749e97052f09388969427adf7df641cdcdc22kais * a race with scf_instance_delete() below.
c28749e97052f09388969427adf7df641cdcdc22kais "ERROR scf_instance_delete failed: %s\n",
dd49f125507979bb2ab505a8daf2a46d1be27051Anders Persson if (scf_walk_fmri(handle, 1, (char **)&SERVICE_NAME,
dd49f125507979bb2ab505a8daf2a46d1be27051Anders Persson SCF_WALK_MULTIPLE, count_inst_cb, &num_inst, &exit_status,
dd49f125507979bb2ab505a8daf2a46d1be27051Anders Persson * Disable the kssl socket filter if this is the last
dd49f125507979bb2ab505a8daf2a46d1be27051Anders Persson * kssl instance.
dd49f125507979bb2ab505a8daf2a46d1be27051Anders Persson if (smf_disable_instance(KSSL_FILTER_SVC_NAME, 0) != 0)
c28749e97052f09388969427adf7df641cdcdc22kais "Unexpected fatal libscf error: %s. Exiting.\n"),
c28749e97052f09388969427adf7df641cdcdc22kais switch (c) {
c28749e97052f09388969427adf7df641cdcdc22kais "argument too long -- %s\n"),
c28749e97052f09388969427adf7df641cdcdc22kais (void) strcpy(address_port + len + 1, argv[optind + 1]);
c28749e97052f09388969427adf7df641cdcdc22kais "arguments too long -- %s %s\n"),