up
This commit is contained in:
22
Assets/BestHTTP/SecureProtocol/crypto/tls/HeartbeatMode.cs
Normal file
22
Assets/BestHTTP/SecureProtocol/crypto/tls/HeartbeatMode.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
|
||||
|
||||
using System;
|
||||
|
||||
namespace Org.BouncyCastle.Crypto.Tls
|
||||
{
|
||||
/*
|
||||
* RFC 6520
|
||||
*/
|
||||
public abstract class HeartbeatMode
|
||||
{
|
||||
public const byte peer_allowed_to_send = 1;
|
||||
public const byte peer_not_allowed_to_send = 2;
|
||||
|
||||
public static bool IsValid(byte heartbeatMode)
|
||||
{
|
||||
return heartbeatMode >= peer_allowed_to_send && heartbeatMode <= peer_not_allowed_to_send;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user