OLD | NEW |
1 /* This Source Code Form is subject to the terms of the Mozilla Public | 1 /* This Source Code Form is subject to the terms of the Mozilla Public |
2 * License, v. 2.0. If a copy of the MPL was not distributed with this | 2 * License, v. 2.0. If a copy of the MPL was not distributed with this |
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
4 | 4 |
5 /* | 5 /* |
6 * ERROR codes in pk12util | 6 * ERROR codes in pk12util |
7 * - should be organized better later | 7 * - should be organized better later |
8 */ | 8 */ |
9 #define PK12UERR_USER_CANCELLED 1 | 9 #define PK12UERR_USER_CANCELLED 1 |
10 #define PK12UERR_USAGE 2 | 10 #define PK12UERR_USAGE 2 |
(...skipping 13 matching lines...) Expand all Loading... |
24 #define PK12UERR_PATCHDB 22 | 24 #define PK12UERR_PATCHDB 22 |
25 #define PK12UERR_GETDEFCERTDB 23 | 25 #define PK12UERR_GETDEFCERTDB 23 |
26 #define PK12UERR_FINDCERTBYNN 24 | 26 #define PK12UERR_FINDCERTBYNN 24 |
27 #define PK12UERR_EXPORTCXCREATE 25 | 27 #define PK12UERR_EXPORTCXCREATE 25 |
28 #define PK12UERR_PK12ADDPWDINTEG 26 | 28 #define PK12UERR_PK12ADDPWDINTEG 26 |
29 #define PK12UERR_CERTKEYSAFE 27 | 29 #define PK12UERR_CERTKEYSAFE 27 |
30 #define PK12UERR_ADDCERTKEY 28 | 30 #define PK12UERR_ADDCERTKEY 28 |
31 #define PK12UERR_ENCODE 29 | 31 #define PK12UERR_ENCODE 29 |
32 #define PK12UERR_INVALIDALGORITHM 30 | 32 #define PK12UERR_INVALIDALGORITHM 30 |
33 | 33 |
34 | |
35 /* additions for importing and exporting PKCS 12 files */ | 34 /* additions for importing and exporting PKCS 12 files */ |
36 typedef struct p12uContextStr { | 35 typedef struct p12uContextStr { |
37 char *filename; /* name of file */ | 36 char *filename; /* name of file */ |
38 » PRFileDesc *file; /* pointer to file */ | 37 PRFileDesc *file; /* pointer to file */ |
39 » PRBool error; /* error occurred? */ | 38 PRBool error; /* error occurred? */ |
40 » int errorValue; /* which error occurred? */ | 39 int errorValue; /* which error occurred? */ |
41 } p12uContext; | 40 } p12uContext; |
OLD | NEW |