diff options
author | lloyd <[email protected]> | 2011-12-28 21:54:06 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2011-12-28 21:54:06 +0000 |
commit | 0862c2df098bd3d18431f019aca5c24a6ecc0f95 (patch) | |
tree | e53dbac987473b4ed9d910422555a6c289248999 /src/tls/tls_record.h | |
parent | 0327d46856edbac4bc8bcaf5a3d793142bbd880d (diff) |
Optimization/work on future optimization for the record writer;
collects all the data into a single buffer and encrypts it in one
go. Once the support is there for in-place encryption in the cipher
modes this will help out substantially.
Diffstat (limited to 'src/tls/tls_record.h')
-rw-r--r-- | src/tls/tls_record.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/tls/tls_record.h b/src/tls/tls_record.h index 9744c6484..d2dbdf596 100644 --- a/src/tls/tls_record.h +++ b/src/tls/tls_record.h @@ -55,13 +55,12 @@ class BOTAN_DLL Record_Writer void reset(); - Record_Writer(std::tr1::function<void (const byte[], size_t)> output_fn); + Record_Writer(std::tr1::function<void (const byte[], size_t)> output_fn, + size_t max_fragment = 0); ~Record_Writer() { delete mac; } private: void send_record(byte type, const byte input[], size_t length); - void send_record(byte type, byte major, byte minor, - const byte input[], size_t length); std::tr1::function<void (const byte[], size_t)> output_fn; Pipe cipher; |