diff options
author | lloyd <[email protected]> | 2013-07-29 14:23:28 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2013-07-29 14:23:28 +0000 |
commit | d7a0b5309fb7d027b0d81a54eadaafbba7a3a4a9 (patch) | |
tree | 558a0b087cdcaf210aadba4048bc061121e87246 /src/tls/tls_channel.h | |
parent | 822daab5f8392e9b8a2e219991f8adeffd101da9 (diff) | |
parent | e85ac6b676bfe4c7779dc459effe381e75ec1c2a (diff) |
merge of 'a25b72d98eb3f88fcf577fabfcd430ef0758debc'
and 'e94f646a2b2fe793b40067b09c95a5871e52a43a'
Diffstat (limited to 'src/tls/tls_channel.h')
-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 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 |