security/manager/ssl/src/nsCMSSecureMessage.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/security/manager/ssl/src/nsCMSSecureMessage.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,36 @@
     1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.8 +
     1.9 +#ifndef _NSCMSSECUREMESSAGE_H_
    1.10 +#define _NSCMSSECUREMESSAGE_H_
    1.11 +
    1.12 +#include "nsICMSSecureMessage.h"
    1.13 +
    1.14 +#include "cms.h"
    1.15 +
    1.16 +// ===============================================
    1.17 +// nsCMSManager - implementation of nsICMSManager
    1.18 +// ===============================================
    1.19 +
    1.20 +#define NS_CMSSECUREMESSAGE_CID \
    1.21 +  { 0x5fb907e0, 0x1dd2, 0x11b2, { 0xa7, 0xc0, 0xf1, 0x4c, 0x41, 0x6a, 0x62, 0xa1 } }
    1.22 +
    1.23 +class nsCMSSecureMessage
    1.24 +: public nsICMSSecureMessage
    1.25 +{
    1.26 +public:
    1.27 +  NS_DECL_ISUPPORTS
    1.28 +  NS_DECL_NSICMSSECUREMESSAGE
    1.29 +
    1.30 +  nsCMSSecureMessage();
    1.31 +  virtual ~nsCMSSecureMessage();
    1.32 +
    1.33 +private:
    1.34 +  NS_METHOD encode(const unsigned char *data, int32_t dataLen, char **_retval);
    1.35 +  NS_METHOD decode(const char *data, unsigned char **result, int32_t * _retval);
    1.36 +};
    1.37 +
    1.38 +
    1.39 +#endif /* _NSCMSMESSAGE_H_ */

mercurial