18 lines
713 B
C#
Raw Normal View History

2020-01-11 17:56:12 +01:00
namespace Capnp
2019-06-12 21:56:55 +02:00
{
/// <summary>
/// Provides the security bounds for defeating amplification and stack overflow DoS attacks.
/// See https://capnproto.org/encoding.html#security-considerations for details.
/// </summary>
public static class SecurityOptions
{
/// <summary>
/// The traversal limit, see https://capnproto.org/encoding.html#amplification-attack
/// </summary>
public static uint TraversalLimit { get; set; } = 64 * 1024 * 1024;
/// <summary>
/// The recursion limit, see https://capnproto.org/encoding.html#stack-overflow-dos-attack
/// </summary>
public static int RecursionLimit { get; set; } = 64;
}
2020-01-11 17:56:12 +01:00
}