Skip to content

Commit

Permalink
ProtoContext: Add convenience function to check client dynamic TLS cr…
Browse files Browse the repository at this point in the history
…ypt support

Signed-off-by: Razvan Cojocaru <[email protected]>
  • Loading branch information
Razvan Cojocaru authored and Jenkins-dev committed Dec 19, 2024
1 parent dd46794 commit ee4395c
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 @@ -3587,6 +3587,12 @@ class ProtoContext : public logging::LoggingMixin<OPENVPN_DEBUG_PROTO,
return proto_field_ & iv_proto_flag::IV_PROTO_CC_EXIT_NOTIFY;
}

//! Checks if the client can handle dynamic TLS-crypt.
bool client_supports_dynamic_tls_crypt() const
{
return proto_field_ & iv_proto_flag::IV_PROTO_DYN_TLS_CRYPT;
}

private:
unsigned int proto_field_;
};
Expand Down

0 comments on commit ee4395c

Please sign in to comment.