michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- michael@0: * michael@0: * This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "nsIX509Cert.idl" michael@0: michael@0: interface nsIArray; michael@0: interface nsIASN1Object; michael@0: michael@0: %{ C++ michael@0: /* forward declaration */ michael@0: typedef struct CERTCertificateStr CERTCertificate; michael@0: %} michael@0: [ptr] native CERTCertificatePtr(CERTCertificate); michael@0: michael@0: /** michael@0: * This represents additional interfaces to X.509 certificates michael@0: */ michael@0: [scriptable, uuid(5b62c61c-f898-4dab-8ace-51109bb459b4)] michael@0: interface nsIX509Cert2 : nsIX509Cert { michael@0: /** michael@0: * Additional constants to classify the type of a certificate. michael@0: */ michael@0: const unsigned long ANY_CERT = 0xffff; michael@0: readonly attribute unsigned long certType; michael@0: void markForPermDeletion(); michael@0: [notxpcom, noscript] CERTCertificatePtr getCert(); michael@0: };