security/manager/ssl/public/nsISSLCertErrorDialog.idl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/security/manager/ssl/public/nsISSLCertErrorDialog.idl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,39 @@
     1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.7 +
     1.8 +#include "nsISupports.idl"
     1.9 +
    1.10 +interface nsIInterfaceRequestor;
    1.11 +interface nsIX509Cert;
    1.12 +interface nsISSLStatus;
    1.13 +
    1.14 +[scriptable, uuid(0729ce8e-8935-4989-ba72-a2d6307f2365)]
    1.15 +interface nsISSLCertErrorDialog : nsISupports
    1.16 +{
    1.17 +  /**
    1.18 +   *  Called when an SSL connection aborts because of a bad certificate,
    1.19 +   *  and no other code is in place for reporting the problem.
    1.20 +   *  Should bring up a dialog to inform the user and display the certificate.
    1.21 +   *
    1.22 +   *  @param status Might be used to query additional information
    1.23 +   *  @param cert The certificate that this error is about
    1.24 +   *  @param textErrorMessage An error message with whitespace formatting
    1.25 +   *  @param htmlErrorMessage Optional, might either be empty,
    1.26 +                              or might contain the same message as in
    1.27 +                              textErrorMessage plus some html formatting.
    1.28 +   *  @param hostName The error occurred when connecting to this hostName.
    1.29 +   *  @param portNumber The error occurred when connecting to this portNumber.
    1.30 +   */
    1.31 +  void showCertError(in nsIInterfaceRequestor ctx, 
    1.32 +                     in nsISSLStatus status,
    1.33 +                     in nsIX509Cert cert,
    1.34 +                     in AString textErrorMessage,
    1.35 +                     in AString htmlErrorMessage,
    1.36 +                     in ACString hostName,
    1.37 +                     in uint32_t portNumber);
    1.38 +};
    1.39 +
    1.40 +%{C++
    1.41 +#define NS_SSLCERTERRORDIALOG_CONTRACTID "@mozilla.org/nsSSLCertErrorDialog;1"
    1.42 +%}

mercurial