xref: /titanic_41/usr/src/lib/libpkg/common/pkglibmsgs.h (revision 4656d4747c8743290bfbe910c64cd75eb4e4af8d)
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 <%s> value 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, %ld blocks required, "\
239 			"%lld available"
240 
241 /* pkglist errors */
242 #define	ERR_MEMORY	"memory allocation failure, errno=%d"
243 #define	ERR_NOPKG	"no package associated with <%s>"
244 #define	HEADER		"The following packages are available:"
245 #define	HELP		"Please enter the package instances you wish to " \
246 			"process from the list provided (or 'all' to process " \
247 			"all packages.)"
248 
249 #define	PROMPT		"Select package(s) you wish to process (or 'all' to " \
250 			"process all packages)."
251 /* pkgmap errors */
252 #define	ERR_READLINK	"unable to read link specification."
253 #define	ERR_NOVAR	"no value defined for%s variable <%s>."
254 #define	ERR_OWNTOOLONG	"owner string is too long."
255 #define	ERR_GRPTOOLONG	"group string is too long."
256 #define	ERR_IMODE	"mode must not be parametric at install time."
257 #define	ERR_BASEINVAL	"invalid base for mode."
258 #define	ERR_MODELONG	"mode string is too long."
259 #define	ERR_MODEALPHA	"mode is not numeric."
260 #define	ERR_MODEBITS	"invalid bits set in mode."
261 
262 /* package mount errors and msgs */
263 #define	ERR_FSTYP	"unable to determine fstype for <%s>"
264 #define	ERR_NOTROOT	"You must be \"root\" when using mountable media."
265 #define	MOUNT		"/sbin/mount"
266 #define	UMOUNT		"/sbin/umount"
267 #define	FSTYP		"/usr/sbin/fstyp"
268 
269 #define	LABEL0	"Insert %%v %d of %d for <%s> package into %%p."
270 #define	LABEL1	"Insert %%v %d of %d into %%p."
271 #define	LABEL2	"Insert %%v for <%s> package into %%p."
272 #define	LABEL3	"Insert %%v into %%p."
273 
274 /* package verify errors */
275 #define	MSG_WLDDEVNO	"NOTE: <%s> created as device (%ld, %ld)."
276 
277 #define	WRN_QV_SIZE	"WARNING: quick verify of <%s>; wrong size."
278 #define	WRN_QV_MTIME	"WARNING: quick verify of <%s>; wrong mod time."
279 
280 #define	ERR_PKG_INTERNAL "Internal package library failure file %s line %d"
281 #define	ERR_UNKNOWN	"unable to determine object type"
282 #define	ERR_EXIST	"pathname does not exist"
283 #define	ERR_FTYPE	"file type <%c> expected <%c> actual"
284 #define	ERR_FTYPED	"<%s> is a door and is not being modified"
285 #define	ERR_LINK	"pathname not properly linked to <%s>"
286 #define	ERR_SLINK	"pathname not symbolically linked to <%s>"
287 #define	ERR_MTIME	"modtime <%s> expected <%s> actual"
288 #define	ERR_SIZE	"file size <%llu> expected <%llu> actual"
289 #define	ERR_CKSUM	"file cksum <%ld> expected <%ld> actual"
290 #define	ERR_NO_CKSUM	"unable to checksum, may need to re-run command as " \
291 			"user \"root\""
292 #define	ERR_MAJMIN	"major/minor device <%ld, %ld> " \
293 			"expected <%ld, %ld> actual"
294 #define	ERR_PERM	"permissions <%04lo> expected <%04lo> actual"
295 #define	ERR_GROUP	"group name <%s> expected <%s> actual"
296 #define	ERR_OWNER	"owner name <%s> expected <%s> actual"
297 #define	ERR_MODFAIL	"unable to fix modification time"
298 #define	ERR_LINKFAIL	"unable to create link to <%s>"
299 #define	ERR_LINKISDIR	"<%s> is a directory, link() not performed"
300 #define	ERR_SLINKFAIL	"unable to create symbolic link to <%s>"
301 #define	ERR_DIRFAIL	"unable to create directory"
302 #define	ERR_CDEVFAIL	"unable to create character-special device"
303 #define	ERR_BDEVFAIL	"unable to create block-special device"
304 #define	ERR_PIPEFAIL	"unable to create named pipe"
305 #define	ERR_ATTRFAIL	"unable to fix attributes"
306 #define	ERR_BADGRPID	"unable to determine group name for gid <%d>"
307 #define	ERR_BADUSRID	"unable to determine owner name for uid <%d>"
308 #define	ERR_BADGRPNM	"group name <%s> not found in group table(s)"
309 #define	ERR_BADUSRNM	"owner name <%s> not found in passwd table(s)"
310 #define	ERR_GETWD	"unable to determine current working directory"
311 #define	ERR_CHDIR	"unable to change current working directory to <%s>"
312 #define	ERR_RMDIR	"unable to remove existing directory at <%s>"
313 
314 /* others */
315 #define	ERR_ISCPIO_OPEN		"iscpio(): open(%s) failed!"
316 #define	ERR_ISCPIO_FSTAT	"iscpio(): fstat(%s) failed!"
317 #define	ERR_ISCPIO_READ		"iscpio(): read(%s) failed!"
318 #define	ERR_ISCPIO_NOCPIO	"iscpio(): <%s> is not a cpio archive!"
319 
320 #define	ERR_DUPFAIL	"%s: strdup(%s) failed.\n"
321 #define	ERR_ADDFAIL	"%s: add_cache() failed.\n"
322 #define	ERR_BADMEMB	"%s: %s in \"%s\" %s structure is invalid.\n"
323 #define	ERR_NOGRP	"dup_gr_ent(): no group entry provided.\n"
324 #define	ERR_NOPWD	"dup_pw_ent(): no passwd entry provided.\n"
325 #define	ERR_NOINIT	"%s: init_cache() failed.\n"
326 #define	ERR_MALLOC	"%s: malloc(%d) failed for %s.\n"
327 
328 #define	ERR_TOO_MANY_ARGS	"too many arguments passed to pkgexecl " \
329 				"for command <%s>"
330 #define	ERR_WAIT_FAILED	"wait for process %ld failed, status " \
331 			"<0x%08x> errno <%d> (%s)"
332 #define	ERR_FORK_FAILED	"fork() failed errno=%d (%s)"
333 #define	ERR_FREOPEN	"freopen(%s, \"%s\", %s) failed, errno=%d (%s)"
334 #define	ERR_FDOPEN	"fdopen(%d, \"%s\") failed, errno=%d (%s)"
335 #define	ERR_CLOSE	"close(%d) failed, errno=%d"
336 #define	ERR_SETGID	"setgid(%d) failed."
337 #define	ERR_SETUID	"setuid(%d) failed."
338 #define	ERR_EX_FAIL	"exec of %s failed, errno=%d"
339 
340 /* pkgweb errors */
341 #define	MSG_DWNLD "\n## Downloading..."
342 #define	ERR_DWNLD_FAILED "\n## After %d retries, unable to complete transfer"
343 #define	MSG_DWNLD_TIMEOUT "\n## Timed out, retrying..."
344 #define	MSG_DWNLD_CONNREF "\n## Connection to <%s> refused, retrying..."
345 #define	MSG_DWNLD_HOSTDWN "\n## <%s> not responding, retrying..."
346 #define	MSG_DWNLD_PART "\n## Found partially downloaded file <%s> of " \
347 			"size <%ld> bytes.  To force a complete " \
348 			"re-download, delete this file and try again"
349 #define	MSG_DWNLD_PREV "\n## Using previously spooled package datastream <%s>"
350 #define	MSG_DWNLD_CONT "\n## Continuing previously attempted download..."
351 #define	MSG_DWNLD_COMPLETE "## Download Complete\n"
352 
353 #define	ERR_DWNLD_NO_CONT "unable to open partially downloaded file <%s> " \
354 				"for appending"
355 #define	ERR_BAD_PATH "unable to locate keystore."
356 #define	ERR_EMPTYPATH "No valid path exists for the keystore file."
357 #define	ERR_RETRIES "The number of server retries is not a valid " \
358 	"value. Please specify a value within the range of %d - %d."
359 #define	ERR_TIMEOUT "The network timeout value is not a valid " \
360 	"value. Please specify a value within the range of %d - %d."
361 #define	ERR_PARSE_URL "unable to parse the url <%s>."
362 #define	ERR_MEM "unable to allocate memory."
363 #define	ERR_HTTPS_PASSWD "unable set password for HTTPS connection."
364 #define	ERR_HTTPS_CA "unable to set CA file for HTTPS connection."
365 #define	ERR_HTTP "Failure occurred with http(s) negotiation: <%s>"
366 #define	ERR_WRITE "Cannot write to file <%s> : <%s>"
367 #define	ERR_READ "Cannot read from file <%s> : <%s>"
368 #define	ERR_SVR_RESP "unable to establish a connection with the http(s) server."
369 #define	ERR_INIT_CONN "unable to establish a connection with <%s>."
370 #define	ERR_INIT_SESS "unable to intialize download session for <%s>."
371 #define	ERR_INIT_CONN_PROXY "unable to establish a connection with <%s> " \
372 	"using <%s> as the proxy"
373 #define	ERR_CLOSE_CONN "unable to close the connection with <%s>."
374 #define	ERR_NO_HEAD_VAL "HTTP Response did not include header <%s>."
375 /* CSTYLED */
376 #define	ERR_BAD_HEAD_VAL "HTTP Header value \"<%s>: <%s>\" unusable or " \
377 			"unparseable."
378 #define	ERR_BAD_CONTENT "The package <%s> attempting to be installed " \
379 	"is illegal."
380 #define	ERR_DWNLD "unable to download package datastream from <%s>."
381 #define	ERR_OPEN_TMP "unable to open temporary file for writing."
382 #define	ERR_WRITE_TMP "unable to write to temporary file."
383 #define	ERR_DISK_SPACE "Not enough disk space is available to download " \
384 	"package to\n%s. %llukb needed, %llukb available."
385 #define	ERR_CERTS "unable to find a valid certificate in <%s>."
386 #define	ERR_CERTCHAIN "unable to build certificate chain for subject <%s>:<%s>."
387 #define	ERR_ILL_ENV "The environment variable <%s=%s> is illegal"
388 #define	ERR_BAD_PROXY "Invalid proxy specification: <%s>"
389 #define	ERR_TMPDIR "unable to find temporary directory <%s>"
390 #define	ERR_MEM "unable to allocate memory."
391 #define	ERR_NO_DWNLD_DIR "No download directory available."
392 #define	MSG_OCSP_VERIFY "## Contacting OCSP Responder <%s> for " \
393 			"certificate <%s> status"
394 #define	MSG_OCSP_VERIFY_PROXY "## Contacting OCSP Responder <%s> through " \
395 				"proxy <%s:%d> for certificate <%s> status"
396 #define	ERR_OCSP_PARSE "OCSP Responder URL <%s> invalid or unparseable"
397 #define	ERR_OCSP_RESP_PARSE "OCSP Response <%s> unparseable or empty"
398 #define	ERR_OCSP_RESP_NOTOK "OCSP Request failed.  Expected status " \
399 			"<%d>, got <%d>, Reason=<%s>"
400 #define	WRN_OCSP_RESP_NONCE "WARNING: Invalid or no nonce found in " \
401 			"OCSP response."
402 #define	ERR_OCSP_RESP_TYPE "OCSP response message type invalid: <%s>, " \
403 			"expecting <%s>"
404 #define	ERR_OCSP_CONNECT "Cannot connect to OCSP Responder <%s> port <%d>"
405 #define	ERR_OCSP_SEND "Cannot send OCSP request to OCSP Responder <%s>"
406 #define	ERR_OCSP_READ "Cannot read OCSP response from OCSP Responder <%s>"
407 #define	ERR_OCSP_RESPONDER "OCSP Responder cannot process OCSP Request"
408 #define	ERR_OCSP_UNSUP "Unsupported OCSP Option <%s>"
409 #define	ERR_OCSP_VERIFY_NOTIME "Cannot access system time() to determine " \
410 				"OCSP Response validity"
411 #define	ERR_OCSP_VERIFY_SIG "OCSP Response, signed by <%s>, cannot be " \
412 			"verified: <%s>"
413 #define	ERR_OCSP_VERIFY_FAIL "unable to validate response from OCSP " \
414 			"Responder <%s>"
415 #define	ERR_OCSP_VERIFY_NO_STATUS "OCSP Responder did not supply validity " \
416 				"of certificate <%s> "
417 #define	ERR_OCSP_VERIFY_VALIDITY_NOTBEFORE "OCSP Response is only valid " \
418 			"after <%s>.  Current time is <%s>."
419 #define	ERR_OCSP_VERIFY_VALIDITY "OCSP Response is only valid from <%s> " \
420 			"to <%s>.  Current time is <%s>."
421 #define	ERR_OCSP_VERIFY_STATUS "OCSP Responder indicates certificate <%s> " \
422 			"status is <%s>"
423 #define	ERR_OCSP_VERIFY "OCSP Responder rejected certificate, or did not " \
424 			"recognize"
425 #define	ERR_OCSP_NO_URI "No OCSP Responder URL"
426 
427 #define	MSG_BASE_USED   "Using <%s> as the package base directory."
428 
429 #ifdef __cplusplus
430 }
431 #endif
432 
433 #endif /* _PKGLIBMSGS_H */
434