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