init commit
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
using System;
|
||||
|
||||
namespace Org.BouncyCastle.Crypto.Tls;
|
||||
|
||||
public abstract class AbstractTlsPeer : TlsPeer
|
||||
{
|
||||
public virtual bool RequiresExtendedMasterSecret()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public virtual bool ShouldUseGmtUnixTime()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public virtual void NotifySecureRenegotiation(bool secureRenegotiation)
|
||||
{
|
||||
if (!secureRenegotiation)
|
||||
{
|
||||
throw new TlsFatalAlert(40);
|
||||
}
|
||||
}
|
||||
|
||||
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()
|
||||
{
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user