1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/security/nss/lib/base/errorval.c Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,62 @@ 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 + * errorval.c 1.10 + * 1.11 + * This file contains the actual error constants used in NSS. 1.12 + */ 1.13 + 1.14 +#ifndef NSSBASET_H 1.15 +#include "nssbaset.h" 1.16 +#endif /* NSSBASET_H */ 1.17 + 1.18 +const NSSError NSS_ERROR_NO_ERROR = 0; 1.19 +const NSSError NSS_ERROR_INTERNAL_ERROR = 1; 1.20 +const NSSError NSS_ERROR_NO_MEMORY = 2; 1.21 +const NSSError NSS_ERROR_INVALID_POINTER = 3; 1.22 +const NSSError NSS_ERROR_INVALID_ARENA = 4; 1.23 +const NSSError NSS_ERROR_INVALID_ARENA_MARK = 5; 1.24 +const NSSError NSS_ERROR_DUPLICATE_POINTER = 6; 1.25 +const NSSError NSS_ERROR_POINTER_NOT_REGISTERED = 7; 1.26 +const NSSError NSS_ERROR_TRACKER_NOT_EMPTY = 8; 1.27 +const NSSError NSS_ERROR_TRACKER_NOT_INITIALIZED = 9; 1.28 +const NSSError NSS_ERROR_ARENA_MARKED_BY_ANOTHER_THREAD = 10; 1.29 +const NSSError NSS_ERROR_VALUE_TOO_LARGE = 11; 1.30 +const NSSError NSS_ERROR_UNSUPPORTED_TYPE = 12; 1.31 +const NSSError NSS_ERROR_BUFFER_TOO_SHORT = 13; 1.32 +const NSSError NSS_ERROR_INVALID_ATOB_CONTEXT = 14; 1.33 +const NSSError NSS_ERROR_INVALID_BASE64 = 15; 1.34 +const NSSError NSS_ERROR_INVALID_BTOA_CONTEXT = 16; 1.35 +const NSSError NSS_ERROR_INVALID_ITEM = 17; 1.36 +const NSSError NSS_ERROR_INVALID_STRING = 18; 1.37 +const NSSError NSS_ERROR_INVALID_ASN1ENCODER = 19; 1.38 +const NSSError NSS_ERROR_INVALID_ASN1DECODER = 20; 1.39 + 1.40 +const NSSError NSS_ERROR_INVALID_BER = 21; 1.41 +const NSSError NSS_ERROR_INVALID_ATAV = 22; 1.42 +const NSSError NSS_ERROR_INVALID_ARGUMENT = 23; 1.43 +const NSSError NSS_ERROR_INVALID_UTF8 = 24; 1.44 +const NSSError NSS_ERROR_INVALID_NSSOID = 25; 1.45 +const NSSError NSS_ERROR_UNKNOWN_ATTRIBUTE = 26; 1.46 + 1.47 +const NSSError NSS_ERROR_NOT_FOUND = 27; 1.48 + 1.49 +const NSSError NSS_ERROR_INVALID_PASSWORD = 28; 1.50 +const NSSError NSS_ERROR_USER_CANCELED = 29; 1.51 + 1.52 +const NSSError NSS_ERROR_MAXIMUM_FOUND = 30; 1.53 + 1.54 +const NSSError NSS_ERROR_CERTIFICATE_ISSUER_NOT_FOUND = 31; 1.55 + 1.56 +const NSSError NSS_ERROR_CERTIFICATE_IN_CACHE = 32; 1.57 + 1.58 +const NSSError NSS_ERROR_HASH_COLLISION = 33; 1.59 +const NSSError NSS_ERROR_DEVICE_ERROR = 34; 1.60 +const NSSError NSS_ERROR_INVALID_CERTIFICATE = 35; 1.61 +const NSSError NSS_ERROR_BUSY = 36; 1.62 +const NSSError NSS_ERROR_ALREADY_INITIALIZED = 37; 1.63 + 1.64 +const NSSError NSS_ERROR_PKCS11 = 38; 1.65 +