diff -r 000000000000 -r 6474c204b198 security/manager/ssl/public/nsIX509Cert2.idl --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/security/manager/ssl/public/nsIX509Cert2.idl Wed Dec 31 06:09:35 2014 +0100 @@ -0,0 +1,30 @@ +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- + * + * 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 "nsIX509Cert.idl" + +interface nsIArray; +interface nsIASN1Object; + +%{ C++ + /* forward declaration */ + typedef struct CERTCertificateStr CERTCertificate; +%} +[ptr] native CERTCertificatePtr(CERTCertificate); + +/** + * This represents additional interfaces to X.509 certificates + */ +[scriptable, uuid(5b62c61c-f898-4dab-8ace-51109bb459b4)] +interface nsIX509Cert2 : nsIX509Cert { + /** + * Additional constants to classify the type of a certificate. + */ + const unsigned long ANY_CERT = 0xffff; + readonly attribute unsigned long certType; + void markForPermDeletion(); + [notxpcom, noscript] CERTCertificatePtr getCert(); +};