CefSslInfo.cs 906 B

123456789101112131415161718192021222324252627282930313233
  1. namespace Xilium.CefGlue
  2. {
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Diagnostics;
  6. using System.Runtime.InteropServices;
  7. using Xilium.CefGlue.Interop;
  8. /// <summary>
  9. /// Class representing SSL information.
  10. /// </summary>
  11. public sealed unsafe partial class CefSslInfo
  12. {
  13. /// <summary>
  14. /// Returns a bitmask containing any and all problems verifying the server
  15. /// certificate.
  16. /// </summary>
  17. public CefCertStatus CertStatus
  18. {
  19. get { return cef_sslinfo_t.get_cert_status(_self); }
  20. }
  21. /// <summary>
  22. /// Returns the X.509 certificate.
  23. /// </summary>
  24. public CefX509Certificate GetX509Certificate()
  25. {
  26. return CefX509Certificate.FromNative(
  27. cef_sslinfo_t.get_x509certificate(_self)
  28. );
  29. }
  30. }
  31. }