Skip to content

Commit

Permalink
ProtoContext: Add convenience function to check client EXIT message s…
Browse files Browse the repository at this point in the history
…upport

Signed-off-by: Razvan Cojocaru <[email protected]>
  • Loading branch information
Razvan Cojocaru authored and Jenkins-dev committed Nov 15, 2024
1 parent d44ef0a commit 0c021b6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions openvpn/ssl/proto.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3577,6 +3577,12 @@ class ProtoContext : public logging::LoggingMixin<OPENVPN_DEBUG_PROTO,
return proto_field_ & iv_proto_flag::IV_PROTO_REQUEST_PUSH;
}

//! Checks if the client is able to send an explicit EXIT message before exiting.
bool client_supports_exit_notify() const
{
return proto_field_ & iv_proto_flag::IV_PROTO_CC_EXIT_NOTIFY;
}

private:
unsigned int proto_field_;
};
Expand Down

0 comments on commit 0c021b6

Please sign in to comment.