/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2003 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include <libintl.h>
#include <stdio.h>
#include "wanboot_conf.h"
/*
* This function maps an error code (one of those defined in wanboot_conf.h)
* into an error message.
*
* Returns: the error message string.
*/
char *
{
char *errstr;
int chars;
switch (handle->bc_error_code) {
case BC_E_NOERROR:
break;
case BC_E_ACCESS:
break;
case BC_E_NVLIST:
break;
case BC_E_IOERR:
break;
case BC_E_TOO_LONG:
gettext("Line %d of configuration file is too long"),
}
break;
case BC_E_SYNTAX:
gettext("Syntax error on line %d of configuration file"),
}
break;
case BC_E_UNKNOWN_NAME:
gettext("Unknown name on line %d of configuration file"),
}
break;
case BC_E_ENCRYPTION_ILLEGAL:
break;
case BC_E_SIGNATURE_ILLEGAL:
break;
case BC_E_CLIENT_AUTH_ILLEGAL:
break;
case BC_E_SERVER_AUTH_ILLEGAL:
break;
case BC_E_ROOT_SERVER_BAD:
break;
case BC_E_ROOT_SERVER_ABSENT:
break;
case BC_E_ROOT_FILE_ABSENT:
break;
case BC_E_BOOT_LOGGER_BAD:
break;
"signature_type must also be specified");
break;
"encryption_type must also be specified");
break;
"server_authentication must also be \"yes\"");
break;
"signature_type must also be specified");
break;
"root_server must specify a secure URL");
break;
"root_server must not specify a secure URL");
break;
"boot_logger must not specify a secure URL");
break;
default:
gettext("Unknown error %d"),
}
}
return (errstr);
}