15c51f124SMoriah Waterland /* 25c51f124SMoriah Waterland * CDDL HEADER START 35c51f124SMoriah Waterland * 45c51f124SMoriah Waterland * The contents of this file are subject to the terms of the 55c51f124SMoriah Waterland * Common Development and Distribution License (the "License"). 65c51f124SMoriah Waterland * You may not use this file except in compliance with the License. 75c51f124SMoriah Waterland * 85c51f124SMoriah Waterland * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 95c51f124SMoriah Waterland * or http://www.opensolaris.org/os/licensing. 105c51f124SMoriah Waterland * See the License for the specific language governing permissions 115c51f124SMoriah Waterland * and limitations under the License. 125c51f124SMoriah Waterland * 135c51f124SMoriah Waterland * When distributing Covered Code, include this CDDL HEADER in each 145c51f124SMoriah Waterland * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 155c51f124SMoriah Waterland * If applicable, add the following below this CDDL HEADER, with the 165c51f124SMoriah Waterland * fields enclosed by brackets "[]" replaced with your own identifying 175c51f124SMoriah Waterland * information: Portions Copyright [yyyy] [name of copyright owner] 185c51f124SMoriah Waterland * 195c51f124SMoriah Waterland * CDDL HEADER END 205c51f124SMoriah Waterland */ 215c51f124SMoriah Waterland 225c51f124SMoriah Waterland /* 235c51f124SMoriah Waterland * Copyright 2008 Sun Microsystems, Inc. All rights reserved. 245c51f124SMoriah Waterland * Use is subject to license terms. 255c51f124SMoriah Waterland */ 265c51f124SMoriah Waterland 275c51f124SMoriah Waterland #ifndef _PKGLIBMSGS_H 285c51f124SMoriah Waterland #define _PKGLIBMSGS_H 295c51f124SMoriah Waterland 305c51f124SMoriah Waterland 315c51f124SMoriah Waterland #ifdef __cplusplus 325c51f124SMoriah Waterland extern "C" { 335c51f124SMoriah Waterland #endif 345c51f124SMoriah Waterland 355c51f124SMoriah Waterland /* srchcfile messages */ 365c51f124SMoriah Waterland #define ERR_MISSING_NEWLINE "missing newline at end of entry" 375c51f124SMoriah Waterland #define ERR_ILLEGAL_SEARCH_PATH "illegal search path specified" 385c51f124SMoriah Waterland #define ERR_CANNOT_READ_MM_NUMS "unable to read major/minor device numbers" 395c51f124SMoriah Waterland #define ERR_INCOMPLETE_ENTRY "incomplete entry" 405c51f124SMoriah Waterland #define ERR_VOLUMENO_UNEXPECTED "volume number not expected" 415c51f124SMoriah Waterland #define ERR_FTYPE_I_UNEXPECTED "ftype <i> not expected" 425c51f124SMoriah Waterland #define ERR_CANNOT_READ_CLASS_TOKEN "unable to read class token" 435c51f124SMoriah Waterland #define ERR_CANNOT_READ_PATHNAME_FLD "unable to read pathname field" 445c51f124SMoriah Waterland #define ERR_UNKNOWN_FTYPE "unknown ftype" 455c51f124SMoriah Waterland #define ERR_CANNOT_READ_LL_PATH "unable to read local/link path" 465c51f124SMoriah Waterland #define ERR_INCOMPLETE_ENTRY "incomplete entry" 475c51f124SMoriah Waterland #define ERR_NO_LINK_SOURCE_SPECIFIED "no link source specified" 485c51f124SMoriah Waterland #define ERR_CANNOT_READ_MOG "unable to read mode/owner/group" 495c51f124SMoriah Waterland #define ERR_CANNOT_READ_CONTENT_INFO "unable to read content info" 505c51f124SMoriah Waterland #define ERR_PACKAGE_NAME_TOO_LONG "package name too long" 515c51f124SMoriah Waterland #define ERR_NO_MEMORY "no memory for package information" 525c51f124SMoriah Waterland #define ERR_BAD_ENTRY_END "bad end of entry" 535c51f124SMoriah Waterland #define ERR_EXTRA_TOKENS "extra token(s) on input line" 545c51f124SMoriah Waterland 555c51f124SMoriah Waterland /* pkgtrans messages */ 565c51f124SMoriah Waterland #define MSG_TRANSFER "Transferring <%s> package instance\n" 575c51f124SMoriah Waterland #define MSG_STORE_ACC "Retrieving signature certificates from <%s>\n" 585c51f124SMoriah Waterland #define MSG_SIGNING "Generating digital signature for signer <%s>\n" 595c51f124SMoriah Waterland #define MSG_RENAME "\t... instance renamed <%s> on destination\n" 605c51f124SMoriah Waterland 615c51f124SMoriah Waterland #define ERR_TRANSFER "unable to complete package transfer" 625c51f124SMoriah Waterland #define MSG_SEQUENCE "- volume is out of sequence" 635c51f124SMoriah Waterland #define MSG_MEM "- no memory" 645c51f124SMoriah Waterland #define MSG_CMDFAIL "- process <%s> failed, exit code %d" 655c51f124SMoriah Waterland #define MSG_POPEN "- popen of <%s> failed, errno=%d" 665c51f124SMoriah Waterland #define MSG_PCLOSE "- pclose of <%s> failed, errno=%d" 675c51f124SMoriah Waterland #define MSG_BADDEV "- invalid or unknown device <%s>" 685c51f124SMoriah Waterland #define MSG_GETVOL "- unable to obtain package volume" 695c51f124SMoriah Waterland #define MSG_NOSIZE "- unable to obtain maximum part size from pkgmap" 705c51f124SMoriah Waterland #define MSG_CHDIR "- unable to change directory to <%s>" 715c51f124SMoriah Waterland #define MSG_SYMLINK "- unable to create symbolic link to <%s> from <%s>" 725c51f124SMoriah Waterland #define MSG_STATDIR "- unable to stat <%s>" 735c51f124SMoriah Waterland #define MSG_CHOWNDIR "- unable to chown <%s>" 745c51f124SMoriah Waterland #define MSG_CHMODDIR "- unable to chmod <%s>" 755c51f124SMoriah Waterland #define MSG_FSTYP "- unable to determine filesystem type for <%s>" 765c51f124SMoriah Waterland #define MSG_NOTEMP "- unable to create or use temporary directory <%s>" 775c51f124SMoriah Waterland #define MSG_SAMEDEV "- source and destination represent the same device" 785c51f124SMoriah Waterland #define MSG_NOTMPFIL "- unable to create or use temporary file <%s>" 795c51f124SMoriah Waterland #define MSG_NOPKGMAP "- unable to open pkgmap for <%s>" 805c51f124SMoriah Waterland #define MSG_BADPKGINFO "- unable to determine contents of pkginfo file" 815c51f124SMoriah Waterland #define MSG_NOPKGS "- no packages were selected from <%s>" 825c51f124SMoriah Waterland #define MSG_MKDIR "- unable to make directory <%s>" 835c51f124SMoriah Waterland #define MSG_NOEXISTS "- package instance <%s> does not exist on source " \ 845c51f124SMoriah Waterland "device" 855c51f124SMoriah Waterland #define MSG_EXISTS "- no permission to overwrite existing path <%s>" 865c51f124SMoriah Waterland #define MSG_DUPVERS "- identical version of <%s> already exists on " \ 875c51f124SMoriah Waterland "destination device" 885c51f124SMoriah Waterland #define MSG_TWODSTREAM "- both source and destination devices cannot be a " \ 895c51f124SMoriah Waterland "datastream" 905c51f124SMoriah Waterland #define MSG_OPEN "- open of <%s> failed, errno=%d" 915c51f124SMoriah Waterland #define MSG_STATVFS "- statvfs(%s) failed, errno=%d" 925c51f124SMoriah Waterland 935c51f124SMoriah Waterland /* security problems */ 945c51f124SMoriah Waterland #define ERR_PARSE "unable to parse keystore <%s>, invalid " \ 955c51f124SMoriah Waterland "format or corrupt" 965c51f124SMoriah Waterland #define ERR_BADPASS "Invalid password. Password does not " \ 975c51f124SMoriah Waterland "decrypt keystore" 985c51f124SMoriah Waterland 995c51f124SMoriah Waterland #define MSG_PASSWD_FILE "Password file <%s> cannot be read" 1005c51f124SMoriah Waterland #define MSG_PASSWD_AGAIN "For Verification" 1015c51f124SMoriah Waterland #define MSG_PASSWD_NOMATCH "Passwords do not match" 1025c51f124SMoriah Waterland #define MSG_BADPASSARG "Password retrieval method <%s> invalid" 1035c51f124SMoriah Waterland #define MSG_NOPASS "Cannot get passphrase using " \ 1045c51f124SMoriah Waterland "retrieval method <%s>" 1055c51f124SMoriah Waterland 1065c51f124SMoriah Waterland #define ERR_MISMATCHPASS "<%s> encrypted with different password " \ 1075c51f124SMoriah Waterland " than <%s>, keystore <%s> corrupt" 1085c51f124SMoriah Waterland 1095c51f124SMoriah Waterland #define MSG_CHSIGDIR "- unable to change directory to <%s/%s>" 1105c51f124SMoriah Waterland #define MSG_MKSIGDIR "- unable to make directory <%s/%s>" 1115c51f124SMoriah Waterland #define ERR_CANTSIGN "- destination device must be datastream in order to" \ 1125c51f124SMoriah Waterland " sign contents" 1135c51f124SMoriah Waterland #define ERR_STORE "unable to find or use store <%s> from application " \ 1145c51f124SMoriah Waterland "<%s>:<%s>" 1155c51f124SMoriah Waterland 1165c51f124SMoriah Waterland #define ERR_NO_KEYSTORE "unable to open keystore <%s> for reading" 1175c51f124SMoriah Waterland #define ERR_NOT_REG "<%s> is not a regular file" 1185c51f124SMoriah Waterland #define ERR_KEYSTORE_CORRUPT "Keystore file <%s> is corrupt or unparseable" 1195c51f124SMoriah Waterland #define ERR_KEYSTORE_REPAIR "unable to repair keystore <%s>" 1205c51f124SMoriah Waterland #define ERR_KEYSTORE_LOCKED_READ "unable to lock keystore file <%s> " \ 1215c51f124SMoriah Waterland "for reading, try again later" 1225c51f124SMoriah Waterland #define ERR_KEYSTORE_LOCKED "unable to lock keystore <%s> for exclusive " \ 1235c51f124SMoriah Waterland "access" 1245c51f124SMoriah Waterland #define ERR_KEYSTORE_UNLOCK "unable to unlock keystore <%s> for " \ 1255c51f124SMoriah Waterland "application <%s>" 1265c51f124SMoriah Waterland #define ERR_KEYSTORE_WRITE "unable to open keystore <%s> for writing" 1275c51f124SMoriah Waterland #define ERR_KEYSTORE_REMOVE "unable to delete keystore file <%s>" 1285c51f124SMoriah Waterland #define ERR_KEYSTORE_READ "unable to open keystore <%s> for reading" 1295c51f124SMoriah Waterland #define ERR_KEYSTORE_OPEN "unable to open keystore <%s>:<%s>" 1305c51f124SMoriah Waterland #define ERR_KEYSTORE_FORM "unable to form PKCS12 keystore file for " \ 1315c51f124SMoriah Waterland "writing to <%s>" 1325c51f124SMoriah Waterland 1335c51f124SMoriah Waterland #define ERR_KEYSTORE_NOPUBCERTS "unable to find any public key certificates " \ 1345c51f124SMoriah Waterland "in keystore file <%s>" 1355c51f124SMoriah Waterland 1365c51f124SMoriah Waterland #define ERR_KEYSTORE_NOPRIVKEYS "unable to find any private keys in keystore "\ 1375c51f124SMoriah Waterland "file <%s>" 1385c51f124SMoriah Waterland 1395c51f124SMoriah Waterland #define ERR_KEYSTORE_NOCACERTS "unable to find any trusted certificates in "\ 1405c51f124SMoriah Waterland "file <%s>" 1415c51f124SMoriah Waterland 1425c51f124SMoriah Waterland #define ERR_KEYSTORE_NOTRUST "unable to find any trusted certificates in "\ 1435c51f124SMoriah Waterland "keystore" 1445c51f124SMoriah Waterland 1455c51f124SMoriah Waterland #define ERR_KEYSTORE_NOMATCH "unable to find certificate and key pair " \ 1465c51f124SMoriah Waterland "with alias <%s> in keystore" 1475c51f124SMoriah Waterland 1485c51f124SMoriah Waterland #define ERR_KEYSTORE_DUPLICATECERT "Certificate with alias <%s> " \ 1495c51f124SMoriah Waterland "already exists in keystore" 1505c51f124SMoriah Waterland #define ERR_KEYSTORE_DUPLICATEKEY "Private key with alias <%s> already" \ 1515c51f124SMoriah Waterland " exists in keystore" 1525c51f124SMoriah Waterland #define ERR_KEYSTORE_NO_ALIAS "Keystore certificate <%s> has no recorded " \ 1535c51f124SMoriah Waterland "alias, must be deleted from keystore" 1545c51f124SMoriah Waterland #define ERR_KEYSTORE_NOCERT "No certificate with alias <%s> found in " \ 1555c51f124SMoriah Waterland "keystore <%s>" 1565c51f124SMoriah Waterland #define ERR_KEYSTORE_NOCERTKEY "No certificates or private keys with alias " \ 1575c51f124SMoriah Waterland "<%s> found in keystore <%s>" 1585c51f124SMoriah Waterland 1595c51f124SMoriah Waterland #define ERR_KEYSTORE_INTERNAL "Internal Error file %s line %d" 1605c51f124SMoriah Waterland 1615c51f124SMoriah Waterland #define ERR_CURR_TIME "Cannot determine current time from system" 1625c51f124SMoriah Waterland #define ERR_CERT_TIME "Certificate <%s> has expired or is not yet valid.\n" \ 1635c51f124SMoriah Waterland "Current time: <%s>\n Certificate valid: <%s> - <%s>" 1645c51f124SMoriah Waterland #define ERR_MISMATCHED_KEYS "Private key does not match public key in " \ 1655c51f124SMoriah Waterland "certificate <%s>" 1665c51f124SMoriah Waterland #define ERR_CERT_TIME_BAD "Certificate has corrupt validity dates, " \ 1675c51f124SMoriah Waterland "cannot process" 1685c51f124SMoriah Waterland #define ERR_TRUSTSTORE "unable to find or use trusted certificate " \ 1695c51f124SMoriah Waterland "store <%s> from application <%s>:<%s>" 1705c51f124SMoriah Waterland 1715c51f124SMoriah Waterland #define ERR_STORE_PW "unable to read password from <%s>" 1725c51f124SMoriah Waterland 1735c51f124SMoriah Waterland #define ERR_SEC "unable to sign package contents using <%s> " \ 1745c51f124SMoriah Waterland "private key" 1755c51f124SMoriah Waterland 1765c51f124SMoriah Waterland #define ERR_NOGEN "unable to generate digital signature" 1775c51f124SMoriah Waterland 1785c51f124SMoriah Waterland #define ERR_STORE_PW "unable to read password from <%s>" 1795c51f124SMoriah Waterland #define ERR_CORRUPTSIG "Invalid or corrupt signature in datastream <%s>" 1805c51f124SMoriah Waterland #define ERR_CORRUPTSIG_TYPE "Wrong PKCS7 signature type in datastream <%s>" 1815c51f124SMoriah Waterland #define ERR_CORRUPTSIG_DT "Signature found but not detached in " \ 1825c51f124SMoriah Waterland "datastream <%s>" 1835c51f124SMoriah Waterland #define ERR_KEYSTORE "invalid or corrupt PKCS12 file <%s>." 1845c51f124SMoriah Waterland #define ERR_KEYSTORE_NOCERTS "Store <%s> contains no certificates" 1855c51f124SMoriah Waterland #define ERR_KEYSTORE_NOKEYS "Store <%s> contains no private keys" 1865c51f124SMoriah Waterland #define ERR_SIG_INT "Internal error during signature verification." 1875c51f124SMoriah Waterland #define MSG_VERIFY "## Verifying signature for signer <%s>" 1885c51f124SMoriah Waterland #define MSG_VERIFY_OK "## Signature for signer <%s> verified." 1895c51f124SMoriah Waterland #define ERR_VERIFY "Signature verification failed." 1905c51f124SMoriah Waterland #define ERR_VERIFY_SIG "Signature verification failed while verifying " \ 1915c51f124SMoriah Waterland "certificate <subject=%s, issuer=%s>:<%s>." 1925c51f124SMoriah Waterland #define ERR_VERIFY_ISSUER "Could not find issuer certificate for signer <%s>" 1935c51f124SMoriah Waterland #define ERR_OPENSIG "Signature found in datastream but cannot be " \ 1945c51f124SMoriah Waterland " opened: <%s>" 1955c51f124SMoriah Waterland 1965c51f124SMoriah Waterland #define ERR_SIGFOUND "signature found in datastream <%s>, you must " \ 1975c51f124SMoriah Waterland "specify a keystore with -k" 1985c51f124SMoriah Waterland #define ERR_DSINIT "could not process datastream from <%s>" 1995c51f124SMoriah Waterland 2005c51f124SMoriah Waterland #define MSG_KEYSTORE_AL "Keystore Alias" 2015c51f124SMoriah Waterland #define MSG_KEYSTORE_SN "Serial Number" 2025c51f124SMoriah Waterland #define MSG_KEYSTORE_FP "Fingerprint" 2035c51f124SMoriah Waterland #define MSG_KEYSTORE_CN "Common Name" 2045c51f124SMoriah Waterland #define MSG_KEYSTORE_IN "Issuer Common Name" 2055c51f124SMoriah Waterland #define MSG_KEYSTORE_VD "Validity Dates" 2065c51f124SMoriah Waterland #define MSG_KEYSTORE_TY "Certificate Type" 2075c51f124SMoriah Waterland #define MSG_KEYSTORE_TRUSTED "Trusted Certificate" 2085c51f124SMoriah Waterland #define MSG_KEYSTORE_UNTRUSTED "Signing Certificate" 2095c51f124SMoriah Waterland #define MSG_KEYSTORE_UNKNOWN "Unknown" 2105c51f124SMoriah Waterland 2115c51f124SMoriah Waterland /* parameter errors */ 212*4656d474SGarrett D'Amore #define ERR_LEN "length of parameter <%s> value exceeds limit" 2135c51f124SMoriah Waterland #define ERR_ASCII "parameter <%s> must be ascii" 2145c51f124SMoriah Waterland #define ERR_ALNUM "parameter <%s> must be alphanumeric" 2155c51f124SMoriah Waterland #define ERR_CHAR "parameter <%s> has incorrect first character" 2165c51f124SMoriah Waterland #define ERR_UNDEF "parameter <%s> cannot be null" 2175c51f124SMoriah Waterland 2185c51f124SMoriah Waterland /* volume sequence errors */ 2195c51f124SMoriah Waterland #define MSG_SEQ "Volume is out of sequence." 2205c51f124SMoriah Waterland #define MSG_CORRUPT "Volume is corrupt or is not part of the appropriate " \ 2215c51f124SMoriah Waterland "package." 2225c51f124SMoriah Waterland #define ERR_NOPKGMAP "ERROR: unable to process <%s>" 2235c51f124SMoriah Waterland #define ERR_BADPKGINFO "ERROR: unable to process <%s>" 2245c51f124SMoriah Waterland 2255c51f124SMoriah Waterland /* datastream processing errors */ 2265c51f124SMoriah Waterland #define ERR_UNPACK "attempt to process datastream failed" 2275c51f124SMoriah Waterland #define ERR_DSTREAMSEQ "datastream sequence corruption" 2285c51f124SMoriah Waterland #define ERR_TRANSFER "unable to complete package transfer" 2295c51f124SMoriah Waterland #define MSG_CMDFAIL "- process <%s> failed, exit code %d" 2305c51f124SMoriah Waterland #define MSG_TOC "- bad format in datastream table-of-contents" 2315c51f124SMoriah Waterland #define MSG_EMPTY "- datastream table-of-contents appears to be empty" 2325c51f124SMoriah Waterland #define MSG_POPEN "- popen of <%s> failed, errno=%d" 2335c51f124SMoriah Waterland #define MSG_OPEN "- open of <%s> failed, errno=%d" 2345c51f124SMoriah Waterland #define MSG_PCLOSE "- pclose of <%s> failed, errno=%d" 2355c51f124SMoriah Waterland #define MSG_PKGNAME "- invalid package name in datastream table-of-contents" 2365c51f124SMoriah Waterland #define MSG_NOPKG "- package <%s> not in datastream" 2375c51f124SMoriah Waterland #define MSG_STATFS "- unable to stat filesystem, errno=%d" 238*4656d474SGarrett D'Amore #define MSG_NOSPACE "- not enough space, %ld blocks required, "\ 239*4656d474SGarrett D'Amore "%lld available" 2405c51f124SMoriah Waterland 2415c51f124SMoriah Waterland /* pkglist errors */ 2425c51f124SMoriah Waterland #define ERR_MEMORY "memory allocation failure, errno=%d" 2435c51f124SMoriah Waterland #define ERR_NOPKG "no package associated with <%s>" 2445c51f124SMoriah Waterland #define HEADER "The following packages are available:" 2455c51f124SMoriah Waterland #define HELP "Please enter the package instances you wish to " \ 2465c51f124SMoriah Waterland "process from the list provided (or 'all' to process " \ 2475c51f124SMoriah Waterland "all packages.)" 2485c51f124SMoriah Waterland 2495c51f124SMoriah Waterland #define PROMPT "Select package(s) you wish to process (or 'all' to " \ 2505c51f124SMoriah Waterland "process all packages)." 2515c51f124SMoriah Waterland /* pkgmap errors */ 2525c51f124SMoriah Waterland #define ERR_READLINK "unable to read link specification." 2535c51f124SMoriah Waterland #define ERR_NOVAR "no value defined for%s variable <%s>." 2545c51f124SMoriah Waterland #define ERR_OWNTOOLONG "owner string is too long." 2555c51f124SMoriah Waterland #define ERR_GRPTOOLONG "group string is too long." 2565c51f124SMoriah Waterland #define ERR_IMODE "mode must not be parametric at install time." 2575c51f124SMoriah Waterland #define ERR_BASEINVAL "invalid base for mode." 2585c51f124SMoriah Waterland #define ERR_MODELONG "mode string is too long." 2595c51f124SMoriah Waterland #define ERR_MODEALPHA "mode is not numeric." 2605c51f124SMoriah Waterland #define ERR_MODEBITS "invalid bits set in mode." 2615c51f124SMoriah Waterland 2625c51f124SMoriah Waterland /* package mount errors and msgs */ 2635c51f124SMoriah Waterland #define ERR_FSTYP "unable to determine fstype for <%s>" 2645c51f124SMoriah Waterland #define ERR_NOTROOT "You must be \"root\" when using mountable media." 2655c51f124SMoriah Waterland #define MOUNT "/sbin/mount" 2665c51f124SMoriah Waterland #define UMOUNT "/sbin/umount" 2675c51f124SMoriah Waterland #define FSTYP "/usr/sbin/fstyp" 2685c51f124SMoriah Waterland 2695c51f124SMoriah Waterland #define LABEL0 "Insert %%v %d of %d for <%s> package into %%p." 2705c51f124SMoriah Waterland #define LABEL1 "Insert %%v %d of %d into %%p." 2715c51f124SMoriah Waterland #define LABEL2 "Insert %%v for <%s> package into %%p." 2725c51f124SMoriah Waterland #define LABEL3 "Insert %%v into %%p." 2735c51f124SMoriah Waterland 2745c51f124SMoriah Waterland /* package verify errors */ 275*4656d474SGarrett D'Amore #define MSG_WLDDEVNO "NOTE: <%s> created as device (%ld, %ld)." 2765c51f124SMoriah Waterland 2775c51f124SMoriah Waterland #define WRN_QV_SIZE "WARNING: quick verify of <%s>; wrong size." 2785c51f124SMoriah Waterland #define WRN_QV_MTIME "WARNING: quick verify of <%s>; wrong mod time." 2795c51f124SMoriah Waterland 2805c51f124SMoriah Waterland #define ERR_PKG_INTERNAL "Internal package library failure file %s line %d" 2815c51f124SMoriah Waterland #define ERR_UNKNOWN "unable to determine object type" 2825c51f124SMoriah Waterland #define ERR_EXIST "pathname does not exist" 2835c51f124SMoriah Waterland #define ERR_FTYPE "file type <%c> expected <%c> actual" 2845c51f124SMoriah Waterland #define ERR_FTYPED "<%s> is a door and is not being modified" 2855c51f124SMoriah Waterland #define ERR_LINK "pathname not properly linked to <%s>" 2865c51f124SMoriah Waterland #define ERR_SLINK "pathname not symbolically linked to <%s>" 2875c51f124SMoriah Waterland #define ERR_MTIME "modtime <%s> expected <%s> actual" 2885c51f124SMoriah Waterland #define ERR_SIZE "file size <%llu> expected <%llu> actual" 2895c51f124SMoriah Waterland #define ERR_CKSUM "file cksum <%ld> expected <%ld> actual" 2905c51f124SMoriah Waterland #define ERR_NO_CKSUM "unable to checksum, may need to re-run command as " \ 2915c51f124SMoriah Waterland "user \"root\"" 292*4656d474SGarrett D'Amore #define ERR_MAJMIN "major/minor device <%ld, %ld> " \ 293*4656d474SGarrett D'Amore "expected <%ld, %ld> actual" 294*4656d474SGarrett D'Amore #define ERR_PERM "permissions <%04lo> expected <%04lo> actual" 2955c51f124SMoriah Waterland #define ERR_GROUP "group name <%s> expected <%s> actual" 2965c51f124SMoriah Waterland #define ERR_OWNER "owner name <%s> expected <%s> actual" 2975c51f124SMoriah Waterland #define ERR_MODFAIL "unable to fix modification time" 2985c51f124SMoriah Waterland #define ERR_LINKFAIL "unable to create link to <%s>" 2995c51f124SMoriah Waterland #define ERR_LINKISDIR "<%s> is a directory, link() not performed" 3005c51f124SMoriah Waterland #define ERR_SLINKFAIL "unable to create symbolic link to <%s>" 3015c51f124SMoriah Waterland #define ERR_DIRFAIL "unable to create directory" 3025c51f124SMoriah Waterland #define ERR_CDEVFAIL "unable to create character-special device" 3035c51f124SMoriah Waterland #define ERR_BDEVFAIL "unable to create block-special device" 3045c51f124SMoriah Waterland #define ERR_PIPEFAIL "unable to create named pipe" 3055c51f124SMoriah Waterland #define ERR_ATTRFAIL "unable to fix attributes" 3065c51f124SMoriah Waterland #define ERR_BADGRPID "unable to determine group name for gid <%d>" 3075c51f124SMoriah Waterland #define ERR_BADUSRID "unable to determine owner name for uid <%d>" 3085c51f124SMoriah Waterland #define ERR_BADGRPNM "group name <%s> not found in group table(s)" 3095c51f124SMoriah Waterland #define ERR_BADUSRNM "owner name <%s> not found in passwd table(s)" 3105c51f124SMoriah Waterland #define ERR_GETWD "unable to determine current working directory" 3115c51f124SMoriah Waterland #define ERR_CHDIR "unable to change current working directory to <%s>" 3125c51f124SMoriah Waterland #define ERR_RMDIR "unable to remove existing directory at <%s>" 3135c51f124SMoriah Waterland 3145c51f124SMoriah Waterland /* others */ 3155c51f124SMoriah Waterland #define ERR_ISCPIO_OPEN "iscpio(): open(%s) failed!" 3165c51f124SMoriah Waterland #define ERR_ISCPIO_FSTAT "iscpio(): fstat(%s) failed!" 3175c51f124SMoriah Waterland #define ERR_ISCPIO_READ "iscpio(): read(%s) failed!" 3185c51f124SMoriah Waterland #define ERR_ISCPIO_NOCPIO "iscpio(): <%s> is not a cpio archive!" 3195c51f124SMoriah Waterland 3205c51f124SMoriah Waterland #define ERR_DUPFAIL "%s: strdup(%s) failed.\n" 3215c51f124SMoriah Waterland #define ERR_ADDFAIL "%s: add_cache() failed.\n" 3225c51f124SMoriah Waterland #define ERR_BADMEMB "%s: %s in \"%s\" %s structure is invalid.\n" 3235c51f124SMoriah Waterland #define ERR_NOGRP "dup_gr_ent(): no group entry provided.\n" 3245c51f124SMoriah Waterland #define ERR_NOPWD "dup_pw_ent(): no passwd entry provided.\n" 3255c51f124SMoriah Waterland #define ERR_NOINIT "%s: init_cache() failed.\n" 3265c51f124SMoriah Waterland #define ERR_MALLOC "%s: malloc(%d) failed for %s.\n" 3275c51f124SMoriah Waterland 3285c51f124SMoriah Waterland #define ERR_TOO_MANY_ARGS "too many arguments passed to pkgexecl " \ 3295c51f124SMoriah Waterland "for command <%s>" 330*4656d474SGarrett D'Amore #define ERR_WAIT_FAILED "wait for process %ld failed, status " \ 331*4656d474SGarrett D'Amore "<0x%08x> errno <%d> (%s)" 3325c51f124SMoriah Waterland #define ERR_FORK_FAILED "fork() failed errno=%d (%s)" 3335c51f124SMoriah Waterland #define ERR_FREOPEN "freopen(%s, \"%s\", %s) failed, errno=%d (%s)" 3345c51f124SMoriah Waterland #define ERR_FDOPEN "fdopen(%d, \"%s\") failed, errno=%d (%s)" 3355c51f124SMoriah Waterland #define ERR_CLOSE "close(%d) failed, errno=%d" 3365c51f124SMoriah Waterland #define ERR_SETGID "setgid(%d) failed." 3375c51f124SMoriah Waterland #define ERR_SETUID "setuid(%d) failed." 3385c51f124SMoriah Waterland #define ERR_EX_FAIL "exec of %s failed, errno=%d" 3395c51f124SMoriah Waterland 3405c51f124SMoriah Waterland /* pkgweb errors */ 3415c51f124SMoriah Waterland #define MSG_DWNLD "\n## Downloading..." 3425c51f124SMoriah Waterland #define ERR_DWNLD_FAILED "\n## After %d retries, unable to complete transfer" 3435c51f124SMoriah Waterland #define MSG_DWNLD_TIMEOUT "\n## Timed out, retrying..." 3445c51f124SMoriah Waterland #define MSG_DWNLD_CONNREF "\n## Connection to <%s> refused, retrying..." 3455c51f124SMoriah Waterland #define MSG_DWNLD_HOSTDWN "\n## <%s> not responding, retrying..." 3465c51f124SMoriah Waterland #define MSG_DWNLD_PART "\n## Found partially downloaded file <%s> of " \ 3475c51f124SMoriah Waterland "size <%ld> bytes. To force a complete " \ 3485c51f124SMoriah Waterland "re-download, delete this file and try again" 3495c51f124SMoriah Waterland #define MSG_DWNLD_PREV "\n## Using previously spooled package datastream <%s>" 3505c51f124SMoriah Waterland #define MSG_DWNLD_CONT "\n## Continuing previously attempted download..." 3515c51f124SMoriah Waterland #define MSG_DWNLD_COMPLETE "## Download Complete\n" 3525c51f124SMoriah Waterland 3535c51f124SMoriah Waterland #define ERR_DWNLD_NO_CONT "unable to open partially downloaded file <%s> " \ 3545c51f124SMoriah Waterland "for appending" 3555c51f124SMoriah Waterland #define ERR_BAD_PATH "unable to locate keystore." 3565c51f124SMoriah Waterland #define ERR_EMPTYPATH "No valid path exists for the keystore file." 3575c51f124SMoriah Waterland #define ERR_RETRIES "The number of server retries is not a valid " \ 3585c51f124SMoriah Waterland "value. Please specify a value within the range of %d - %d." 3595c51f124SMoriah Waterland #define ERR_TIMEOUT "The network timeout value is not a valid " \ 3605c51f124SMoriah Waterland "value. Please specify a value within the range of %d - %d." 3615c51f124SMoriah Waterland #define ERR_PARSE_URL "unable to parse the url <%s>." 3625c51f124SMoriah Waterland #define ERR_MEM "unable to allocate memory." 3635c51f124SMoriah Waterland #define ERR_HTTPS_PASSWD "unable set password for HTTPS connection." 3645c51f124SMoriah Waterland #define ERR_HTTPS_CA "unable to set CA file for HTTPS connection." 3655c51f124SMoriah Waterland #define ERR_HTTP "Failure occurred with http(s) negotiation: <%s>" 3665c51f124SMoriah Waterland #define ERR_WRITE "Cannot write to file <%s> : <%s>" 3675c51f124SMoriah Waterland #define ERR_READ "Cannot read from file <%s> : <%s>" 3685c51f124SMoriah Waterland #define ERR_SVR_RESP "unable to establish a connection with the http(s) server." 3695c51f124SMoriah Waterland #define ERR_INIT_CONN "unable to establish a connection with <%s>." 3705c51f124SMoriah Waterland #define ERR_INIT_SESS "unable to intialize download session for <%s>." 3715c51f124SMoriah Waterland #define ERR_INIT_CONN_PROXY "unable to establish a connection with <%s> " \ 3725c51f124SMoriah Waterland "using <%s> as the proxy" 3735c51f124SMoriah Waterland #define ERR_CLOSE_CONN "unable to close the connection with <%s>." 3745c51f124SMoriah Waterland #define ERR_NO_HEAD_VAL "HTTP Response did not include header <%s>." 3755c51f124SMoriah Waterland /* CSTYLED */ 3765c51f124SMoriah Waterland #define ERR_BAD_HEAD_VAL "HTTP Header value \"<%s>: <%s>\" unusable or " \ 3775c51f124SMoriah Waterland "unparseable." 3785c51f124SMoriah Waterland #define ERR_BAD_CONTENT "The package <%s> attempting to be installed " \ 3795c51f124SMoriah Waterland "is illegal." 3805c51f124SMoriah Waterland #define ERR_DWNLD "unable to download package datastream from <%s>." 3815c51f124SMoriah Waterland #define ERR_OPEN_TMP "unable to open temporary file for writing." 3825c51f124SMoriah Waterland #define ERR_WRITE_TMP "unable to write to temporary file." 3835c51f124SMoriah Waterland #define ERR_DISK_SPACE "Not enough disk space is available to download " \ 3845c51f124SMoriah Waterland "package to\n%s. %llukb needed, %llukb available." 3855c51f124SMoriah Waterland #define ERR_CERTS "unable to find a valid certificate in <%s>." 3865c51f124SMoriah Waterland #define ERR_CERTCHAIN "unable to build certificate chain for subject <%s>:<%s>." 3875c51f124SMoriah Waterland #define ERR_ILL_ENV "The environment variable <%s=%s> is illegal" 3885c51f124SMoriah Waterland #define ERR_BAD_PROXY "Invalid proxy specification: <%s>" 3895c51f124SMoriah Waterland #define ERR_TMPDIR "unable to find temporary directory <%s>" 3905c51f124SMoriah Waterland #define ERR_MEM "unable to allocate memory." 3915c51f124SMoriah Waterland #define ERR_NO_DWNLD_DIR "No download directory available." 3925c51f124SMoriah Waterland #define MSG_OCSP_VERIFY "## Contacting OCSP Responder <%s> for " \ 3935c51f124SMoriah Waterland "certificate <%s> status" 3945c51f124SMoriah Waterland #define MSG_OCSP_VERIFY_PROXY "## Contacting OCSP Responder <%s> through " \ 3955c51f124SMoriah Waterland "proxy <%s:%d> for certificate <%s> status" 3965c51f124SMoriah Waterland #define ERR_OCSP_PARSE "OCSP Responder URL <%s> invalid or unparseable" 3975c51f124SMoriah Waterland #define ERR_OCSP_RESP_PARSE "OCSP Response <%s> unparseable or empty" 3985c51f124SMoriah Waterland #define ERR_OCSP_RESP_NOTOK "OCSP Request failed. Expected status " \ 3995c51f124SMoriah Waterland "<%d>, got <%d>, Reason=<%s>" 4005c51f124SMoriah Waterland #define WRN_OCSP_RESP_NONCE "WARNING: Invalid or no nonce found in " \ 4015c51f124SMoriah Waterland "OCSP response." 4025c51f124SMoriah Waterland #define ERR_OCSP_RESP_TYPE "OCSP response message type invalid: <%s>, " \ 4035c51f124SMoriah Waterland "expecting <%s>" 4045c51f124SMoriah Waterland #define ERR_OCSP_CONNECT "Cannot connect to OCSP Responder <%s> port <%d>" 4055c51f124SMoriah Waterland #define ERR_OCSP_SEND "Cannot send OCSP request to OCSP Responder <%s>" 4065c51f124SMoriah Waterland #define ERR_OCSP_READ "Cannot read OCSP response from OCSP Responder <%s>" 4075c51f124SMoriah Waterland #define ERR_OCSP_RESPONDER "OCSP Responder cannot process OCSP Request" 4085c51f124SMoriah Waterland #define ERR_OCSP_UNSUP "Unsupported OCSP Option <%s>" 4095c51f124SMoriah Waterland #define ERR_OCSP_VERIFY_NOTIME "Cannot access system time() to determine " \ 4105c51f124SMoriah Waterland "OCSP Response validity" 4115c51f124SMoriah Waterland #define ERR_OCSP_VERIFY_SIG "OCSP Response, signed by <%s>, cannot be " \ 4125c51f124SMoriah Waterland "verified: <%s>" 4135c51f124SMoriah Waterland #define ERR_OCSP_VERIFY_FAIL "unable to validate response from OCSP " \ 4145c51f124SMoriah Waterland "Responder <%s>" 4155c51f124SMoriah Waterland #define ERR_OCSP_VERIFY_NO_STATUS "OCSP Responder did not supply validity " \ 4165c51f124SMoriah Waterland "of certificate <%s> " 4175c51f124SMoriah Waterland #define ERR_OCSP_VERIFY_VALIDITY_NOTBEFORE "OCSP Response is only valid " \ 4185c51f124SMoriah Waterland "after <%s>. Current time is <%s>." 4195c51f124SMoriah Waterland #define ERR_OCSP_VERIFY_VALIDITY "OCSP Response is only valid from <%s> " \ 4205c51f124SMoriah Waterland "to <%s>. Current time is <%s>." 4215c51f124SMoriah Waterland #define ERR_OCSP_VERIFY_STATUS "OCSP Responder indicates certificate <%s> " \ 4225c51f124SMoriah Waterland "status is <%s>" 4235c51f124SMoriah Waterland #define ERR_OCSP_VERIFY "OCSP Responder rejected certificate, or did not " \ 4245c51f124SMoriah Waterland "recognize" 4255c51f124SMoriah Waterland #define ERR_OCSP_NO_URI "No OCSP Responder URL" 4265c51f124SMoriah Waterland 4275c51f124SMoriah Waterland #define MSG_BASE_USED "Using <%s> as the package base directory." 4285c51f124SMoriah Waterland 4295c51f124SMoriah Waterland #ifdef __cplusplus 4305c51f124SMoriah Waterland } 4315c51f124SMoriah Waterland #endif 4325c51f124SMoriah Waterland 4335c51f124SMoriah Waterland #endif /* _PKGLIBMSGS_H */ 434