12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- #if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
- using System;
- using System.IO;
- namespace Org.BouncyCastle.Crypto.Tls
- {
- public abstract class AbstractTlsPeer
- : TlsPeer
- {
- public virtual bool ShouldUseGmtUnixTime()
- {
-
- return false;
- }
- public virtual void NotifySecureRenegotiation(bool secureRenegotiation)
- {
- if (!secureRenegotiation)
- {
-
- throw new TlsFatalAlert(AlertDescription.handshake_failure);
- }
- }
- public abstract TlsCompression GetCompression();
- public abstract TlsCipher GetCipher();
- public virtual void NotifyAlertRaised(byte alertLevel, byte alertDescription, string message, Exception cause)
- {
- }
- public virtual void NotifyAlertReceived(byte alertLevel, byte alertDescription)
- {
- }
- public virtual void NotifyHandshakeComplete()
- {
- }
- }
- }
- #endif
|