aboutsummaryrefslogtreecommitdiffstats
path: root/src/tls
diff options
context:
space:
mode:
authorlloyd <[email protected]>2013-07-01 15:08:05 +0000
committerlloyd <[email protected]>2013-07-01 15:08:05 +0000
commite85ac6b676bfe4c7779dc459effe381e75ec1c2a (patch)
tree84ea57b6e1b913b11ef59c223c42d65f5a20495c /src/tls
parentd2b4514152e606cc34cbb3239546ab2ebb0f2d71 (diff)
Add sending std::vector to TLS::Channel
Diffstat (limited to 'src/tls')
-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 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