/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the 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
* 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 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
extern "C" {
#endif
/* srchcfile messages */
/* pkgtrans messages */
#
define MSG_STORE_ACC "Retrieving signature certificates from <%s>\n"#
define MSG_SIGNING "Generating digital signature for signer <%s>\n"#
define MSG_RENAME "\t... instance renamed <%s> on destination\n"
#
define MSG_CMDFAIL "- process <%s> failed, exit code %d"#
define MSG_POPEN "- popen of <%s> failed, errno=%d"#
define MSG_PCLOSE "- pclose of <%s> failed, errno=%d"#
define MSG_BADDEV "- invalid or unknown device <%s>"#
define MSG_GETVOL "- unable to obtain package volume"#
define MSG_NOSIZE "- unable to obtain maximum part size from pkgmap"#
define MSG_CHDIR "- unable to change directory to <%s>"#
define MSG_SYMLINK "- unable to create symbolic link to <%s> from <%s>"#
define MSG_FSTYP "- unable to determine filesystem type for <%s>"#
define MSG_NOTEMP "- unable to create or use temporary directory <%s>"#
define MSG_SAMEDEV "- source and destination represent the same device"#
define MSG_NOTMPFIL "- unable to create or use temporary file <%s>"#
define MSG_BADPKGINFO "- unable to determine contents of pkginfo file"#
define MSG_NOPKGS "- no packages were selected from <%s>"#
define MSG_MKDIR "- unable to make directory <%s>"#
define MSG_NOEXISTS "- package instance <%s> does not exist on source " \
"device"
#
define MSG_EXISTS "- no permission to overwrite existing path <%s>"#
define MSG_DUPVERS "- identical version of <%s> already exists on " \
"destination device"
#
define MSG_TWODSTREAM "- both source and destination devices cannot be a " \
"datastream"
#
define MSG_OPEN "- open of <%s> failed, errno=%d"
/* security problems */
#
define ERR_PARSE "unable to parse keystore <%s>, invalid " \
"format or corrupt"
#
define ERR_BADPASS "Invalid password. Password does not " \
"decrypt keystore"
#
define MSG_NOPASS "Cannot get passphrase using " \
"retrieval method <%s>"
" than <%s>, keystore <%s> corrupt"
#
define MSG_CHSIGDIR "- unable to change directory to <%s/%s>"#
define ERR_CANTSIGN "- destination device must be datastream in order to" \
" sign contents"
#
define ERR_STORE "unable to find or use store <%s> from application " \
"<%s>:<%s>"
"for reading, try again later"
"access"
"application <%s>"
"writing to <%s>"
"in keystore file <%s>"
"file <%s>"
"file <%s>"
"keystore"
"with alias <%s> in keystore"
"already exists in keystore"
" exists in keystore"
"alias, must be deleted from keystore"
"keystore <%s>"
"<%s> found in keystore <%s>"
#
define ERR_CURR_TIME "Cannot determine current time from system"#
define ERR_CERT_TIME "Certificate <%s> has expired or is not yet valid.\n" \
"Current time: <%s>\n Certificate valid: <%s> - <%s>"
"certificate <%s>"
"cannot process"
"store <%s> from application <%s>:<%s>"
#
define ERR_SEC "unable to sign package contents using <%s> " \
"private key"
#
define ERR_NOGEN "unable to generate digital signature"
#
define ERR_CORRUPTSIG "Invalid or corrupt signature in datastream <%s>" "datastream <%s>"
#
define ERR_SIG_INT "Internal error during signature verification."#
define MSG_VERIFY "## Verifying signature for signer <%s>"#
define ERR_VERIFY "Signature verification failed."#
define ERR_VERIFY_SIG "Signature verification failed while verifying " \
"certificate <subject=%s, issuer=%s>:<%s>."
#
define ERR_OPENSIG "Signature found in datastream but cannot be " \
" opened: <%s>"
#
define ERR_SIGFOUND "signature found in datastream <%s>, you must " \
"specify a keystore with -k"
#
define ERR_DSINIT "could not process datastream from <%s>"
/* parameter errors */
#
define ERR_LEN "length of parameter <%s> value exceeds limit"#
define ERR_ASCII "parameter <%s> must be ascii"#
define ERR_ALNUM "parameter <%s> must be alphanumeric"#
define ERR_CHAR "parameter <%s> has incorrect first character"#
define ERR_UNDEF "parameter <%s> cannot be null"
/* volume sequence errors */
#
define MSG_SEQ "Volume is out of sequence."#
define MSG_CORRUPT "Volume is corrupt or is not part of the appropriate " \
"package."
/* datastream processing errors */
#
define ERR_UNPACK "attempt to process datastream failed"#
define MSG_CMDFAIL "- process <%s> failed, exit code %d"#
define MSG_TOC "- bad format in datastream table-of-contents"#
define MSG_EMPTY "- datastream table-of-contents appears to be empty"#
define MSG_POPEN "- popen of <%s> failed, errno=%d"#
define MSG_OPEN "- open of <%s> failed, errno=%d"#
define MSG_PCLOSE "- pclose of <%s> failed, errno=%d"#
define MSG_PKGNAME "- invalid package name in datastream table-of-contents"#
define MSG_NOPKG "- package <%s> not in datastream"#
define MSG_STATFS "- unable to stat filesystem, errno=%d"#
define MSG_NOSPACE "- not enough space, %ld blocks required, "\
"%lld available"
/* pkglist errors */
#
define ERR_MEMORY "memory allocation failure, errno=%d"#
define ERR_NOPKG "no package associated with <%s>"#
define HEADER "The following packages are available:"#
define HELP "Please enter the package instances you wish to " \
"process from the list provided (or 'all' to process " \
"all packages.)"
#
define PROMPT "Select package(s) you wish to process (or 'all' to " \
"process all packages)."
/* pkgmap errors */
#
define ERR_NOVAR "no value defined for%s variable <%s>."#
define ERR_IMODE "mode must not be parametric at install time."
/* package mount errors and msgs */
#
define ERR_FSTYP "unable to determine fstype for <%s>"#
define ERR_NOTROOT "You must be \"root\" when using mountable media."
#
define LABEL0 "Insert %%v %d of %d for <%s> package into %%p."#
define LABEL1 "Insert %%v %d of %d into %%p."#
define LABEL2 "Insert %%v for <%s> package into %%p."#
define LABEL3 "Insert %%v into %%p."
/* package verify errors */
#
define MSG_WLDDEVNO "NOTE: <%s> created as device (%ld, %ld)."
#
define WRN_QV_SIZE "WARNING: quick verify of <%s>; wrong size."#
define WRN_QV_MTIME "WARNING: quick verify of <%s>; wrong mod time."
#
define ERR_FTYPE "file type <%c> expected <%c> actual"#
define ERR_FTYPED "<%s> is a door and is not being modified"#
define ERR_LINK "pathname not properly linked to <%s>"#
define ERR_SLINK "pathname not symbolically linked to <%s>"#
define ERR_MTIME "modtime <%s> expected <%s> actual"#
define ERR_SIZE "file size <%llu> expected <%llu> actual"#
define ERR_CKSUM "file cksum <%ld> expected <%ld> actual"#
define ERR_NO_CKSUM "unable to checksum, may need to re-run command as " \
"user \"root\""
"expected <%ld, %ld> actual"
#
define ERR_PERM "permissions <%04lo> expected <%04lo> actual"#
define ERR_GROUP "group name <%s> expected <%s> actual"#
define ERR_OWNER "owner name <%s> expected <%s> actual"#
define ERR_LINKISDIR "<%s> is a directory, link() not performed"#
define ERR_CDEVFAIL "unable to create character-special device"#
define ERR_BDEVFAIL "unable to create block-special device"#
define ERR_BADGRPID "unable to determine group name for gid <%d>"#
define ERR_BADUSRID "unable to determine owner name for uid <%d>"#
define ERR_BADGRPNM "group name <%s> not found in group table(s)"#
define ERR_BADUSRNM "owner name <%s> not found in passwd table(s)"#
define ERR_GETWD "unable to determine current working directory"#
define ERR_CHDIR "unable to change current working directory to <%s>"#
define ERR_RMDIR "unable to remove existing directory at <%s>"
/* others */
#
define ERR_BADMEMB "%s: %s in \"%s\" %s structure is invalid.\n"#
define ERR_NOGRP "dup_gr_ent(): no group entry provided.\n"#
define ERR_NOPWD "dup_pw_ent(): no passwd entry provided.\n"#
define ERR_MALLOC "%s: malloc(%d) failed for %s.\n"
"for command <%s>"
"<0x%08x> errno <%d> (%s)"
#
define ERR_FREOPEN "freopen(%s, \"%s\", %s) failed, errno=%d (%s)"#
define ERR_FDOPEN "fdopen(%d, \"%s\") failed, errno=%d (%s)"#
define ERR_CLOSE "close(%d) failed, errno=%d"
/* pkgweb errors */
#
define MSG_DWNLD_PART "\n## Found partially downloaded file <%s> of " \
"size <%ld> bytes. To force a complete " \
"re-download, delete this file and try again"
#
define MSG_DWNLD_PREV "\n## Using previously spooled package datastream <%s>"#
define MSG_DWNLD_CONT "\n## Continuing previously attempted download..."
"for appending"
#
define ERR_EMPTYPATH "No valid path exists for the keystore file."#
define ERR_RETRIES "The number of server retries is not a valid " \
"value. Please specify a value within the range of %d - %d."
#
define ERR_TIMEOUT "The network timeout value is not a valid " \
"value. Please specify a value within the range of %d - %d."
#
define ERR_MEM "unable to allocate memory."#
define ERR_HTTPS_CA "unable to set CA file for HTTPS connection."#
define ERR_HTTP "Failure occurred with http(s) negotiation: <%s>"#
define ERR_WRITE "Cannot write to file <%s> : <%s>"#
define ERR_READ "Cannot read from file <%s> : <%s>"#
define ERR_SVR_RESP "unable to establish a connection with the http(s) server."#
define ERR_INIT_CONN "unable to establish a connection with <%s>."#
define ERR_INIT_SESS "unable to intialize download session for <%s>." "using <%s> as the proxy"
/* CSTYLED */
"unparseable."
"is illegal."
#
define ERR_DWNLD "unable to download package datastream from <%s>."#
define ERR_OPEN_TMP "unable to open temporary file for writing."#
define ERR_DISK_SPACE "Not enough disk space is available to download " \
"package to\n%s. %llukb needed, %llukb available."
#
define ERR_CERTS "unable to find a valid certificate in <%s>."#
define ERR_CERTCHAIN "unable to build certificate chain for subject <%s>:<%s>."#
define ERR_ILL_ENV "The environment variable <%s=%s> is illegal"#
define ERR_TMPDIR "unable to find temporary directory <%s>"#
define ERR_MEM "unable to allocate memory." "certificate <%s> status"
"proxy <%s:%d> for certificate <%s> status"
#
define ERR_OCSP_PARSE "OCSP Responder URL <%s> invalid or unparseable" "<%d>, got <%d>, Reason=<%s>"
"OCSP response."
"expecting <%s>"
#
define ERR_OCSP_SEND "Cannot send OCSP request to OCSP Responder <%s>"#
define ERR_OCSP_READ "Cannot read OCSP response from OCSP Responder <%s>" "OCSP Response validity"
"verified: <%s>"
"Responder <%s>"
"of certificate <%s> "
"after <%s>. Current time is <%s>."
"to <%s>. Current time is <%s>."
"status is <%s>"
#
define ERR_OCSP_VERIFY "OCSP Responder rejected certificate, or did not " \
"recognize"
#
define MSG_BASE_USED "Using <%s> as the package base directory."
}
#endif
#endif /* _PKGLIBMSGS_H */