diff options
| author | 2022-11-30 03:26:38 +0000 | |
|---|---|---|
| committer | 2022-11-30 10:46:26 +0000 | |
| commit | 894e9d8ddcd19122561c853734feb04d2b8bcd14 (patch) | |
| tree | 073e46002a7ad3942782eb1c18d8b37c3dcfae7c /include/clientprotocol.h | |
| parent | Use gnutls_digest_get_id if supported by the GnuTLS library. (diff) | |
Add a method for quickly escaping a tag value.
Diffstat (limited to 'include/clientprotocol.h')
| -rw-r--r-- | include/clientprotocol.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/clientprotocol.h b/include/clientprotocol.h index c09b380eb..9f3166008 100644 --- a/include/clientprotocol.h +++ b/include/clientprotocol.h @@ -281,6 +281,11 @@ class ClientProtocol::Message : public ClientProtocol::MessageSource typedef std::vector<Param> ParamList; + /** Escapes a value for use in a tag value. + * @param value The value to escape. + */ + static std::string EscapeTag(const std::string& value); + private: typedef std::vector<std::pair<SerializedInfo, SerializedMessage> > SerializedList; |
