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 | %{ C++ |
michael@0 | 9 | #define NS_CMSMESSAGE_CONTRACTID "@mozilla.org/nsCMSMessage;1" |
michael@0 | 10 | %} |
michael@0 | 11 | |
michael@0 | 12 | [ptr] native UnsignedCharPtr(unsigned char); |
michael@0 | 13 | |
michael@0 | 14 | interface nsIX509Cert; |
michael@0 | 15 | interface nsIArray; |
michael@0 | 16 | |
michael@0 | 17 | /** |
michael@0 | 18 | * nsICMSMessage |
michael@0 | 19 | * Interface to a CMS Message |
michael@0 | 20 | */ |
michael@0 | 21 | [uuid(a4557478-ae16-11d5-ba4b-00108303b117)] |
michael@0 | 22 | interface nsICMSMessage : nsISupports |
michael@0 | 23 | { |
michael@0 | 24 | void contentIsSigned(out boolean aSigned); |
michael@0 | 25 | void contentIsEncrypted(out boolean aEncrypted); |
michael@0 | 26 | void getSignerCommonName(out string aName); |
michael@0 | 27 | void getSignerEmailAddress(out string aEmail); |
michael@0 | 28 | void getSignerCert(out nsIX509Cert scert); |
michael@0 | 29 | void getEncryptionCert(out nsIX509Cert ecert); |
michael@0 | 30 | void verifySignature(); |
michael@0 | 31 | void verifyDetachedSignature(in UnsignedCharPtr aDigestData, in unsigned long aDigestDataLen); |
michael@0 | 32 | void CreateEncrypted(in nsIArray aRecipientCerts); |
michael@0 | 33 | void CreateSigned(in nsIX509Cert scert, in nsIX509Cert ecert, in UnsignedCharPtr aDigestData, in unsigned long aDigestDataLen); |
michael@0 | 34 | }; |
michael@0 | 35 |