TlsFatalAlertReceived.cs 645 B

12345678910111213141516171819202122232425
  1. #if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
  2. #pragma warning disable
  3. using System;
  4. namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Tls
  5. {
  6. public class TlsFatalAlertReceived
  7. : TlsException
  8. {
  9. protected readonly short m_alertDescription;
  10. public TlsFatalAlertReceived(short alertDescription)
  11. : base(Tls.AlertDescription.GetText(alertDescription))
  12. {
  13. this.m_alertDescription = alertDescription;
  14. }
  15. public virtual short AlertDescription
  16. {
  17. get { return m_alertDescription; }
  18. }
  19. }
  20. }
  21. #pragma warning restore
  22. #endif