14#ifndef OPENVPN_OPTIONS_SANITIZE_H
15#define OPENVPN_OPTIONS_SANITIZE_H
27 std::ostringstream
out;
28 for (
size_t i = 0; i < opt.size(); i++)
31#ifndef OPENVPN_SHOW_SESSION_TOKEN
33 out << i <<
" [auth-token] ..." << std::endl;
36 out << i <<
' ' << o.
render(render_flags) << std::endl;
45#ifdef OPENVPN_SHOW_SESSION_TOKEN
48 const char *src = src_str.c_str();
49 char *
ret =
new char[src_str.length() + 1];
59 if (c ==
'S' && !::strncmp(src,
"SESS_ID_", 8))
64 else if (c ==
'e' && !::strncmp(src,
"echo ", 5))
91 const std::string ret_str(
ret);
std::string get_optional(const size_t index, const size_t max_len) const
std::string render(const unsigned int flags) const
Support deferred server-side state creation when client connects.
std::string sanitize_control_message(const std::string &src_str)
std::string render_options_sanitized(const OptionList &opt, const unsigned int render_flags)
static std::stringstream out