Skip to content

Commit

Permalink
ProtoContext: allow unit tests to access protected protocol constants
Browse files Browse the repository at this point in the history
Signed-off-by: James Yonan <[email protected]>
  • Loading branch information
jamesyonan committed Nov 20, 2024
1 parent 2509ed5 commit d21bc91
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions openvpn/ssl/proto.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,11 @@ class ProtoContext : public logging::LoggingMixin<OPENVPN_DEBUG_PROTO,
logging::LOG_LEVEL_VERB,
ProtoContext>
{
#ifdef UNIT_TEST
public:
#else
protected:
#endif
static constexpr size_t APP_MSG_MAX = 65536;

enum
Expand Down

0 comments on commit d21bc91

Please sign in to comment.