diff options
author | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
---|---|---|
committer | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
commit | 5f8de423f190bbb79a62f804151bc24824fa32d8 (patch) | |
tree | 10027f336435511475e392454359edea8e25895d /security/nss/cmd/pk12util/pk12util.h | |
parent | 49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff) | |
download | UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip |
Add m-esr52 at 52.6.0
Diffstat (limited to 'security/nss/cmd/pk12util/pk12util.h')
-rw-r--r-- | security/nss/cmd/pk12util/pk12util.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/security/nss/cmd/pk12util/pk12util.h b/security/nss/cmd/pk12util/pk12util.h new file mode 100644 index 000000000..d1588814e --- /dev/null +++ b/security/nss/cmd/pk12util/pk12util.h @@ -0,0 +1,40 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +/* + * ERROR codes in pk12util + * - should be organized better later + */ +#define PK12UERR_USER_CANCELLED 1 +#define PK12UERR_USAGE 2 +#define PK12UERR_CERTDB_OPEN 8 +#define PK12UERR_KEYDB_OPEN 9 +#define PK12UERR_INIT_FILE 10 +#define PK12UERR_UNICODECONV 11 +#define PK12UERR_TMPDIGCREATE 12 +#define PK12UERR_PK11GETSLOT 13 +#define PK12UERR_PK12DECODESTART 14 +#define PK12UERR_IMPORTFILEREAD 15 +#define PK12UERR_DECODE 16 +#define PK12UERR_DECODEVERIFY 17 +#define PK12UERR_DECODEVALIBAGS 18 +#define PK12UERR_DECODEIMPTBAGS 19 +#define PK12UERR_CERTALREADYEXISTS 20 +#define PK12UERR_PATCHDB 22 +#define PK12UERR_GETDEFCERTDB 23 +#define PK12UERR_FINDCERTBYNN 24 +#define PK12UERR_EXPORTCXCREATE 25 +#define PK12UERR_PK12ADDPWDINTEG 26 +#define PK12UERR_CERTKEYSAFE 27 +#define PK12UERR_ADDCERTKEY 28 +#define PK12UERR_ENCODE 29 +#define PK12UERR_INVALIDALGORITHM 30 + +/* additions for importing and exporting PKCS 12 files */ +typedef struct p12uContextStr { + char *filename; /* name of file */ + PRFileDesc *file; /* pointer to file */ + PRBool error; /* error occurred? */ + int errorValue; /* which error occurred? */ +} p12uContext; |