1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/security/manager/ssl/public/nsICMSMessage.idl
3 : */
4 :
5 : #ifndef __gen_nsICMSMessage_h__
6 : #define __gen_nsICMSMessage_h__
7 :
8 :
9 : #ifndef __gen_nsISupports_h__
10 : #include "nsISupports.h"
11 : #endif
12 :
13 : /* For IDL files that don't want to include root IDL files. */
14 : #ifndef NS_NO_VTABLE
15 : #define NS_NO_VTABLE
16 : #endif
17 : #define NS_CMSMESSAGE_CONTRACTID "@mozilla.org/nsCMSMessage;1"
18 : class nsIX509Cert; /* forward declaration */
19 :
20 : class nsIArray; /* forward declaration */
21 :
22 :
23 : /* starting interface: nsICMSMessage */
24 : #define NS_ICMSMESSAGE_IID_STR "a4557478-ae16-11d5-ba4b-00108303b117"
25 :
26 : #define NS_ICMSMESSAGE_IID \
27 : {0xa4557478, 0xae16, 0x11d5, \
28 : { 0xba, 0x4b, 0x00, 0x10, 0x83, 0x03, 0xb1, 0x17 }}
29 :
30 0 : class NS_NO_VTABLE nsICMSMessage : public nsISupports {
31 : public:
32 :
33 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICMSMESSAGE_IID)
34 :
35 : /* void contentIsSigned (out boolean aSigned); */
36 : NS_IMETHOD ContentIsSigned(bool *aSigned NS_OUTPARAM) = 0;
37 :
38 : /* void contentIsEncrypted (out boolean aEncrypted); */
39 : NS_IMETHOD ContentIsEncrypted(bool *aEncrypted NS_OUTPARAM) = 0;
40 :
41 : /* void getSignerCommonName (out string aName); */
42 : NS_IMETHOD GetSignerCommonName(char * *aName NS_OUTPARAM) = 0;
43 :
44 : /* void getSignerEmailAddress (out string aEmail); */
45 : NS_IMETHOD GetSignerEmailAddress(char * *aEmail NS_OUTPARAM) = 0;
46 :
47 : /* void getSignerCert (out nsIX509Cert scert); */
48 : NS_IMETHOD GetSignerCert(nsIX509Cert * *scert NS_OUTPARAM) = 0;
49 :
50 : /* void getEncryptionCert (out nsIX509Cert ecert); */
51 : NS_IMETHOD GetEncryptionCert(nsIX509Cert * *ecert NS_OUTPARAM) = 0;
52 :
53 : /* void verifySignature (); */
54 : NS_IMETHOD VerifySignature(void) = 0;
55 :
56 : /* void verifyDetachedSignature (in UnsignedCharPtr aDigestData, in unsigned long aDigestDataLen); */
57 : NS_IMETHOD VerifyDetachedSignature(unsigned char *aDigestData, PRUint32 aDigestDataLen) = 0;
58 :
59 : /* void CreateEncrypted (in nsIArray aRecipientCerts); */
60 : NS_IMETHOD CreateEncrypted(nsIArray *aRecipientCerts) = 0;
61 :
62 : /* void CreateSigned (in nsIX509Cert scert, in nsIX509Cert ecert, in UnsignedCharPtr aDigestData, in unsigned long aDigestDataLen); */
63 : NS_IMETHOD CreateSigned(nsIX509Cert *scert, nsIX509Cert *ecert, unsigned char *aDigestData, PRUint32 aDigestDataLen) = 0;
64 :
65 : };
66 :
67 : NS_DEFINE_STATIC_IID_ACCESSOR(nsICMSMessage, NS_ICMSMESSAGE_IID)
68 :
69 : /* Use this macro when declaring classes that implement this interface. */
70 : #define NS_DECL_NSICMSMESSAGE \
71 : NS_IMETHOD ContentIsSigned(bool *aSigned NS_OUTPARAM); \
72 : NS_IMETHOD ContentIsEncrypted(bool *aEncrypted NS_OUTPARAM); \
73 : NS_IMETHOD GetSignerCommonName(char * *aName NS_OUTPARAM); \
74 : NS_IMETHOD GetSignerEmailAddress(char * *aEmail NS_OUTPARAM); \
75 : NS_IMETHOD GetSignerCert(nsIX509Cert * *scert NS_OUTPARAM); \
76 : NS_IMETHOD GetEncryptionCert(nsIX509Cert * *ecert NS_OUTPARAM); \
77 : NS_IMETHOD VerifySignature(void); \
78 : NS_IMETHOD VerifyDetachedSignature(unsigned char *aDigestData, PRUint32 aDigestDataLen); \
79 : NS_IMETHOD CreateEncrypted(nsIArray *aRecipientCerts); \
80 : NS_IMETHOD CreateSigned(nsIX509Cert *scert, nsIX509Cert *ecert, unsigned char *aDigestData, PRUint32 aDigestDataLen);
81 :
82 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
83 : #define NS_FORWARD_NSICMSMESSAGE(_to) \
84 : NS_IMETHOD ContentIsSigned(bool *aSigned NS_OUTPARAM) { return _to ContentIsSigned(aSigned); } \
85 : NS_IMETHOD ContentIsEncrypted(bool *aEncrypted NS_OUTPARAM) { return _to ContentIsEncrypted(aEncrypted); } \
86 : NS_IMETHOD GetSignerCommonName(char * *aName NS_OUTPARAM) { return _to GetSignerCommonName(aName); } \
87 : NS_IMETHOD GetSignerEmailAddress(char * *aEmail NS_OUTPARAM) { return _to GetSignerEmailAddress(aEmail); } \
88 : NS_IMETHOD GetSignerCert(nsIX509Cert * *scert NS_OUTPARAM) { return _to GetSignerCert(scert); } \
89 : NS_IMETHOD GetEncryptionCert(nsIX509Cert * *ecert NS_OUTPARAM) { return _to GetEncryptionCert(ecert); } \
90 : NS_IMETHOD VerifySignature(void) { return _to VerifySignature(); } \
91 : NS_IMETHOD VerifyDetachedSignature(unsigned char *aDigestData, PRUint32 aDigestDataLen) { return _to VerifyDetachedSignature(aDigestData, aDigestDataLen); } \
92 : NS_IMETHOD CreateEncrypted(nsIArray *aRecipientCerts) { return _to CreateEncrypted(aRecipientCerts); } \
93 : NS_IMETHOD CreateSigned(nsIX509Cert *scert, nsIX509Cert *ecert, unsigned char *aDigestData, PRUint32 aDigestDataLen) { return _to CreateSigned(scert, ecert, aDigestData, aDigestDataLen); }
94 :
95 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
96 : #define NS_FORWARD_SAFE_NSICMSMESSAGE(_to) \
97 : NS_IMETHOD ContentIsSigned(bool *aSigned NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ContentIsSigned(aSigned); } \
98 : NS_IMETHOD ContentIsEncrypted(bool *aEncrypted NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ContentIsEncrypted(aEncrypted); } \
99 : NS_IMETHOD GetSignerCommonName(char * *aName NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSignerCommonName(aName); } \
100 : NS_IMETHOD GetSignerEmailAddress(char * *aEmail NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSignerEmailAddress(aEmail); } \
101 : NS_IMETHOD GetSignerCert(nsIX509Cert * *scert NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSignerCert(scert); } \
102 : NS_IMETHOD GetEncryptionCert(nsIX509Cert * *ecert NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEncryptionCert(ecert); } \
103 : NS_IMETHOD VerifySignature(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->VerifySignature(); } \
104 : NS_IMETHOD VerifyDetachedSignature(unsigned char *aDigestData, PRUint32 aDigestDataLen) { return !_to ? NS_ERROR_NULL_POINTER : _to->VerifyDetachedSignature(aDigestData, aDigestDataLen); } \
105 : NS_IMETHOD CreateEncrypted(nsIArray *aRecipientCerts) { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateEncrypted(aRecipientCerts); } \
106 : NS_IMETHOD CreateSigned(nsIX509Cert *scert, nsIX509Cert *ecert, unsigned char *aDigestData, PRUint32 aDigestDataLen) { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateSigned(scert, ecert, aDigestData, aDigestDataLen); }
107 :
108 : #if 0
109 : /* Use the code below as a template for the implementation class for this interface. */
110 :
111 : /* Header file */
112 : class nsCMSMessage : public nsICMSMessage
113 : {
114 : public:
115 : NS_DECL_ISUPPORTS
116 : NS_DECL_NSICMSMESSAGE
117 :
118 : nsCMSMessage();
119 :
120 : private:
121 : ~nsCMSMessage();
122 :
123 : protected:
124 : /* additional members */
125 : };
126 :
127 : /* Implementation file */
128 : NS_IMPL_ISUPPORTS1(nsCMSMessage, nsICMSMessage)
129 :
130 : nsCMSMessage::nsCMSMessage()
131 : {
132 : /* member initializers and constructor code */
133 : }
134 :
135 : nsCMSMessage::~nsCMSMessage()
136 : {
137 : /* destructor code */
138 : }
139 :
140 : /* void contentIsSigned (out boolean aSigned); */
141 : NS_IMETHODIMP nsCMSMessage::ContentIsSigned(bool *aSigned NS_OUTPARAM)
142 : {
143 : return NS_ERROR_NOT_IMPLEMENTED;
144 : }
145 :
146 : /* void contentIsEncrypted (out boolean aEncrypted); */
147 : NS_IMETHODIMP nsCMSMessage::ContentIsEncrypted(bool *aEncrypted NS_OUTPARAM)
148 : {
149 : return NS_ERROR_NOT_IMPLEMENTED;
150 : }
151 :
152 : /* void getSignerCommonName (out string aName); */
153 : NS_IMETHODIMP nsCMSMessage::GetSignerCommonName(char * *aName NS_OUTPARAM)
154 : {
155 : return NS_ERROR_NOT_IMPLEMENTED;
156 : }
157 :
158 : /* void getSignerEmailAddress (out string aEmail); */
159 : NS_IMETHODIMP nsCMSMessage::GetSignerEmailAddress(char * *aEmail NS_OUTPARAM)
160 : {
161 : return NS_ERROR_NOT_IMPLEMENTED;
162 : }
163 :
164 : /* void getSignerCert (out nsIX509Cert scert); */
165 : NS_IMETHODIMP nsCMSMessage::GetSignerCert(nsIX509Cert * *scert NS_OUTPARAM)
166 : {
167 : return NS_ERROR_NOT_IMPLEMENTED;
168 : }
169 :
170 : /* void getEncryptionCert (out nsIX509Cert ecert); */
171 : NS_IMETHODIMP nsCMSMessage::GetEncryptionCert(nsIX509Cert * *ecert NS_OUTPARAM)
172 : {
173 : return NS_ERROR_NOT_IMPLEMENTED;
174 : }
175 :
176 : /* void verifySignature (); */
177 : NS_IMETHODIMP nsCMSMessage::VerifySignature()
178 : {
179 : return NS_ERROR_NOT_IMPLEMENTED;
180 : }
181 :
182 : /* void verifyDetachedSignature (in UnsignedCharPtr aDigestData, in unsigned long aDigestDataLen); */
183 : NS_IMETHODIMP nsCMSMessage::VerifyDetachedSignature(unsigned char *aDigestData, PRUint32 aDigestDataLen)
184 : {
185 : return NS_ERROR_NOT_IMPLEMENTED;
186 : }
187 :
188 : /* void CreateEncrypted (in nsIArray aRecipientCerts); */
189 : NS_IMETHODIMP nsCMSMessage::CreateEncrypted(nsIArray *aRecipientCerts)
190 : {
191 : return NS_ERROR_NOT_IMPLEMENTED;
192 : }
193 :
194 : /* void CreateSigned (in nsIX509Cert scert, in nsIX509Cert ecert, in UnsignedCharPtr aDigestData, in unsigned long aDigestDataLen); */
195 : NS_IMETHODIMP nsCMSMessage::CreateSigned(nsIX509Cert *scert, nsIX509Cert *ecert, unsigned char *aDigestData, PRUint32 aDigestDataLen)
196 : {
197 : return NS_ERROR_NOT_IMPLEMENTED;
198 : }
199 :
200 : /* End of implementation class template. */
201 : #endif
202 :
203 :
204 : #endif /* __gen_nsICMSMessage_h__ */
|