security/manager/ssl/public/nsIX509CertDB2.idl

Wed, 31 Dec 2014 07:16:47 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:16:47 +0100
branch
TOR_BUG_9701
changeset 3
141e0f1194b1
permissions
-rw-r--r--

Revert simplistic fix pending revisit of Mozilla integration attempt.

     1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
     2  *
     3  * This Source Code Form is subject to the terms of the Mozilla Public
     4  * License, v. 2.0. If a copy of the MPL was not distributed with this
     5  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     7 #include "nsISupports.idl"
     9 interface nsIX509CertList;
    11 /**
    12  * This represents a service to access and manipulate 
    13  * X.509 certificates stored in a database through methods
    14  * not in nsIX509CertDB, which is frozen
    15  *
    16  */
    17 [scriptable, uuid(e0df4784-6560-45bf-b1b7-86076a0e8381)]
    18 interface nsIX509CertDB2 : nsISupports {
    20   /* 
    21    * Add a cert to a cert DB from a base64 encoded string.
    22    *
    23    * @param base64 The raw representation of a certificate,
    24    *                encoded as Base 64.
    25    * @param aTrust decoded by CERT_DecodeTrustString. 3 comma separated characters,
    26    *                indicating SSL, Email, and Obj signing trust
    27    * @param aName name of the cert for display purposes.
    28    */
    29   void addCertFromBase64(in string base64, in string aTrust, in string aName);
    31   /*
    32    * Get all the known certs in the database
    33    */
    34   nsIX509CertList getCerts();
    35 };

mercurial