security/nss/cmd/pk12util/pk12util.h

Wed, 31 Dec 2014 07:16:47 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:16:47 +0100
branch
TOR_BUG_9701
changeset 3
141e0f1194b1
permissions
-rw-r--r--

Revert simplistic fix pending revisit of Mozilla integration attempt.

michael@0 1 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 2 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 4
michael@0 5 /*
michael@0 6 * ERROR codes in pk12util
michael@0 7 * - should be organized better later
michael@0 8 */
michael@0 9 #define PK12UERR_USER_CANCELLED 1
michael@0 10 #define PK12UERR_USAGE 2
michael@0 11 #define PK12UERR_CERTDB_OPEN 8
michael@0 12 #define PK12UERR_KEYDB_OPEN 9
michael@0 13 #define PK12UERR_INIT_FILE 10
michael@0 14 #define PK12UERR_UNICODECONV 11
michael@0 15 #define PK12UERR_TMPDIGCREATE 12
michael@0 16 #define PK12UERR_PK11GETSLOT 13
michael@0 17 #define PK12UERR_PK12DECODESTART 14
michael@0 18 #define PK12UERR_IMPORTFILEREAD 15
michael@0 19 #define PK12UERR_DECODE 16
michael@0 20 #define PK12UERR_DECODEVERIFY 17
michael@0 21 #define PK12UERR_DECODEVALIBAGS 18
michael@0 22 #define PK12UERR_DECODEIMPTBAGS 19
michael@0 23 #define PK12UERR_CERTALREADYEXISTS 20
michael@0 24 #define PK12UERR_PATCHDB 22
michael@0 25 #define PK12UERR_GETDEFCERTDB 23
michael@0 26 #define PK12UERR_FINDCERTBYNN 24
michael@0 27 #define PK12UERR_EXPORTCXCREATE 25
michael@0 28 #define PK12UERR_PK12ADDPWDINTEG 26
michael@0 29 #define PK12UERR_CERTKEYSAFE 27
michael@0 30 #define PK12UERR_ADDCERTKEY 28
michael@0 31 #define PK12UERR_ENCODE 29
michael@0 32 #define PK12UERR_INVALIDALGORITHM 30
michael@0 33
michael@0 34
michael@0 35 /* additions for importing and exporting PKCS 12 files */
michael@0 36 typedef struct p12uContextStr {
michael@0 37 char *filename; /* name of file */
michael@0 38 PRFileDesc *file; /* pointer to file */
michael@0 39 PRBool error; /* error occurred? */
michael@0 40 int errorValue; /* which error occurred? */
michael@0 41 } p12uContext;

mercurial