xref: /titanic_44/usr/src/lib/libpkg/common/pkglibmsgs.h (revision 5c51f1241dbbdf2656d0e10011981411ed0c9673)
1*5c51f124SMoriah Waterland /*
2*5c51f124SMoriah Waterland  * CDDL HEADER START
3*5c51f124SMoriah Waterland  *
4*5c51f124SMoriah Waterland  * The contents of this file are subject to the terms of the
5*5c51f124SMoriah Waterland  * Common Development and Distribution License (the "License").
6*5c51f124SMoriah Waterland  * You may not use this file except in compliance with the License.
7*5c51f124SMoriah Waterland  *
8*5c51f124SMoriah Waterland  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*5c51f124SMoriah Waterland  * or http://www.opensolaris.org/os/licensing.
10*5c51f124SMoriah Waterland  * See the License for the specific language governing permissions
11*5c51f124SMoriah Waterland  * and limitations under the License.
12*5c51f124SMoriah Waterland  *
13*5c51f124SMoriah Waterland  * When distributing Covered Code, include this CDDL HEADER in each
14*5c51f124SMoriah Waterland  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*5c51f124SMoriah Waterland  * If applicable, add the following below this CDDL HEADER, with the
16*5c51f124SMoriah Waterland  * fields enclosed by brackets "[]" replaced with your own identifying
17*5c51f124SMoriah Waterland  * information: Portions Copyright [yyyy] [name of copyright owner]
18*5c51f124SMoriah Waterland  *
19*5c51f124SMoriah Waterland  * CDDL HEADER END
20*5c51f124SMoriah Waterland  */
21*5c51f124SMoriah Waterland 
22*5c51f124SMoriah Waterland /*
23*5c51f124SMoriah Waterland  * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
24*5c51f124SMoriah Waterland  * Use is subject to license terms.
25*5c51f124SMoriah Waterland  */
26*5c51f124SMoriah Waterland 
27*5c51f124SMoriah Waterland #ifndef _PKGLIBMSGS_H
28*5c51f124SMoriah Waterland #define	_PKGLIBMSGS_H
29*5c51f124SMoriah Waterland 
30*5c51f124SMoriah Waterland 
31*5c51f124SMoriah Waterland #ifdef __cplusplus
32*5c51f124SMoriah Waterland extern "C" {
33*5c51f124SMoriah Waterland #endif
34*5c51f124SMoriah Waterland 
35*5c51f124SMoriah Waterland /* srchcfile messages */
36*5c51f124SMoriah Waterland #define	ERR_MISSING_NEWLINE	"missing newline at end of entry"
37*5c51f124SMoriah Waterland #define	ERR_ILLEGAL_SEARCH_PATH	"illegal search path specified"
38*5c51f124SMoriah Waterland #define	ERR_CANNOT_READ_MM_NUMS	"unable to read major/minor device numbers"
39*5c51f124SMoriah Waterland #define	ERR_INCOMPLETE_ENTRY	"incomplete entry"
40*5c51f124SMoriah Waterland #define	ERR_VOLUMENO_UNEXPECTED	"volume number not expected"
41*5c51f124SMoriah Waterland #define	ERR_FTYPE_I_UNEXPECTED	"ftype <i> not expected"
42*5c51f124SMoriah Waterland #define	ERR_CANNOT_READ_CLASS_TOKEN	"unable to read class token"
43*5c51f124SMoriah Waterland #define	ERR_CANNOT_READ_PATHNAME_FLD	"unable to read pathname field"
44*5c51f124SMoriah Waterland #define	ERR_UNKNOWN_FTYPE	"unknown ftype"
45*5c51f124SMoriah Waterland #define	ERR_CANNOT_READ_LL_PATH	"unable to read local/link path"
46*5c51f124SMoriah Waterland #define	ERR_INCOMPLETE_ENTRY	"incomplete entry"
47*5c51f124SMoriah Waterland #define	ERR_NO_LINK_SOURCE_SPECIFIED	"no link source specified"
48*5c51f124SMoriah Waterland #define	ERR_CANNOT_READ_MOG	"unable to read mode/owner/group"
49*5c51f124SMoriah Waterland #define	ERR_CANNOT_READ_CONTENT_INFO	"unable to read content info"
50*5c51f124SMoriah Waterland #define	ERR_PACKAGE_NAME_TOO_LONG	"package name too long"
51*5c51f124SMoriah Waterland #define	ERR_NO_MEMORY	"no memory for package information"
52*5c51f124SMoriah Waterland #define	ERR_BAD_ENTRY_END	"bad end of entry"
53*5c51f124SMoriah Waterland #define	ERR_EXTRA_TOKENS	"extra token(s) on input line"
54*5c51f124SMoriah Waterland 
55*5c51f124SMoriah Waterland /* pkgtrans messages */
56*5c51f124SMoriah Waterland #define	MSG_TRANSFER	"Transferring <%s> package instance\n"
57*5c51f124SMoriah Waterland #define	MSG_STORE_ACC	"Retrieving signature certificates from <%s>\n"
58*5c51f124SMoriah Waterland #define	MSG_SIGNING	"Generating digital signature for signer <%s>\n"
59*5c51f124SMoriah Waterland #define	MSG_RENAME 	"\t... instance renamed <%s> on destination\n"
60*5c51f124SMoriah Waterland 
61*5c51f124SMoriah Waterland #define	ERR_TRANSFER	"unable to complete package transfer"
62*5c51f124SMoriah Waterland #define	MSG_SEQUENCE	"- volume is out of sequence"
63*5c51f124SMoriah Waterland #define	MSG_MEM		"- no memory"
64*5c51f124SMoriah Waterland #define	MSG_CMDFAIL	"- process <%s> failed, exit code %d"
65*5c51f124SMoriah Waterland #define	MSG_POPEN	"- popen of <%s> failed, errno=%d"
66*5c51f124SMoriah Waterland #define	MSG_PCLOSE	"- pclose of <%s> failed, errno=%d"
67*5c51f124SMoriah Waterland #define	MSG_BADDEV	"- invalid or unknown device <%s>"
68*5c51f124SMoriah Waterland #define	MSG_GETVOL	"- unable to obtain package volume"
69*5c51f124SMoriah Waterland #define	MSG_NOSIZE 	"- unable to obtain maximum part size from pkgmap"
70*5c51f124SMoriah Waterland #define	MSG_CHDIR	"- unable to change directory to <%s>"
71*5c51f124SMoriah Waterland #define	MSG_SYMLINK	"- unable to create symbolic link to <%s> from <%s>"
72*5c51f124SMoriah Waterland #define	MSG_STATDIR	"- unable to stat <%s>"
73*5c51f124SMoriah Waterland #define	MSG_CHOWNDIR	"- unable to chown <%s>"
74*5c51f124SMoriah Waterland #define	MSG_CHMODDIR	"- unable to chmod <%s>"
75*5c51f124SMoriah Waterland #define	MSG_FSTYP	"- unable to determine filesystem type for <%s>"
76*5c51f124SMoriah Waterland #define	MSG_NOTEMP	"- unable to create or use temporary directory <%s>"
77*5c51f124SMoriah Waterland #define	MSG_SAMEDEV	"- source and destination represent the same device"
78*5c51f124SMoriah Waterland #define	MSG_NOTMPFIL	"- unable to create or use temporary file <%s>"
79*5c51f124SMoriah Waterland #define	MSG_NOPKGMAP	"- unable to open pkgmap for <%s>"
80*5c51f124SMoriah Waterland #define	MSG_BADPKGINFO	"- unable to determine contents of pkginfo file"
81*5c51f124SMoriah Waterland #define	MSG_NOPKGS	"- no packages were selected from <%s>"
82*5c51f124SMoriah Waterland #define	MSG_MKDIR	"- unable to make directory <%s>"
83*5c51f124SMoriah Waterland #define	MSG_NOEXISTS	"- package instance <%s> does not exist on source " \
84*5c51f124SMoriah Waterland 			"device"
85*5c51f124SMoriah Waterland #define	MSG_EXISTS	"- no permission to overwrite existing path <%s>"
86*5c51f124SMoriah Waterland #define	MSG_DUPVERS	"- identical version of <%s> already exists on " \
87*5c51f124SMoriah Waterland 			"destination device"
88*5c51f124SMoriah Waterland #define	MSG_TWODSTREAM	"- both source and destination devices cannot be a " \
89*5c51f124SMoriah Waterland 			"datastream"
90*5c51f124SMoriah Waterland #define	MSG_OPEN	"- open of <%s> failed, errno=%d"
91*5c51f124SMoriah Waterland #define	MSG_STATVFS	"- statvfs(%s) failed, errno=%d"
92*5c51f124SMoriah Waterland 
93*5c51f124SMoriah Waterland /* security problems */
94*5c51f124SMoriah Waterland #define	ERR_PARSE		"unable to parse keystore <%s>, invalid " \
95*5c51f124SMoriah Waterland 				"format or corrupt"
96*5c51f124SMoriah Waterland #define	ERR_BADPASS		"Invalid password.  Password does not " \
97*5c51f124SMoriah Waterland 				"decrypt keystore"
98*5c51f124SMoriah Waterland 
99*5c51f124SMoriah Waterland #define	MSG_PASSWD_FILE		"Password file <%s> cannot be read"
100*5c51f124SMoriah Waterland #define	MSG_PASSWD_AGAIN	"For Verification"
101*5c51f124SMoriah Waterland #define	MSG_PASSWD_NOMATCH	"Passwords do not match"
102*5c51f124SMoriah Waterland #define	MSG_BADPASSARG		"Password retrieval method <%s> invalid"
103*5c51f124SMoriah Waterland #define	MSG_NOPASS		"Cannot get passphrase using " \
104*5c51f124SMoriah Waterland 				"retrieval method <%s>"
105*5c51f124SMoriah Waterland 
106*5c51f124SMoriah Waterland #define	ERR_MISMATCHPASS	"<%s> encrypted with different password " \
107*5c51f124SMoriah Waterland 				" than <%s>, keystore <%s> corrupt"
108*5c51f124SMoriah Waterland 
109*5c51f124SMoriah Waterland #define	MSG_CHSIGDIR	"- unable to change directory to <%s/%s>"
110*5c51f124SMoriah Waterland #define	MSG_MKSIGDIR	"- unable to make directory <%s/%s>"
111*5c51f124SMoriah Waterland #define	ERR_CANTSIGN	"- destination device must be datastream in order to" \
112*5c51f124SMoriah Waterland 			" sign contents"
113*5c51f124SMoriah Waterland #define	ERR_STORE	"unable to find or use store <%s> from application " \
114*5c51f124SMoriah Waterland 			"<%s>:<%s>"
115*5c51f124SMoriah Waterland 
116*5c51f124SMoriah Waterland #define	ERR_NO_KEYSTORE	"unable to open keystore <%s> for reading"
117*5c51f124SMoriah Waterland #define	ERR_NOT_REG	"<%s> is not a regular file"
118*5c51f124SMoriah Waterland #define	ERR_KEYSTORE_CORRUPT	"Keystore file <%s> is corrupt or unparseable"
119*5c51f124SMoriah Waterland #define	ERR_KEYSTORE_REPAIR	"unable to repair keystore <%s>"
120*5c51f124SMoriah Waterland #define	ERR_KEYSTORE_LOCKED_READ	"unable to lock keystore file <%s> " \
121*5c51f124SMoriah Waterland 					"for reading, try again later"
122*5c51f124SMoriah Waterland #define	ERR_KEYSTORE_LOCKED	"unable to lock keystore <%s> for exclusive " \
123*5c51f124SMoriah Waterland 				"access"
124*5c51f124SMoriah Waterland #define	ERR_KEYSTORE_UNLOCK	"unable to unlock keystore <%s> for " \
125*5c51f124SMoriah Waterland 				"application <%s>"
126*5c51f124SMoriah Waterland #define	ERR_KEYSTORE_WRITE	"unable to open keystore <%s> for writing"
127*5c51f124SMoriah Waterland #define	ERR_KEYSTORE_REMOVE	"unable to delete keystore file <%s>"
128*5c51f124SMoriah Waterland #define	ERR_KEYSTORE_READ	"unable to open keystore <%s> for reading"
129*5c51f124SMoriah Waterland #define	ERR_KEYSTORE_OPEN	"unable to open keystore <%s>:<%s>"
130*5c51f124SMoriah Waterland #define	ERR_KEYSTORE_FORM	"unable to form PKCS12 keystore file for " \
131*5c51f124SMoriah Waterland 				"writing to <%s>"
132*5c51f124SMoriah Waterland 
133*5c51f124SMoriah Waterland #define	ERR_KEYSTORE_NOPUBCERTS	"unable to find any public key certificates " \
134*5c51f124SMoriah Waterland 				"in keystore file <%s>"
135*5c51f124SMoriah Waterland 
136*5c51f124SMoriah Waterland #define	ERR_KEYSTORE_NOPRIVKEYS	"unable to find any private keys in keystore "\
137*5c51f124SMoriah Waterland 				"file <%s>"
138*5c51f124SMoriah Waterland 
139*5c51f124SMoriah Waterland #define	ERR_KEYSTORE_NOCACERTS	"unable to find any trusted certificates in "\
140*5c51f124SMoriah Waterland 				"file <%s>"
141*5c51f124SMoriah Waterland 
142*5c51f124SMoriah Waterland #define	ERR_KEYSTORE_NOTRUST	"unable to find any trusted certificates in "\
143*5c51f124SMoriah Waterland 				"keystore"
144*5c51f124SMoriah Waterland 
145*5c51f124SMoriah Waterland #define	ERR_KEYSTORE_NOMATCH	"unable to find certificate and key pair " \
146*5c51f124SMoriah Waterland 				"with alias <%s> in keystore"
147*5c51f124SMoriah Waterland 
148*5c51f124SMoriah Waterland #define	ERR_KEYSTORE_DUPLICATECERT	"Certificate with alias <%s> " \
149*5c51f124SMoriah Waterland 					"already exists in keystore"
150*5c51f124SMoriah Waterland #define	ERR_KEYSTORE_DUPLICATEKEY	"Private key with alias <%s> already" \
151*5c51f124SMoriah Waterland 					" exists in keystore"
152*5c51f124SMoriah Waterland #define	ERR_KEYSTORE_NO_ALIAS	"Keystore certificate <%s> has no recorded " \
153*5c51f124SMoriah Waterland 				"alias, must be deleted from keystore"
154*5c51f124SMoriah Waterland #define	ERR_KEYSTORE_NOCERT	"No certificate with alias <%s> found in " \
155*5c51f124SMoriah Waterland 				"keystore <%s>"
156*5c51f124SMoriah Waterland #define	ERR_KEYSTORE_NOCERTKEY	"No certificates or private keys with alias " \
157*5c51f124SMoriah Waterland 				"<%s> found in keystore <%s>"
158*5c51f124SMoriah Waterland 
159*5c51f124SMoriah Waterland #define	ERR_KEYSTORE_INTERNAL	"Internal Error file %s line %d"
160*5c51f124SMoriah Waterland 
161*5c51f124SMoriah Waterland #define	ERR_CURR_TIME	"Cannot determine current time from system"
162*5c51f124SMoriah Waterland #define	ERR_CERT_TIME	"Certificate <%s> has expired or is not yet valid.\n" \
163*5c51f124SMoriah Waterland 			"Current time: <%s>\n  Certificate valid: <%s> - <%s>"
164*5c51f124SMoriah Waterland #define	ERR_MISMATCHED_KEYS	"Private key does not match public key in " \
165*5c51f124SMoriah Waterland 			"certificate <%s>"
166*5c51f124SMoriah Waterland #define	ERR_CERT_TIME_BAD	"Certificate has corrupt validity dates, " \
167*5c51f124SMoriah Waterland 				"cannot process"
168*5c51f124SMoriah Waterland #define	ERR_TRUSTSTORE	"unable to find or use trusted certificate " \
169*5c51f124SMoriah Waterland 			"store <%s> from application <%s>:<%s>"
170*5c51f124SMoriah Waterland 
171*5c51f124SMoriah Waterland #define	ERR_STORE_PW	"unable to read password from <%s>"
172*5c51f124SMoriah Waterland 
173*5c51f124SMoriah Waterland #define	ERR_SEC		"unable to sign package contents using <%s> " \
174*5c51f124SMoriah Waterland 			"private key"
175*5c51f124SMoriah Waterland 
176*5c51f124SMoriah Waterland #define	ERR_NOGEN	"unable to generate digital signature"
177*5c51f124SMoriah Waterland 
178*5c51f124SMoriah Waterland #define	ERR_STORE_PW	"unable to read password from <%s>"
179*5c51f124SMoriah Waterland #define	ERR_CORRUPTSIG  "Invalid or corrupt signature in datastream <%s>"
180*5c51f124SMoriah Waterland #define	ERR_CORRUPTSIG_TYPE  "Wrong PKCS7 signature type in datastream <%s>"
181*5c51f124SMoriah Waterland #define	ERR_CORRUPTSIG_DT   "Signature found but not detached in " \
182*5c51f124SMoriah Waterland 	"datastream <%s>"
183*5c51f124SMoriah Waterland #define	ERR_KEYSTORE	"invalid or corrupt PKCS12 file <%s>."
184*5c51f124SMoriah Waterland #define	ERR_KEYSTORE_NOCERTS "Store <%s> contains no certificates"
185*5c51f124SMoriah Waterland #define	ERR_KEYSTORE_NOKEYS "Store <%s> contains no private keys"
186*5c51f124SMoriah Waterland #define	ERR_SIG_INT "Internal error during signature verification."
187*5c51f124SMoriah Waterland #define	MSG_VERIFY  "## Verifying signature for signer <%s>"
188*5c51f124SMoriah Waterland #define	MSG_VERIFY_OK  "## Signature for signer <%s> verified."
189*5c51f124SMoriah Waterland #define	ERR_VERIFY  "Signature verification failed."
190*5c51f124SMoriah Waterland #define	ERR_VERIFY_SIG  "Signature verification failed while verifying " \
191*5c51f124SMoriah Waterland 			"certificate <subject=%s, issuer=%s>:<%s>."
192*5c51f124SMoriah Waterland #define	ERR_VERIFY_ISSUER  "Could not find issuer certificate for signer <%s>"
193*5c51f124SMoriah Waterland #define	ERR_OPENSIG	"Signature found in datastream but cannot be " \
194*5c51f124SMoriah Waterland 			" opened: <%s>"
195*5c51f124SMoriah Waterland 
196*5c51f124SMoriah Waterland #define	ERR_SIGFOUND	"signature found in datastream <%s>, you must " \
197*5c51f124SMoriah Waterland 	"specify a keystore with -k"
198*5c51f124SMoriah Waterland #define	ERR_DSINIT  "could not process datastream from <%s>"
199*5c51f124SMoriah Waterland 
200*5c51f124SMoriah Waterland #define	MSG_KEYSTORE_AL	"Keystore Alias"
201*5c51f124SMoriah Waterland #define	MSG_KEYSTORE_SN	"Serial Number"
202*5c51f124SMoriah Waterland #define	MSG_KEYSTORE_FP	"Fingerprint"
203*5c51f124SMoriah Waterland #define	MSG_KEYSTORE_CN	"Common Name"
204*5c51f124SMoriah Waterland #define	MSG_KEYSTORE_IN "Issuer Common Name"
205*5c51f124SMoriah Waterland #define	MSG_KEYSTORE_VD	"Validity Dates"
206*5c51f124SMoriah Waterland #define	MSG_KEYSTORE_TY	"Certificate Type"
207*5c51f124SMoriah Waterland #define	MSG_KEYSTORE_TRUSTED	"Trusted Certificate"
208*5c51f124SMoriah Waterland #define	MSG_KEYSTORE_UNTRUSTED	"Signing Certificate"
209*5c51f124SMoriah Waterland #define	MSG_KEYSTORE_UNKNOWN	"Unknown"
210*5c51f124SMoriah Waterland 
211*5c51f124SMoriah Waterland /* parameter errors */
212*5c51f124SMoriah Waterland #define	ERR_LEN		"length of parameter value <%s> exceeds limit"
213*5c51f124SMoriah Waterland #define	ERR_ASCII	"parameter <%s> must be ascii"
214*5c51f124SMoriah Waterland #define	ERR_ALNUM	"parameter <%s> must be alphanumeric"
215*5c51f124SMoriah Waterland #define	ERR_CHAR	"parameter <%s> has incorrect first character"
216*5c51f124SMoriah Waterland #define	ERR_UNDEF	"parameter <%s> cannot be null"
217*5c51f124SMoriah Waterland 
218*5c51f124SMoriah Waterland /* volume sequence errors */
219*5c51f124SMoriah Waterland #define	MSG_SEQ		"Volume is out of sequence."
220*5c51f124SMoriah Waterland #define	MSG_CORRUPT	"Volume is corrupt or is not part of the appropriate " \
221*5c51f124SMoriah Waterland 			"package."
222*5c51f124SMoriah Waterland #define	ERR_NOPKGMAP	"ERROR: unable to process <%s>"
223*5c51f124SMoriah Waterland #define	ERR_BADPKGINFO	"ERROR: unable to process <%s>"
224*5c51f124SMoriah Waterland 
225*5c51f124SMoriah Waterland /* datastream processing errors */
226*5c51f124SMoriah Waterland #define	ERR_UNPACK	"attempt to process datastream failed"
227*5c51f124SMoriah Waterland #define	ERR_DSTREAMSEQ	"datastream sequence corruption"
228*5c51f124SMoriah Waterland #define	ERR_TRANSFER    "unable to complete package transfer"
229*5c51f124SMoriah Waterland #define	MSG_CMDFAIL	"- process <%s> failed, exit code %d"
230*5c51f124SMoriah Waterland #define	MSG_TOC		"- bad format in datastream table-of-contents"
231*5c51f124SMoriah Waterland #define	MSG_EMPTY	"- datastream table-of-contents appears to be empty"
232*5c51f124SMoriah Waterland #define	MSG_POPEN	"- popen of <%s> failed, errno=%d"
233*5c51f124SMoriah Waterland #define	MSG_OPEN	"- open of <%s> failed, errno=%d"
234*5c51f124SMoriah Waterland #define	MSG_PCLOSE	"- pclose of <%s> failed, errno=%d"
235*5c51f124SMoriah Waterland #define	MSG_PKGNAME	"- invalid package name in datastream table-of-contents"
236*5c51f124SMoriah Waterland #define	MSG_NOPKG	"- package <%s> not in datastream"
237*5c51f124SMoriah Waterland #define	MSG_STATFS	"- unable to stat filesystem, errno=%d"
238*5c51f124SMoriah Waterland #define	MSG_NOSPACE	"- not enough space, %d blocks required, %d available"
239*5c51f124SMoriah Waterland 
240*5c51f124SMoriah Waterland /* pkglist errors */
241*5c51f124SMoriah Waterland #define	ERR_MEMORY	"memory allocation failure, errno=%d"
242*5c51f124SMoriah Waterland #define	ERR_NOPKG	"no package associated with <%s>"
243*5c51f124SMoriah Waterland #define	HEADER		"The following packages are available:"
244*5c51f124SMoriah Waterland #define	HELP		"Please enter the package instances you wish to " \
245*5c51f124SMoriah Waterland 			"process from the list provided (or 'all' to process " \
246*5c51f124SMoriah Waterland 			"all packages.)"
247*5c51f124SMoriah Waterland 
248*5c51f124SMoriah Waterland #define	PROMPT		"Select package(s) you wish to process (or 'all' to " \
249*5c51f124SMoriah Waterland 			"process all packages)."
250*5c51f124SMoriah Waterland /* pkgmap errors */
251*5c51f124SMoriah Waterland #define	ERR_READLINK	"unable to read link specification."
252*5c51f124SMoriah Waterland #define	ERR_NOVAR	"no value defined for%s variable <%s>."
253*5c51f124SMoriah Waterland #define	ERR_OWNTOOLONG	"owner string is too long."
254*5c51f124SMoriah Waterland #define	ERR_GRPTOOLONG	"group string is too long."
255*5c51f124SMoriah Waterland #define	ERR_IMODE	"mode must not be parametric at install time."
256*5c51f124SMoriah Waterland #define	ERR_BASEINVAL	"invalid base for mode."
257*5c51f124SMoriah Waterland #define	ERR_MODELONG	"mode string is too long."
258*5c51f124SMoriah Waterland #define	ERR_MODEALPHA	"mode is not numeric."
259*5c51f124SMoriah Waterland #define	ERR_MODEBITS	"invalid bits set in mode."
260*5c51f124SMoriah Waterland 
261*5c51f124SMoriah Waterland /* package mount errors and msgs */
262*5c51f124SMoriah Waterland #define	ERR_FSTYP	"unable to determine fstype for <%s>"
263*5c51f124SMoriah Waterland #define	ERR_NOTROOT	"You must be \"root\" when using mountable media."
264*5c51f124SMoriah Waterland #define	MOUNT		"/sbin/mount"
265*5c51f124SMoriah Waterland #define	UMOUNT		"/sbin/umount"
266*5c51f124SMoriah Waterland #define	FSTYP		"/usr/sbin/fstyp"
267*5c51f124SMoriah Waterland 
268*5c51f124SMoriah Waterland #define	LABEL0	"Insert %%v %d of %d for <%s> package into %%p."
269*5c51f124SMoriah Waterland #define	LABEL1	"Insert %%v %d of %d into %%p."
270*5c51f124SMoriah Waterland #define	LABEL2	"Insert %%v for <%s> package into %%p."
271*5c51f124SMoriah Waterland #define	LABEL3	"Insert %%v into %%p."
272*5c51f124SMoriah Waterland 
273*5c51f124SMoriah Waterland /* package verify errors */
274*5c51f124SMoriah Waterland #define	MSG_WLDDEVNO	"NOTE: <%s> created as device (%d, %d)."
275*5c51f124SMoriah Waterland 
276*5c51f124SMoriah Waterland #define	WRN_QV_SIZE	"WARNING: quick verify of <%s>; wrong size."
277*5c51f124SMoriah Waterland #define	WRN_QV_MTIME	"WARNING: quick verify of <%s>; wrong mod time."
278*5c51f124SMoriah Waterland 
279*5c51f124SMoriah Waterland #define	ERR_PKG_INTERNAL "Internal package library failure file %s line %d"
280*5c51f124SMoriah Waterland #define	ERR_UNKNOWN	"unable to determine object type"
281*5c51f124SMoriah Waterland #define	ERR_EXIST	"pathname does not exist"
282*5c51f124SMoriah Waterland #define	ERR_FTYPE	"file type <%c> expected <%c> actual"
283*5c51f124SMoriah Waterland #define	ERR_FTYPED	"<%s> is a door and is not being modified"
284*5c51f124SMoriah Waterland #define	ERR_LINK	"pathname not properly linked to <%s>"
285*5c51f124SMoriah Waterland #define	ERR_SLINK	"pathname not symbolically linked to <%s>"
286*5c51f124SMoriah Waterland #define	ERR_MTIME	"modtime <%s> expected <%s> actual"
287*5c51f124SMoriah Waterland #define	ERR_SIZE	"file size <%llu> expected <%llu> actual"
288*5c51f124SMoriah Waterland #define	ERR_CKSUM	"file cksum <%ld> expected <%ld> actual"
289*5c51f124SMoriah Waterland #define	ERR_NO_CKSUM	"unable to checksum, may need to re-run command as " \
290*5c51f124SMoriah Waterland 			"user \"root\""
291*5c51f124SMoriah Waterland #define	ERR_MAJMIN	"major/minor device <%d, %d> expected <%d, %d> actual"
292*5c51f124SMoriah Waterland #define	ERR_PERM	"permissions <%04o> expected <%04o> actual"
293*5c51f124SMoriah Waterland #define	ERR_GROUP	"group name <%s> expected <%s> actual"
294*5c51f124SMoriah Waterland #define	ERR_OWNER	"owner name <%s> expected <%s> actual"
295*5c51f124SMoriah Waterland #define	ERR_MODFAIL	"unable to fix modification time"
296*5c51f124SMoriah Waterland #define	ERR_LINKFAIL	"unable to create link to <%s>"
297*5c51f124SMoriah Waterland #define	ERR_LINKISDIR	"<%s> is a directory, link() not performed"
298*5c51f124SMoriah Waterland #define	ERR_SLINKFAIL	"unable to create symbolic link to <%s>"
299*5c51f124SMoriah Waterland #define	ERR_DIRFAIL	"unable to create directory"
300*5c51f124SMoriah Waterland #define	ERR_CDEVFAIL	"unable to create character-special device"
301*5c51f124SMoriah Waterland #define	ERR_BDEVFAIL	"unable to create block-special device"
302*5c51f124SMoriah Waterland #define	ERR_PIPEFAIL	"unable to create named pipe"
303*5c51f124SMoriah Waterland #define	ERR_ATTRFAIL	"unable to fix attributes"
304*5c51f124SMoriah Waterland #define	ERR_BADGRPID	"unable to determine group name for gid <%d>"
305*5c51f124SMoriah Waterland #define	ERR_BADUSRID	"unable to determine owner name for uid <%d>"
306*5c51f124SMoriah Waterland #define	ERR_BADGRPNM	"group name <%s> not found in group table(s)"
307*5c51f124SMoriah Waterland #define	ERR_BADUSRNM	"owner name <%s> not found in passwd table(s)"
308*5c51f124SMoriah Waterland #define	ERR_GETWD	"unable to determine current working directory"
309*5c51f124SMoriah Waterland #define	ERR_CHDIR	"unable to change current working directory to <%s>"
310*5c51f124SMoriah Waterland #define	ERR_RMDIR	"unable to remove existing directory at <%s>"
311*5c51f124SMoriah Waterland 
312*5c51f124SMoriah Waterland /* others */
313*5c51f124SMoriah Waterland #define	ERR_ISCPIO_OPEN		"iscpio(): open(%s) failed!"
314*5c51f124SMoriah Waterland #define	ERR_ISCPIO_FSTAT	"iscpio(): fstat(%s) failed!"
315*5c51f124SMoriah Waterland #define	ERR_ISCPIO_READ		"iscpio(): read(%s) failed!"
316*5c51f124SMoriah Waterland #define	ERR_ISCPIO_NOCPIO	"iscpio(): <%s> is not a cpio archive!"
317*5c51f124SMoriah Waterland 
318*5c51f124SMoriah Waterland #define	ERR_DUPFAIL	"%s: strdup(%s) failed.\n"
319*5c51f124SMoriah Waterland #define	ERR_ADDFAIL	"%s: add_cache() failed.\n"
320*5c51f124SMoriah Waterland #define	ERR_BADMEMB	"%s: %s in \"%s\" %s structure is invalid.\n"
321*5c51f124SMoriah Waterland #define	ERR_NOGRP	"dup_gr_ent(): no group entry provided.\n"
322*5c51f124SMoriah Waterland #define	ERR_NOPWD	"dup_pw_ent(): no passwd entry provided.\n"
323*5c51f124SMoriah Waterland #define	ERR_NOINIT	"%s: init_cache() failed.\n"
324*5c51f124SMoriah Waterland #define	ERR_MALLOC	"%s: malloc(%d) failed for %s.\n"
325*5c51f124SMoriah Waterland 
326*5c51f124SMoriah Waterland #define	ERR_TOO_MANY_ARGS	"too many arguments passed to pkgexecl " \
327*5c51f124SMoriah Waterland 				"for command <%s>"
328*5c51f124SMoriah Waterland #define	ERR_WAIT_FAILED	"wait for process %ld failed, pid <%ld> status " \
329*5c51f124SMoriah Waterland 			"<0x%08lx> errno <%d> (%s)"
330*5c51f124SMoriah Waterland #define	ERR_FORK_FAILED	"fork() failed errno=%d (%s)"
331*5c51f124SMoriah Waterland #define	ERR_FREOPEN	"freopen(%s, \"%s\", %s) failed, errno=%d (%s)"
332*5c51f124SMoriah Waterland #define	ERR_FDOPEN	"fdopen(%d, \"%s\") failed, errno=%d (%s)"
333*5c51f124SMoriah Waterland #define	ERR_CLOSE	"close(%d) failed, errno=%d"
334*5c51f124SMoriah Waterland #define	ERR_SETGID	"setgid(%d) failed."
335*5c51f124SMoriah Waterland #define	ERR_SETUID	"setuid(%d) failed."
336*5c51f124SMoriah Waterland #define	ERR_EX_FAIL	"exec of %s failed, errno=%d"
337*5c51f124SMoriah Waterland 
338*5c51f124SMoriah Waterland /* pkgweb errors */
339*5c51f124SMoriah Waterland #define	MSG_DWNLD "\n## Downloading..."
340*5c51f124SMoriah Waterland #define	ERR_DWNLD_FAILED "\n## After %d retries, unable to complete transfer"
341*5c51f124SMoriah Waterland #define	MSG_DWNLD_TIMEOUT "\n## Timed out, retrying..."
342*5c51f124SMoriah Waterland #define	MSG_DWNLD_CONNREF "\n## Connection to <%s> refused, retrying..."
343*5c51f124SMoriah Waterland #define	MSG_DWNLD_HOSTDWN "\n## <%s> not responding, retrying..."
344*5c51f124SMoriah Waterland #define	MSG_DWNLD_PART "\n## Found partially downloaded file <%s> of " \
345*5c51f124SMoriah Waterland 			"size <%ld> bytes.  To force a complete " \
346*5c51f124SMoriah Waterland 			"re-download, delete this file and try again"
347*5c51f124SMoriah Waterland #define	MSG_DWNLD_PREV "\n## Using previously spooled package datastream <%s>"
348*5c51f124SMoriah Waterland #define	MSG_DWNLD_CONT "\n## Continuing previously attempted download..."
349*5c51f124SMoriah Waterland #define	MSG_DWNLD_COMPLETE "## Download Complete\n"
350*5c51f124SMoriah Waterland 
351*5c51f124SMoriah Waterland #define	ERR_DWNLD_NO_CONT "unable to open partially downloaded file <%s> " \
352*5c51f124SMoriah Waterland 				"for appending"
353*5c51f124SMoriah Waterland #define	ERR_BAD_PATH "unable to locate keystore."
354*5c51f124SMoriah Waterland #define	ERR_EMPTYPATH "No valid path exists for the keystore file."
355*5c51f124SMoriah Waterland #define	ERR_RETRIES "The number of server retries is not a valid " \
356*5c51f124SMoriah Waterland 	"value. Please specify a value within the range of %d - %d."
357*5c51f124SMoriah Waterland #define	ERR_TIMEOUT "The network timeout value is not a valid " \
358*5c51f124SMoriah Waterland 	"value. Please specify a value within the range of %d - %d."
359*5c51f124SMoriah Waterland #define	ERR_PARSE_URL "unable to parse the url <%s>."
360*5c51f124SMoriah Waterland #define	ERR_MEM "unable to allocate memory."
361*5c51f124SMoriah Waterland #define	ERR_HTTPS_PASSWD "unable set password for HTTPS connection."
362*5c51f124SMoriah Waterland #define	ERR_HTTPS_CA "unable to set CA file for HTTPS connection."
363*5c51f124SMoriah Waterland #define	ERR_HTTP "Failure occurred with http(s) negotiation: <%s>"
364*5c51f124SMoriah Waterland #define	ERR_WRITE "Cannot write to file <%s> : <%s>"
365*5c51f124SMoriah Waterland #define	ERR_READ "Cannot read from file <%s> : <%s>"
366*5c51f124SMoriah Waterland #define	ERR_SVR_RESP "unable to establish a connection with the http(s) server."
367*5c51f124SMoriah Waterland #define	ERR_INIT_CONN "unable to establish a connection with <%s>."
368*5c51f124SMoriah Waterland #define	ERR_INIT_SESS "unable to intialize download session for <%s>."
369*5c51f124SMoriah Waterland #define	ERR_INIT_CONN_PROXY "unable to establish a connection with <%s> " \
370*5c51f124SMoriah Waterland 	"using <%s> as the proxy"
371*5c51f124SMoriah Waterland #define	ERR_CLOSE_CONN "unable to close the connection with <%s>."
372*5c51f124SMoriah Waterland #define	ERR_NO_HEAD_VAL "HTTP Response did not include header <%s>."
373*5c51f124SMoriah Waterland /* CSTYLED */
374*5c51f124SMoriah Waterland #define	ERR_BAD_HEAD_VAL "HTTP Header value \"<%s>: <%s>\" unusable or " \
375*5c51f124SMoriah Waterland 			"unparseable."
376*5c51f124SMoriah Waterland #define	ERR_BAD_CONTENT "The package <%s> attempting to be installed " \
377*5c51f124SMoriah Waterland 	"is illegal."
378*5c51f124SMoriah Waterland #define	ERR_DWNLD "unable to download package datastream from <%s>."
379*5c51f124SMoriah Waterland #define	ERR_OPEN_TMP "unable to open temporary file for writing."
380*5c51f124SMoriah Waterland #define	ERR_WRITE_TMP "unable to write to temporary file."
381*5c51f124SMoriah Waterland #define	ERR_DISK_SPACE "Not enough disk space is available to download " \
382*5c51f124SMoriah Waterland 	"package to\n%s. %llukb needed, %llukb available."
383*5c51f124SMoriah Waterland #define	ERR_CERTS "unable to find a valid certificate in <%s>."
384*5c51f124SMoriah Waterland #define	ERR_CERTCHAIN "unable to build certificate chain for subject <%s>:<%s>."
385*5c51f124SMoriah Waterland #define	ERR_ILL_ENV "The environment variable <%s=%s> is illegal"
386*5c51f124SMoriah Waterland #define	ERR_BAD_PROXY "Invalid proxy specification: <%s>"
387*5c51f124SMoriah Waterland #define	ERR_TMPDIR "unable to find temporary directory <%s>"
388*5c51f124SMoriah Waterland #define	ERR_MEM "unable to allocate memory."
389*5c51f124SMoriah Waterland #define	ERR_NO_DWNLD_DIR "No download directory available."
390*5c51f124SMoriah Waterland #define	MSG_OCSP_VERIFY "## Contacting OCSP Responder <%s> for " \
391*5c51f124SMoriah Waterland 			"certificate <%s> status"
392*5c51f124SMoriah Waterland #define	MSG_OCSP_VERIFY_PROXY "## Contacting OCSP Responder <%s> through " \
393*5c51f124SMoriah Waterland 				"proxy <%s:%d> for certificate <%s> status"
394*5c51f124SMoriah Waterland #define	ERR_OCSP_PARSE "OCSP Responder URL <%s> invalid or unparseable"
395*5c51f124SMoriah Waterland #define	ERR_OCSP_RESP_PARSE "OCSP Response <%s> unparseable or empty"
396*5c51f124SMoriah Waterland #define	ERR_OCSP_RESP_NOTOK "OCSP Request failed.  Expected status " \
397*5c51f124SMoriah Waterland 			"<%d>, got <%d>, Reason=<%s>"
398*5c51f124SMoriah Waterland #define	WRN_OCSP_RESP_NONCE "WARNING: Invalid or no nonce found in " \
399*5c51f124SMoriah Waterland 			"OCSP response."
400*5c51f124SMoriah Waterland #define	ERR_OCSP_RESP_TYPE "OCSP response message type invalid: <%s>, " \
401*5c51f124SMoriah Waterland 			"expecting <%s>"
402*5c51f124SMoriah Waterland #define	ERR_OCSP_CONNECT "Cannot connect to OCSP Responder <%s> port <%d>"
403*5c51f124SMoriah Waterland #define	ERR_OCSP_SEND "Cannot send OCSP request to OCSP Responder <%s>"
404*5c51f124SMoriah Waterland #define	ERR_OCSP_READ "Cannot read OCSP response from OCSP Responder <%s>"
405*5c51f124SMoriah Waterland #define	ERR_OCSP_RESPONDER "OCSP Responder cannot process OCSP Request"
406*5c51f124SMoriah Waterland #define	ERR_OCSP_UNSUP "Unsupported OCSP Option <%s>"
407*5c51f124SMoriah Waterland #define	ERR_OCSP_VERIFY_NOTIME "Cannot access system time() to determine " \
408*5c51f124SMoriah Waterland 				"OCSP Response validity"
409*5c51f124SMoriah Waterland #define	ERR_OCSP_VERIFY_SIG "OCSP Response, signed by <%s>, cannot be " \
410*5c51f124SMoriah Waterland 			"verified: <%s>"
411*5c51f124SMoriah Waterland #define	ERR_OCSP_VERIFY_FAIL "unable to validate response from OCSP " \
412*5c51f124SMoriah Waterland 			"Responder <%s>"
413*5c51f124SMoriah Waterland #define	ERR_OCSP_VERIFY_NO_STATUS "OCSP Responder did not supply validity " \
414*5c51f124SMoriah Waterland 				"of certificate <%s> "
415*5c51f124SMoriah Waterland #define	ERR_OCSP_VERIFY_VALIDITY_NOTBEFORE "OCSP Response is only valid " \
416*5c51f124SMoriah Waterland 			"after <%s>.  Current time is <%s>."
417*5c51f124SMoriah Waterland #define	ERR_OCSP_VERIFY_VALIDITY "OCSP Response is only valid from <%s> " \
418*5c51f124SMoriah Waterland 			"to <%s>.  Current time is <%s>."
419*5c51f124SMoriah Waterland #define	ERR_OCSP_VERIFY_STATUS "OCSP Responder indicates certificate <%s> " \
420*5c51f124SMoriah Waterland 			"status is <%s>"
421*5c51f124SMoriah Waterland #define	ERR_OCSP_VERIFY "OCSP Responder rejected certificate, or did not " \
422*5c51f124SMoriah Waterland 			"recognize"
423*5c51f124SMoriah Waterland #define	ERR_OCSP_NO_URI "No OCSP Responder URL"
424*5c51f124SMoriah Waterland 
425*5c51f124SMoriah Waterland #define	MSG_BASE_USED   "Using <%s> as the package base directory."
426*5c51f124SMoriah Waterland 
427*5c51f124SMoriah Waterland #ifdef __cplusplus
428*5c51f124SMoriah Waterland }
429*5c51f124SMoriah Waterland #endif
430*5c51f124SMoriah Waterland 
431*5c51f124SMoriah Waterland #endif /* _PKGLIBMSGS_H */
432