From e85ac6b676bfe4c7779dc459effe381e75ec1c2a Mon Sep 17 00:00:00 2001 From: lloyd Date: Mon, 1 Jul 2013 15:08:05 +0000 Subject: Add sending std::vector to TLS::Channel --- src/tls/tls_channel.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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 + void send(const std::vector& val) + { + send(&val[0], val.size()); + } /** * Send a close notification alert -- cgit v1.2.3