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