mirror of
https://github.com/FabInfra/capnproto-dotnetcore_Runtime.git
synced 2025-03-12 23:01:44 +01:00
19 lines
714 B
C#
19 lines
714 B
C#
namespace Capnp
|
|
{
|
|
/// <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;
|
|
}
|
|
}
|