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