michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "nsISupports.idl" michael@0: michael@0: /** michael@0: * nsICMSMessageErrors michael@0: * Scriptable error constants for nsICMSMessage michael@0: */ michael@0: [scriptable,uuid(f2aec680-60a0-49f0-afe5-6cf1d3f15e0d)] michael@0: interface nsICMSMessageErrors : nsISupports michael@0: { michael@0: const long SUCCESS = 0; michael@0: const long GENERAL_ERROR = 1; michael@0: const long VERIFY_NOT_SIGNED = 1024; michael@0: const long VERIFY_NO_CONTENT_INFO = 1025; michael@0: const long VERIFY_BAD_DIGEST = 1026; michael@0: const long VERIFY_NOCERT = 1028; michael@0: const long VERIFY_UNTRUSTED = 1029; michael@0: const long VERIFY_ERROR_UNVERIFIED = 1031; michael@0: const long VERIFY_ERROR_PROCESSING = 1032; michael@0: const long VERIFY_BAD_SIGNATURE = 1033; michael@0: const long VERIFY_DIGEST_MISMATCH = 1034; michael@0: const long VERIFY_UNKNOWN_ALGO = 1035; michael@0: const long VERIFY_UNSUPPORTED_ALGO = 1036; michael@0: const long VERIFY_MALFORMED_SIGNATURE = 1037; michael@0: const long VERIFY_HEADER_MISMATCH = 1038; michael@0: const long VERIFY_NOT_YET_ATTEMPTED = 1039; michael@0: const long VERIFY_CERT_WITHOUT_ADDRESS = 1040; michael@0: michael@0: const long ENCRYPT_NO_BULK_ALG = 1056; michael@0: const long ENCRYPT_INCOMPLETE = 1057; michael@0: };