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 | /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
michael@0 | 2 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 3 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 4 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 5 | |
michael@0 | 6 | #include "nsISupports.idl" |
michael@0 | 7 | |
michael@0 | 8 | /** |
michael@0 | 9 | * nsICMSMessageErrors |
michael@0 | 10 | * Scriptable error constants for nsICMSMessage |
michael@0 | 11 | */ |
michael@0 | 12 | [scriptable,uuid(f2aec680-60a0-49f0-afe5-6cf1d3f15e0d)] |
michael@0 | 13 | interface nsICMSMessageErrors : nsISupports |
michael@0 | 14 | { |
michael@0 | 15 | const long SUCCESS = 0; |
michael@0 | 16 | const long GENERAL_ERROR = 1; |
michael@0 | 17 | const long VERIFY_NOT_SIGNED = 1024; |
michael@0 | 18 | const long VERIFY_NO_CONTENT_INFO = 1025; |
michael@0 | 19 | const long VERIFY_BAD_DIGEST = 1026; |
michael@0 | 20 | const long VERIFY_NOCERT = 1028; |
michael@0 | 21 | const long VERIFY_UNTRUSTED = 1029; |
michael@0 | 22 | const long VERIFY_ERROR_UNVERIFIED = 1031; |
michael@0 | 23 | const long VERIFY_ERROR_PROCESSING = 1032; |
michael@0 | 24 | const long VERIFY_BAD_SIGNATURE = 1033; |
michael@0 | 25 | const long VERIFY_DIGEST_MISMATCH = 1034; |
michael@0 | 26 | const long VERIFY_UNKNOWN_ALGO = 1035; |
michael@0 | 27 | const long VERIFY_UNSUPPORTED_ALGO = 1036; |
michael@0 | 28 | const long VERIFY_MALFORMED_SIGNATURE = 1037; |
michael@0 | 29 | const long VERIFY_HEADER_MISMATCH = 1038; |
michael@0 | 30 | const long VERIFY_NOT_YET_ATTEMPTED = 1039; |
michael@0 | 31 | const long VERIFY_CERT_WITHOUT_ADDRESS = 1040; |
michael@0 | 32 | |
michael@0 | 33 | const long ENCRYPT_NO_BULK_ALG = 1056; |
michael@0 | 34 | const long ENCRYPT_INCOMPLETE = 1057; |
michael@0 | 35 | }; |