Wed, 31 Dec 2014 07:16:47 +0100
Revert simplistic fix pending revisit of Mozilla integration attempt.
michael@0 | 1 | /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- |
michael@0 | 2 | * |
michael@0 | 3 | * This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 4 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 5 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 6 | |
michael@0 | 7 | #include "nsIX509Cert.idl" |
michael@0 | 8 | |
michael@0 | 9 | interface nsIArray; |
michael@0 | 10 | interface nsIASN1Object; |
michael@0 | 11 | |
michael@0 | 12 | %{ C++ |
michael@0 | 13 | /* forward declaration */ |
michael@0 | 14 | typedef struct CERTCertificateStr CERTCertificate; |
michael@0 | 15 | %} |
michael@0 | 16 | [ptr] native CERTCertificatePtr(CERTCertificate); |
michael@0 | 17 | |
michael@0 | 18 | /** |
michael@0 | 19 | * This represents additional interfaces to X.509 certificates |
michael@0 | 20 | */ |
michael@0 | 21 | [scriptable, uuid(5b62c61c-f898-4dab-8ace-51109bb459b4)] |
michael@0 | 22 | interface nsIX509Cert2 : nsIX509Cert { |
michael@0 | 23 | /** |
michael@0 | 24 | * Additional constants to classify the type of a certificate. |
michael@0 | 25 | */ |
michael@0 | 26 | const unsigned long ANY_CERT = 0xffff; |
michael@0 | 27 | readonly attribute unsigned long certType; |
michael@0 | 28 | void markForPermDeletion(); |
michael@0 | 29 | [notxpcom, noscript] CERTCertificatePtr getCert(); |
michael@0 | 30 | }; |