security/manager/ssl/public/nsIFormSigningDialog.idl

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     1 /* This Source Code Form is subject to the terms of the Mozilla Public
     2  * License, v. 2.0. If a copy of the MPL was not distributed with this
     3  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     5 #include "nsISupports.idl"
     7 interface nsIInterfaceRequestor;
     9 /**
    10  * nsIFormSigningDialog
    11  * Provides UI for form signing.
    12  */
    13 [scriptable, uuid(4fe04d6d-4b66-4023-a0bc-b43ce68b3e15)]
    14 interface nsIFormSigningDialog : nsISupports
    15 {
    16   /**
    17    *  confirmSignText
    18    *    UI shown when a web site calls crypto.signText,
    19    *    asking the user to confirm the confirm the signing request.
    20    *
    21    *  returns true if the user confirmed, false on cancel
    22    */
    23   boolean confirmSignText(in nsIInterfaceRequestor ctxt,
    24                           in AString host,
    25                           in AString signText,
    26                           [array, size_is(count)] in wstring certNickList,
    27                           [array, size_is(count)] in wstring certDetailsList,
    28                           in uint32_t count,
    29                           out int32_t selectedIndex,
    30                           out AString password);
    31 };
    33 /**
    34  * NS_FORMSIGNINGDIALOG_CONTRACTID - contract id to obtain an instance
    35  *   that implements nsIFormSigningDialog.
    36  */
    37 %{C++
    38 #define NS_FORMSIGNINGDIALOG_CONTRACTID "@mozilla.org/nsFormSigningDialog;1"
    39 %}

mercurial