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 "nsISupports.idl" |
michael@0 | 8 | |
michael@0 | 9 | interface nsIX509CertList; |
michael@0 | 10 | |
michael@0 | 11 | /** |
michael@0 | 12 | * This represents a service to access and manipulate |
michael@0 | 13 | * X.509 certificates stored in a database through methods |
michael@0 | 14 | * not in nsIX509CertDB, which is frozen |
michael@0 | 15 | * |
michael@0 | 16 | */ |
michael@0 | 17 | [scriptable, uuid(e0df4784-6560-45bf-b1b7-86076a0e8381)] |
michael@0 | 18 | interface nsIX509CertDB2 : nsISupports { |
michael@0 | 19 | |
michael@0 | 20 | /* |
michael@0 | 21 | * Add a cert to a cert DB from a base64 encoded string. |
michael@0 | 22 | * |
michael@0 | 23 | * @param base64 The raw representation of a certificate, |
michael@0 | 24 | * encoded as Base 64. |
michael@0 | 25 | * @param aTrust decoded by CERT_DecodeTrustString. 3 comma separated characters, |
michael@0 | 26 | * indicating SSL, Email, and Obj signing trust |
michael@0 | 27 | * @param aName name of the cert for display purposes. |
michael@0 | 28 | */ |
michael@0 | 29 | void addCertFromBase64(in string base64, in string aTrust, in string aName); |
michael@0 | 30 | |
michael@0 | 31 | /* |
michael@0 | 32 | * Get all the known certs in the database |
michael@0 | 33 | */ |
michael@0 | 34 | nsIX509CertList getCerts(); |
michael@0 | 35 | }; |
michael@0 | 36 |