DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Untracked file

nsICMSMessage

Macros

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsICMSMessage.idl
 */

#ifndef __gen_nsICMSMessage_h__
#define __gen_nsICMSMessage_h__


#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif

/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
#define NS_CMSMESSAGE_CONTRACTID "@mozilla.org/nsCMSMessage;1"
class nsIX509Cert; /* forward declaration */

class nsIArray; /* forward declaration */


/* starting interface:    nsICMSMessage */
#define NS_ICMSMESSAGE_IID_STR "c6d51c22-73e9-4dad-86b9-bde584e33c63"

#define NS_ICMSMESSAGE_IID \
  {0xc6d51c22, 0x73e9, 0x4dad, \
    { 0x86, 0xb9, 0xbd, 0xe5, 0x84, 0xe3, 0x3c, 0x63 }}

class NS_NO_VTABLE nsICMSMessage : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICMSMESSAGE_IID)

  /* void contentIsSigned (out boolean aSigned); */
  NS_IMETHOD ContentIsSigned(bool *aSigned) = 0;

  /* void contentIsEncrypted (out boolean aEncrypted); */
  NS_IMETHOD ContentIsEncrypted(bool *aEncrypted) = 0;

  /* void getSignerCommonName (out string aName); */
  NS_IMETHOD GetSignerCommonName(char * *aName) = 0;

  /* void getSignerEmailAddress (out string aEmail); */
  NS_IMETHOD GetSignerEmailAddress(char * *aEmail) = 0;

  /* void getSignerCert (out nsIX509Cert scert); */
  NS_IMETHOD GetSignerCert(nsIX509Cert * *scert) = 0;

  /* void getEncryptionCert (out nsIX509Cert ecert); */
  NS_IMETHOD GetEncryptionCert(nsIX509Cert * *ecert) = 0;

  /* void verifySignature (); */
  NS_IMETHOD VerifySignature(void) = 0;

  /* void verifyDetachedSignature (in UnsignedCharPtr aDigestData, in unsigned long aDigestDataLen); */
  NS_IMETHOD VerifyDetachedSignature(unsigned char *aDigestData, uint32_t aDigestDataLen) = 0;

  /* void CreateEncrypted (in nsIArray aRecipientCerts); */
  NS_IMETHOD CreateEncrypted(nsIArray *aRecipientCerts) = 0;

  /* void CreateSigned (in nsIX509Cert scert, in nsIX509Cert ecert, in UnsignedCharPtr aDigestData, in unsigned long aDigestDataLen, in int16_t aDigestType); */
  NS_IMETHOD CreateSigned(nsIX509Cert *scert, nsIX509Cert *ecert, unsigned char *aDigestData, uint32_t aDigestDataLen, int16_t aDigestType) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsICMSMessage, NS_ICMSMESSAGE_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSICMSMESSAGE \
  NS_IMETHOD ContentIsSigned(bool *aSigned) override; \
  NS_IMETHOD ContentIsEncrypted(bool *aEncrypted) override; \
  NS_IMETHOD GetSignerCommonName(char * *aName) override; \
  NS_IMETHOD GetSignerEmailAddress(char * *aEmail) override; \
  NS_IMETHOD GetSignerCert(nsIX509Cert * *scert) override; \
  NS_IMETHOD GetEncryptionCert(nsIX509Cert * *ecert) override; \
  NS_IMETHOD VerifySignature(void) override; \
  NS_IMETHOD VerifyDetachedSignature(unsigned char *aDigestData, uint32_t aDigestDataLen) override; \
  NS_IMETHOD CreateEncrypted(nsIArray *aRecipientCerts) override; \
  NS_IMETHOD CreateSigned(nsIX509Cert *scert, nsIX509Cert *ecert, unsigned char *aDigestData, uint32_t aDigestDataLen, int16_t aDigestType) override; 

/* Use this macro when declaring the members of this interface when the
   class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSICMSMESSAGE \
  nsresult ContentIsSigned(bool *aSigned); \
  nsresult ContentIsEncrypted(bool *aEncrypted); \
  nsresult GetSignerCommonName(char * *aName); \
  nsresult GetSignerEmailAddress(char * *aEmail); \
  nsresult GetSignerCert(nsIX509Cert * *scert); \
  nsresult GetEncryptionCert(nsIX509Cert * *ecert); \
  nsresult VerifySignature(void); \
  nsresult VerifyDetachedSignature(unsigned char *aDigestData, uint32_t aDigestDataLen); \
  nsresult CreateEncrypted(nsIArray *aRecipientCerts); \
  nsresult CreateSigned(nsIX509Cert *scert, nsIX509Cert *ecert, unsigned char *aDigestData, uint32_t aDigestDataLen, int16_t aDigestType); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSICMSMESSAGE(_to) \
  NS_IMETHOD ContentIsSigned(bool *aSigned) override { return _to ContentIsSigned(aSigned); } \
  NS_IMETHOD ContentIsEncrypted(bool *aEncrypted) override { return _to ContentIsEncrypted(aEncrypted); } \
  NS_IMETHOD GetSignerCommonName(char * *aName) override { return _to GetSignerCommonName(aName); } \
  NS_IMETHOD GetSignerEmailAddress(char * *aEmail) override { return _to GetSignerEmailAddress(aEmail); } \
  NS_IMETHOD GetSignerCert(nsIX509Cert * *scert) override { return _to GetSignerCert(scert); } \
  NS_IMETHOD GetEncryptionCert(nsIX509Cert * *ecert) override { return _to GetEncryptionCert(ecert); } \
  NS_IMETHOD VerifySignature(void) override { return _to VerifySignature(); } \
  NS_IMETHOD VerifyDetachedSignature(unsigned char *aDigestData, uint32_t aDigestDataLen) override { return _to VerifyDetachedSignature(aDigestData, aDigestDataLen); } \
  NS_IMETHOD CreateEncrypted(nsIArray *aRecipientCerts) override { return _to CreateEncrypted(aRecipientCerts); } \
  NS_IMETHOD CreateSigned(nsIX509Cert *scert, nsIX509Cert *ecert, unsigned char *aDigestData, uint32_t aDigestDataLen, int16_t aDigestType) override { return _to CreateSigned(scert, ecert, aDigestData, aDigestDataLen, aDigestType); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSICMSMESSAGE(_to) \
  NS_IMETHOD ContentIsSigned(bool *aSigned) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ContentIsSigned(aSigned); } \
  NS_IMETHOD ContentIsEncrypted(bool *aEncrypted) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ContentIsEncrypted(aEncrypted); } \
  NS_IMETHOD GetSignerCommonName(char * *aName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSignerCommonName(aName); } \
  NS_IMETHOD GetSignerEmailAddress(char * *aEmail) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSignerEmailAddress(aEmail); } \
  NS_IMETHOD GetSignerCert(nsIX509Cert * *scert) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSignerCert(scert); } \
  NS_IMETHOD GetEncryptionCert(nsIX509Cert * *ecert) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEncryptionCert(ecert); } \
  NS_IMETHOD VerifySignature(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->VerifySignature(); } \
  NS_IMETHOD VerifyDetachedSignature(unsigned char *aDigestData, uint32_t aDigestDataLen) override { return !_to ? NS_ERROR_NULL_POINTER : _to->VerifyDetachedSignature(aDigestData, aDigestDataLen); } \
  NS_IMETHOD CreateEncrypted(nsIArray *aRecipientCerts) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateEncrypted(aRecipientCerts); } \
  NS_IMETHOD CreateSigned(nsIX509Cert *scert, nsIX509Cert *ecert, unsigned char *aDigestData, uint32_t aDigestDataLen, int16_t aDigestType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateSigned(scert, ecert, aDigestData, aDigestDataLen, aDigestType); } 

#if 0
/* Use the code below as a template for the implementation class for this interface. */

/* Header file */
class nsCMSMessage : public nsICMSMessage
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSICMSMESSAGE

  nsCMSMessage();

private:
  ~nsCMSMessage();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsCMSMessage, nsICMSMessage)

nsCMSMessage::nsCMSMessage()
{
  /* member initializers and constructor code */
}

nsCMSMessage::~nsCMSMessage()
{
  /* destructor code */
}

/* void contentIsSigned (out boolean aSigned); */
NS_IMETHODIMP nsCMSMessage::ContentIsSigned(bool *aSigned)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void contentIsEncrypted (out boolean aEncrypted); */
NS_IMETHODIMP nsCMSMessage::ContentIsEncrypted(bool *aEncrypted)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void getSignerCommonName (out string aName); */
NS_IMETHODIMP nsCMSMessage::GetSignerCommonName(char * *aName)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void getSignerEmailAddress (out string aEmail); */
NS_IMETHODIMP nsCMSMessage::GetSignerEmailAddress(char * *aEmail)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void getSignerCert (out nsIX509Cert scert); */
NS_IMETHODIMP nsCMSMessage::GetSignerCert(nsIX509Cert * *scert)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void getEncryptionCert (out nsIX509Cert ecert); */
NS_IMETHODIMP nsCMSMessage::GetEncryptionCert(nsIX509Cert * *ecert)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void verifySignature (); */
NS_IMETHODIMP nsCMSMessage::VerifySignature()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void verifyDetachedSignature (in UnsignedCharPtr aDigestData, in unsigned long aDigestDataLen); */
NS_IMETHODIMP nsCMSMessage::VerifyDetachedSignature(unsigned char *aDigestData, uint32_t aDigestDataLen)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void CreateEncrypted (in nsIArray aRecipientCerts); */
NS_IMETHODIMP nsCMSMessage::CreateEncrypted(nsIArray *aRecipientCerts)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void CreateSigned (in nsIX509Cert scert, in nsIX509Cert ecert, in UnsignedCharPtr aDigestData, in unsigned long aDigestDataLen, in int16_t aDigestType); */
NS_IMETHODIMP nsCMSMessage::CreateSigned(nsIX509Cert *scert, nsIX509Cert *ecert, unsigned char *aDigestData, uint32_t aDigestDataLen, int16_t aDigestType)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* End of implementation class template. */
#endif


#endif /* __gen_nsICMSMessage_h__ */