namespace Capnp
{
///
/// Provides the security bounds for defeating amplification and stack overflow DoS attacks.
/// See https://capnproto.org/encoding.html#security-considerations for details.
///
public static class SecurityOptions
{
///
/// The traversal limit, see https://capnproto.org/encoding.html#amplification-attack
///
public static uint TraversalLimit { get; set; } = 64 * 1024 * 1024;
///
/// The recursion limit, see https://capnproto.org/encoding.html#stack-overflow-dos-attack
///
public static int RecursionLimit { get; set; } = 64;
}
}