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.

Mercurial (409f3966645a)

VCS Links

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
/* 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;

%{C++
typedef struct CERTCertListStr CERTCertList;
%}
[ptr] native CERTCertListPtr(CERTCertList);

%{C++
class nsNSSCertList;
%}
[ptr] native nsNSSCertListPtr(nsNSSCertList);

[scriptable, builtinclass, uuid(ae74cda5-cd2f-473f-96f5-f0b7fff62c68)]
interface nsIX509CertList : nsISupports {
  [must_use]
  void addCert(in nsIX509Cert cert);
  [must_use]
  nsISimpleEnumerator getEnumerator();

  /**
   * Returns the raw, backing cert list.
   */
  [notxpcom, noscript, must_use]
  CERTCertListPtr getRawCertList();

  /**
   * Test whether two certificate list instances represent the same
   * certificate list.
   *
   * @return Whether the certificate lists are equal
   */
  [must_use]
  boolean equals(in nsIX509CertList other);

  /**
   * Retrieves the PSM helper class that wraps the NSS certificate list
   */
  [notxpcom, noscript, must_use]
  nsNSSCertListPtr getCertList();

  /**
   * Encode the list of certificates as a PKCS#7 SignedData structure. No data
   * is actually signed - this is merely a way of exporting a collection of
   * certificates.
   */
  [must_use]
  ACString asPKCS7Blob();

};

%{C++

#define NS_X509CERTLIST_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"

%}