net_cfg_service.h revision cee0fb94c0d4227de0a00efc162fb2739844b641
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster/*
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster * CDDL HEADER START
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster *
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster * The contents of this file are subject to the terms of the
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster * Common Development and Distribution License (the "License").
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster * You may not use this file except in compliance with the License.
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster *
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster * or http://www.opensolaris.org/os/licensing.
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster * See the License for the specific language governing permissions
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster * and limitations under the License.
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster *
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster * When distributing Covered Code, include this CDDL HEADER in each
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster * If applicable, add the following below this CDDL HEADER, with the
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster * fields enclosed by brackets "[]" replaced with your own identifying
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster * information: Portions Copyright [yyyy] [name of copyright owner]
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster *
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster * CDDL HEADER END
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster *
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster * Use is subject to license terms.
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster */
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster#ifndef _NET_CFG_SERVICE_H
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster#define _NET_CFG_SERVICE_H
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster
a4831b1f93759b10d57c2bf9330660fa7a5030dbJonathan Scudder
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster#ifdef __cplusplus
79943d71bcf8d4933e74f29a1b0e87f8898508cbPeter Majorextern "C" {
505445259010027ce6eb685ea93b8a09aa67fd5dMark de Reeper#endif
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster/* password files */
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster#define MMS_NET_CFG_HELLO_FILE "/etc/mms/passwd/hello"
79943d71bcf8d4933e74f29a1b0e87f8898508cbPeter Major#define MMS_NET_CFG_WELCOME_FILE "/etc/mms/passwd/welcome"
baaed411ab408955d7c976883c7ab76392b85acejeff.schenk#define MMS_NET_CFG_DB_FILE "/etc/mms/passwd/db"
91809f12dede993bae2653ba508592c5488b7494David Luna
91809f12dede993bae2653ba508592c5488b7494David Lunachar *mms_net_cfg_value(char *varname);
91809f12dede993bae2653ba508592c5488b7494David Lunaint mms_net_cfg_service(mms_network_cfg_t *net,
91809f12dede993bae2653ba508592c5488b7494David Luna char *inst, char *lang, char *ver);
91809f12dede993bae2653ba508592c5488b7494David Lunachar *mms_obfpassword(char *password, int ed);
baaed411ab408955d7c976883c7ab76392b85acejeff.schenkint mms_net_cfg_write_pass_file(char *file, char *password);
79943d71bcf8d4933e74f29a1b0e87f8898508cbPeter Majorchar *mms_net_cfg_read_pass_file(char *file);
9dc8647c0f959a39e03951429ba362936f5f7618Robert Wapshott
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster#ifdef __cplusplus
79943d71bcf8d4933e74f29a1b0e87f8898508cbPeter Major}
91809f12dede993bae2653ba508592c5488b7494David Luna#endif
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster#endif /* _NET_CFG_SERVICE_H */
a4831b1f93759b10d57c2bf9330660fa7a5030dbJonathan Scudder