annotate common/errorcodes.h @ 975:b3695a3399de

(issue86) Install into default directories on Linux If the mozilla process is now started as root it will try to write into the default directories for NSS Shared and mozilla / thunderbird profiles. Cinst will now start the mozilla process once as root.
author Andre Heinecke <andre.heinecke@intevation.de>
date Fri, 29 Aug 2014 12:59:44 +0200
parents 17e1c8f37d72
children e210ecc32d69
rev   line source
404
17e1c8f37d72 Add License
Andre Heinecke <aheinecke@intevation.de>
parents: 315
diff changeset
1 /* Copyright (C) 2014 by Bundesamt für Sicherheit in der Informationstechnik
17e1c8f37d72 Add License
Andre Heinecke <aheinecke@intevation.de>
parents: 315
diff changeset
2 * Software engineering by Intevation GmbH
17e1c8f37d72 Add License
Andre Heinecke <aheinecke@intevation.de>
parents: 315
diff changeset
3 *
17e1c8f37d72 Add License
Andre Heinecke <aheinecke@intevation.de>
parents: 315
diff changeset
4 * This file is Free Software under the GNU GPL (v>=2)
17e1c8f37d72 Add License
Andre Heinecke <aheinecke@intevation.de>
parents: 315
diff changeset
5 * and comes with ABSOLUTELY NO WARRANTY!
17e1c8f37d72 Add License
Andre Heinecke <aheinecke@intevation.de>
parents: 315
diff changeset
6 * See LICENSE.txt for details.
17e1c8f37d72 Add License
Andre Heinecke <aheinecke@intevation.de>
parents: 315
diff changeset
7 */
60
6acb1dae6185 Use strn functions and improve error handling.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
8 #ifndef ERRORCODES_H
6acb1dae6185 Use strn functions and improve error handling.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
9 #define ERRORCODES_H
6acb1dae6185 Use strn functions and improve error handling.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
10
151
0df62decff90 Test if uninstall is handled as instruction
Andre Heinecke <aheinecke@intevation.de>
parents: 147
diff changeset
11 /* No error */
159
37c9653b8755 Rename NO_ERROR as NO_ERROR is already defined in windows.h
Andre Heinecke <aheinecke@intevation.de>
parents: 151
diff changeset
12 #define ERR_NO_ERROR 0
289
9ad00a3255f4 Change cinst from stdin input to use arguments.
Andre Heinecke <aheinecke@intevation.de>
parents: 278
diff changeset
13 /* Failed to read / verify the certificate list */
60
6acb1dae6185 Use strn functions and improve error handling.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
14 #define ERR_INVALID_INPUT_NO_LIST 2
6acb1dae6185 Use strn functions and improve error handling.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
15 /* Too much input for the installer process */
6acb1dae6185 Use strn functions and improve error handling.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
16 #define ERR_TOO_MUCH_INPUT 3
64
fb9f78f7ab2f Improve error handling free memory before exiting. Include line endings in Marker lines
Andre Heinecke <aheinecke@intevation.de>
parents: 60
diff changeset
17 /* Invalid signature */
fb9f78f7ab2f Improve error handling free memory before exiting. Include line endings in Marker lines
Andre Heinecke <aheinecke@intevation.de>
parents: 60
diff changeset
18 #define ERR_INVALID_SIGNATURE 4
fb9f78f7ab2f Improve error handling free memory before exiting. Include line endings in Marker lines
Andre Heinecke <aheinecke@intevation.de>
parents: 60
diff changeset
19 /* No instructions */
fb9f78f7ab2f Improve error handling free memory before exiting. Include line endings in Marker lines
Andre Heinecke <aheinecke@intevation.de>
parents: 60
diff changeset
20 #define ERR_NO_INSTRUCTIONS 5
fb9f78f7ab2f Improve error handling free memory before exiting. Include line endings in Marker lines
Andre Heinecke <aheinecke@intevation.de>
parents: 60
diff changeset
21 /* Instructions not valid (certs not part of certificate list) */
fb9f78f7ab2f Improve error handling free memory before exiting. Include line endings in Marker lines
Andre Heinecke <aheinecke@intevation.de>
parents: 60
diff changeset
22 #define ERR_INVALID_INSTRUCTIONS 6
68
8ffbb48528ae Add certificate installation for windows
Andre Heinecke <aheinecke@intevation.de>
parents: 64
diff changeset
23 /* Failed to access specified store */
8ffbb48528ae Add certificate installation for windows
Andre Heinecke <aheinecke@intevation.de>
parents: 64
diff changeset
24 #define ERR_STORE_ACCESS_DENIED 7
8ffbb48528ae Add certificate installation for windows
Andre Heinecke <aheinecke@intevation.de>
parents: 64
diff changeset
25 /* Failed to add certificate to store */
258
bf8c74992724 Fixed numbering of errors.
Sascha Wilde <wilde@intevation.de>
parents: 235
diff changeset
26 #define ERR_STORE_ADD_FAILURE 8
91
80ab2168760f Also add output size handling to str_append_str
Andre Heinecke <aheinecke@intevation.de>
parents: 68
diff changeset
27 /* Generic invalid input */
258
bf8c74992724 Fixed numbering of errors.
Sascha Wilde <wilde@intevation.de>
parents: 235
diff changeset
28 #define ERR_INVALID_INPUT 9
259
20d515604daa Added new module with helper functions to parse certs.
Sascha Wilde <wilde@intevation.de>
parents: 258
diff changeset
29 /* Generic invalid certificate */
20d515604daa Added new module with helper functions to parse certs.
Sascha Wilde <wilde@intevation.de>
parents: 258
diff changeset
30 #define ERR_INVALID_CERT 10
289
9ad00a3255f4 Change cinst from stdin input to use arguments.
Andre Heinecke <aheinecke@intevation.de>
parents: 278
diff changeset
31 /* Invalid parameters in call */
9ad00a3255f4 Change cinst from stdin input to use arguments.
Andre Heinecke <aheinecke@intevation.de>
parents: 278
diff changeset
32 #define ERR_INVALID_PARAMS 11
60
6acb1dae6185 Use strn functions and improve error handling.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
33
122
65941f3d5db8 Added missing stuff from last commit.
Sascha Wilde <wilde@intevation.de>
parents: 91
diff changeset
34 /***********************************************************************
65941f3d5db8 Added missing stuff from last commit.
Sascha Wilde <wilde@intevation.de>
parents: 91
diff changeset
35 * mozilla specific errors and warnings
145
27ebd96798c4 Fixed mox error ranges -- return codes can only use 8 bit.
Sascha Wilde <wilde@intevation.de>
parents: 122
diff changeset
36 * errors range from 0x0081 to 0x08F
27ebd96798c4 Fixed mox error ranges -- return codes can only use 8 bit.
Sascha Wilde <wilde@intevation.de>
parents: 122
diff changeset
37 * warnings from 0x0091 to 0x0098
122
65941f3d5db8 Added missing stuff from last commit.
Sascha Wilde <wilde@intevation.de>
parents: 91
diff changeset
38 * Warnings might be ORed together ...
65941f3d5db8 Added missing stuff from last commit.
Sascha Wilde <wilde@intevation.de>
parents: 91
diff changeset
39 */
65941f3d5db8 Added missing stuff from last commit.
Sascha Wilde <wilde@intevation.de>
parents: 91
diff changeset
40
173
a9e4454dee97 Implemented searching $HOME/.mozilla for profiles.ini on Linux.
Sascha Wilde <wilde@intevation.de>
parents: 159
diff changeset
41 /* Error: could not determine current users HOME */
a9e4454dee97 Implemented searching $HOME/.mozilla for profiles.ini on Linux.
Sascha Wilde <wilde@intevation.de>
parents: 159
diff changeset
42 #define ERR_MOZ_HOMELESS 0x0081
235
0c4d65a7cd14 Started to write input parser.
Sascha Wilde <wilde@intevation.de>
parents: 173
diff changeset
43 #define ERR_MOZ_INVALID_INPUT 0x0082
315
b832231640ab Read from file instead of stdin, if given.
Sascha Wilde <wilde@intevation.de>
parents: 289
diff changeset
44 /* Error: Called with wrong number of arguments */
b832231640ab Read from file instead of stdin, if given.
Sascha Wilde <wilde@intevation.de>
parents: 289
diff changeset
45 #define ERR_MOZ_WRONG_ARGC 0x0083
b832231640ab Read from file instead of stdin, if given.
Sascha Wilde <wilde@intevation.de>
parents: 289
diff changeset
46 #define ERR_MOZ_FAILED_TO_OPEN_INPUT 0x0084
173
a9e4454dee97 Implemented searching $HOME/.mozilla for profiles.ini on Linux.
Sascha Wilde <wilde@intevation.de>
parents: 159
diff changeset
47
122
65941f3d5db8 Added missing stuff from last commit.
Sascha Wilde <wilde@intevation.de>
parents: 91
diff changeset
48 /* Warning: Failed to read profile.ini */
145
27ebd96798c4 Fixed mox error ranges -- return codes can only use 8 bit.
Sascha Wilde <wilde@intevation.de>
parents: 122
diff changeset
49 #define WARN_MOZ_FAILED_TO_OPEN_INI 0x0091
147
fc9af77b06b9 Completed profile.ini parser.
Sascha Wilde <wilde@intevation.de>
parents: 145
diff changeset
50 /* Warning: Some profile paths from profile.ini don't exist */
fc9af77b06b9 Completed profile.ini parser.
Sascha Wilde <wilde@intevation.de>
parents: 145
diff changeset
51 #define WARN_MOZ_PROFILE_DOES_NOT_EXIST 0x0092
278
539c856cb5da Ditched warning about no profiles for separate failed add/remove warnings.
Sascha Wilde <wilde@intevation.de>
parents: 277
diff changeset
52 /* Warning: could not install some certs */
539c856cb5da Ditched warning about no profiles for separate failed add/remove warnings.
Sascha Wilde <wilde@intevation.de>
parents: 277
diff changeset
53 #define WARN_MOZ_COULD_NOT_ADD_CERT 0x0094
539c856cb5da Ditched warning about no profiles for separate failed add/remove warnings.
Sascha Wilde <wilde@intevation.de>
parents: 277
diff changeset
54 /* Warning: could not remove some certs */
539c856cb5da Ditched warning about no profiles for separate failed add/remove warnings.
Sascha Wilde <wilde@intevation.de>
parents: 277
diff changeset
55 #define WARN_MOZ_COULD_NOT_REMOVE_CERT 0x0098
122
65941f3d5db8 Added missing stuff from last commit.
Sascha Wilde <wilde@intevation.de>
parents: 91
diff changeset
56
60
6acb1dae6185 Use strn functions and improve error handling.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
57 #endif

http://wald.intevation.org/projects/trustbridge/