security/manager/ssl/public/nsIX509CertList.idl
author Gervase Markham <gerv@gerv.net>
Thu, 31 May 2012 10:33:35 +0100
changeset 99778 e6da6ece3818eed14dd357220970bfc1d3bfe6e7
parent 1 9b2a99adc05e53cd4010de512f50118594756650
child 171687 0ed8a5d6395c0c502f69ab3568fe71aa6da53a34
permissions -rw-r--r--
Bug 759095 - upgrade license to MPL 2, and other licensing cleanups.

/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#include "nsISupports.idl"

interface nsISimpleEnumerator;
interface nsIX509Cert;

[scriptable, uuid(a539759b-e22d-462f-94ea-2915b11b33e8)]
interface nsIX509CertList : nsISupports {
   void addCert(in nsIX509Cert cert);
   void deleteCert(in nsIX509Cert cert);
   nsISimpleEnumerator getEnumerator();

   [notxpcom, noscript] voidPtr getRawCertList();

};

%{C++

#define NS_X509CERRTLIST_CID { /* 959fb165-6517-487f-ab9b-d8913be53197 */ \
    0x959fb165,                                                           \
    0x6517,                                                               \
    0x487f                                                                \
    {0xab, 0x9b, 0xd8, 0x91, 0x3b, 0xe5, 0x31, 0x97}                      \
  }

#define NS_X509CERTLIST_CONTRACTID "@mozilla.org/security/x509certlist;1"

%}