aboutsummaryrefslogtreecommitdiffstats
path: root/src/tls/tls_channel.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/tls/tls_channel.h')
-rw-r--r--src/tls/tls_channel.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/tls/tls_channel.h b/src/tls/tls_channel.h
index 2dd810c84..32609a14c 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 TLS alert message. If the alert is fatal, the internal