1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/security/manager/ssl/public/nsIX509Cert2.idl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,30 @@ 1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- 1.5 + * 1.6 + * This Source Code Form is subject to the terms of the Mozilla Public 1.7 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.8 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.9 + 1.10 +#include "nsIX509Cert.idl" 1.11 + 1.12 +interface nsIArray; 1.13 +interface nsIASN1Object; 1.14 + 1.15 +%{ C++ 1.16 + /* forward declaration */ 1.17 + typedef struct CERTCertificateStr CERTCertificate; 1.18 +%} 1.19 +[ptr] native CERTCertificatePtr(CERTCertificate); 1.20 + 1.21 +/** 1.22 + * This represents additional interfaces to X.509 certificates 1.23 + */ 1.24 +[scriptable, uuid(5b62c61c-f898-4dab-8ace-51109bb459b4)] 1.25 +interface nsIX509Cert2 : nsIX509Cert { 1.26 + /** 1.27 + * Additional constants to classify the type of a certificate. 1.28 + */ 1.29 + const unsigned long ANY_CERT = 0xffff; 1.30 + readonly attribute unsigned long certType; 1.31 + void markForPermDeletion(); 1.32 + [notxpcom, noscript] CERTCertificatePtr getCert(); 1.33 +};