security/nss/cmd/pk12util/pk12util.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/security/nss/cmd/pk12util/pk12util.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,41 @@
     1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.7 +
     1.8 +/*
     1.9 + * ERROR codes in pk12util
    1.10 + * - should be organized better later
    1.11 + */
    1.12 +#define PK12UERR_USER_CANCELLED 1
    1.13 +#define PK12UERR_USAGE 2
    1.14 +#define PK12UERR_CERTDB_OPEN 8
    1.15 +#define PK12UERR_KEYDB_OPEN 9
    1.16 +#define PK12UERR_INIT_FILE 10
    1.17 +#define PK12UERR_UNICODECONV 11
    1.18 +#define PK12UERR_TMPDIGCREATE 12
    1.19 +#define PK12UERR_PK11GETSLOT 13
    1.20 +#define PK12UERR_PK12DECODESTART 14
    1.21 +#define PK12UERR_IMPORTFILEREAD 15
    1.22 +#define PK12UERR_DECODE 16
    1.23 +#define PK12UERR_DECODEVERIFY 17
    1.24 +#define PK12UERR_DECODEVALIBAGS 18
    1.25 +#define PK12UERR_DECODEIMPTBAGS 19
    1.26 +#define PK12UERR_CERTALREADYEXISTS 20
    1.27 +#define PK12UERR_PATCHDB 22
    1.28 +#define PK12UERR_GETDEFCERTDB 23
    1.29 +#define PK12UERR_FINDCERTBYNN 24
    1.30 +#define PK12UERR_EXPORTCXCREATE 25
    1.31 +#define PK12UERR_PK12ADDPWDINTEG 26
    1.32 +#define PK12UERR_CERTKEYSAFE 27
    1.33 +#define PK12UERR_ADDCERTKEY 28
    1.34 +#define PK12UERR_ENCODE 29
    1.35 +#define PK12UERR_INVALIDALGORITHM 30
    1.36 +
    1.37 +
    1.38 +/* additions for importing and exporting PKCS 12 files */
    1.39 +typedef struct p12uContextStr {
    1.40 +    char        *filename;    /* name of file */
    1.41 +	PRFileDesc  *file;        /* pointer to file */
    1.42 +	PRBool       error;       /* error occurred? */
    1.43 +	int          errorValue;  /* which error occurred? */
    1.44 +} p12uContext;

mercurial