diff options
author | lloyd <[email protected]> | 2013-07-01 15:08:05 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2013-07-01 15:08:05 +0000 |
commit | e85ac6b676bfe4c7779dc459effe381e75ec1c2a (patch) | |
tree | 84ea57b6e1b913b11ef59c223c42d65f5a20495c | |
parent | d2b4514152e606cc34cbb3239546ab2ebb0f2d71 (diff) |
Add sending std::vector to TLS::Channel
-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 |