diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/tls/tls_channel.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/tls/tls_channel.h b/src/tls/tls_channel.h index be3ef3e6d..29028e160 100644 --- a/src/tls/tls_channel.h +++ b/src/tls/tls_channel.h @@ -47,7 +47,16 @@ class BOTAN_DLL Channel /** * Inject plaintext intended for counterparty */ - void send(const std::string& string); + void send(const std::string& val); + + /** + * Inject plaintext intended for counterparty + */ + template<typename Alloc> + void send(const std::vector<unsigned char, Alloc>& val) + { + send(&val[0], val.size()); + } /** * Send a close notification alert |