aboutsummaryrefslogtreecommitdiff
path: root/tests/fuzz/levin.cpp
diff options
context:
space:
mode:
authorLee Clagett <code@leeclagett.com>2020-12-29 19:58:53 -0500
committerLee Clagett <code@leeclagett.com>2020-12-29 19:58:53 -0500
commit7d67a2dde0d2547e19650f5c6fa33d54b3f8b14d (patch)
treee90a9666400d19545199b6ed46be34c365cb5c1b /tests/fuzz/levin.cpp
parentMerge pull request #7222 (diff)
downloadmonero-7d67a2dde0d2547e19650f5c6fa33d54b3f8b14d.tar.xz
Add aggressive restrictions to pre-handshake p2p buffer limit
Diffstat (limited to 'tests/fuzz/levin.cpp')
-rw-r--r--tests/fuzz/levin.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/fuzz/levin.cpp b/tests/fuzz/levin.cpp
index 012d05f36..0ba0ff7f3 100644
--- a/tests/fuzz/levin.cpp
+++ b/tests/fuzz/levin.cpp
@@ -52,6 +52,8 @@ namespace
struct test_levin_connection_context : public epee::net_utils::connection_context_base
{
+ static constexpr int handshake_command() noexcept { return 1001; }
+ static constexpr bool handshake_complete() noexcept { return true; }
};
typedef epee::levin::async_protocol_handler_config<test_levin_connection_context> test_levin_protocol_handler_config;