nsISSLStatus.idl 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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 nsIX509Cert;
  8. [scriptable, uuid(5415626b-2930-440e-bfc5-55c87dbc4511)]
  9. interface nsISSLStatus : nsISupports {
  10. readonly attribute nsIX509Cert serverCert;
  11. readonly attribute ACString cipherName;
  12. readonly attribute ACString cipherSuite;
  13. readonly attribute unsigned long keyLength;
  14. readonly attribute unsigned long secretKeyLength;
  15. [must_use]
  16. readonly attribute ACString keaGroupName;
  17. [must_use]
  18. readonly attribute ACString signatureSchemeName;
  19. const short SSL_VERSION_3 = 0;
  20. const short TLS_VERSION_1 = 1;
  21. const short TLS_VERSION_1_1 = 2;
  22. const short TLS_VERSION_1_2 = 3;
  23. const short TLS_VERSION_1_3 = 4;
  24. readonly attribute unsigned short protocolVersion;
  25. const short CERTIFICATE_TRANSPARENCY_NOT_APPLICABLE = 0;
  26. const short CERTIFICATE_TRANSPARENCY_NONE = 1;
  27. const short CERTIFICATE_TRANSPARENCY_OK = 2;
  28. const short CERTIFICATE_TRANSPARENCY_UNKNOWN_LOG = 3;
  29. const short CERTIFICATE_TRANSPARENCY_INVALID = 4;
  30. readonly attribute unsigned short certificateTransparencyStatus;
  31. readonly attribute boolean isDomainMismatch;
  32. readonly attribute boolean isNotValidAtThisTime;
  33. /* Note: To distinguish between
  34. * "unstrusted because missing or untrusted issuer"
  35. * and
  36. * "untrusted because self signed"
  37. * query nsIX509Cert::isSelfSigned
  38. */
  39. readonly attribute boolean isUntrusted;
  40. /**
  41. * True only if (and after) serverCert was successfully validated as
  42. * Extended Validation (EV).
  43. */
  44. readonly attribute boolean isExtendedValidation;
  45. };