Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
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 | * errorval.c |
michael@0 | 7 | * |
michael@0 | 8 | * This file contains the actual error constants used in NSS. |
michael@0 | 9 | */ |
michael@0 | 10 | |
michael@0 | 11 | #ifndef NSSBASET_H |
michael@0 | 12 | #include "nssbaset.h" |
michael@0 | 13 | #endif /* NSSBASET_H */ |
michael@0 | 14 | |
michael@0 | 15 | const NSSError NSS_ERROR_NO_ERROR = 0; |
michael@0 | 16 | const NSSError NSS_ERROR_INTERNAL_ERROR = 1; |
michael@0 | 17 | const NSSError NSS_ERROR_NO_MEMORY = 2; |
michael@0 | 18 | const NSSError NSS_ERROR_INVALID_POINTER = 3; |
michael@0 | 19 | const NSSError NSS_ERROR_INVALID_ARENA = 4; |
michael@0 | 20 | const NSSError NSS_ERROR_INVALID_ARENA_MARK = 5; |
michael@0 | 21 | const NSSError NSS_ERROR_DUPLICATE_POINTER = 6; |
michael@0 | 22 | const NSSError NSS_ERROR_POINTER_NOT_REGISTERED = 7; |
michael@0 | 23 | const NSSError NSS_ERROR_TRACKER_NOT_EMPTY = 8; |
michael@0 | 24 | const NSSError NSS_ERROR_TRACKER_NOT_INITIALIZED = 9; |
michael@0 | 25 | const NSSError NSS_ERROR_ARENA_MARKED_BY_ANOTHER_THREAD = 10; |
michael@0 | 26 | const NSSError NSS_ERROR_VALUE_TOO_LARGE = 11; |
michael@0 | 27 | const NSSError NSS_ERROR_UNSUPPORTED_TYPE = 12; |
michael@0 | 28 | const NSSError NSS_ERROR_BUFFER_TOO_SHORT = 13; |
michael@0 | 29 | const NSSError NSS_ERROR_INVALID_ATOB_CONTEXT = 14; |
michael@0 | 30 | const NSSError NSS_ERROR_INVALID_BASE64 = 15; |
michael@0 | 31 | const NSSError NSS_ERROR_INVALID_BTOA_CONTEXT = 16; |
michael@0 | 32 | const NSSError NSS_ERROR_INVALID_ITEM = 17; |
michael@0 | 33 | const NSSError NSS_ERROR_INVALID_STRING = 18; |
michael@0 | 34 | const NSSError NSS_ERROR_INVALID_ASN1ENCODER = 19; |
michael@0 | 35 | const NSSError NSS_ERROR_INVALID_ASN1DECODER = 20; |
michael@0 | 36 | |
michael@0 | 37 | const NSSError NSS_ERROR_INVALID_BER = 21; |
michael@0 | 38 | const NSSError NSS_ERROR_INVALID_ATAV = 22; |
michael@0 | 39 | const NSSError NSS_ERROR_INVALID_ARGUMENT = 23; |
michael@0 | 40 | const NSSError NSS_ERROR_INVALID_UTF8 = 24; |
michael@0 | 41 | const NSSError NSS_ERROR_INVALID_NSSOID = 25; |
michael@0 | 42 | const NSSError NSS_ERROR_UNKNOWN_ATTRIBUTE = 26; |
michael@0 | 43 | |
michael@0 | 44 | const NSSError NSS_ERROR_NOT_FOUND = 27; |
michael@0 | 45 | |
michael@0 | 46 | const NSSError NSS_ERROR_INVALID_PASSWORD = 28; |
michael@0 | 47 | const NSSError NSS_ERROR_USER_CANCELED = 29; |
michael@0 | 48 | |
michael@0 | 49 | const NSSError NSS_ERROR_MAXIMUM_FOUND = 30; |
michael@0 | 50 | |
michael@0 | 51 | const NSSError NSS_ERROR_CERTIFICATE_ISSUER_NOT_FOUND = 31; |
michael@0 | 52 | |
michael@0 | 53 | const NSSError NSS_ERROR_CERTIFICATE_IN_CACHE = 32; |
michael@0 | 54 | |
michael@0 | 55 | const NSSError NSS_ERROR_HASH_COLLISION = 33; |
michael@0 | 56 | const NSSError NSS_ERROR_DEVICE_ERROR = 34; |
michael@0 | 57 | const NSSError NSS_ERROR_INVALID_CERTIFICATE = 35; |
michael@0 | 58 | const NSSError NSS_ERROR_BUSY = 36; |
michael@0 | 59 | const NSSError NSS_ERROR_ALREADY_INITIALIZED = 37; |
michael@0 | 60 | |
michael@0 | 61 | const NSSError NSS_ERROR_PKCS11 = 38; |
michael@0 | 62 |