nsITransportSecurityInfo.idl 911 B

12345678910111213141516171819202122232425
  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/. */
  6. #include "nsISupports.idl"
  7. interface nsIX509CertList;
  8. [scriptable, uuid(216112d3-28bc-4671-b057-f98cc09ba1ea)]
  9. interface nsITransportSecurityInfo : nsISupports {
  10. readonly attribute unsigned long securityState;
  11. readonly attribute wstring errorMessage;
  12. readonly attribute long errorCode; // PRErrorCode
  13. /**
  14. * If certificate verification failed, this will be the peer certificate
  15. * chain provided in the handshake, so it can be used for error reporting.
  16. * If verification succeeded, this will be null.
  17. */
  18. readonly attribute nsIX509CertList failedCertChain;
  19. };