aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-06-07 22:00:28 +0000
committerlloyd <[email protected]>2010-06-07 22:00:28 +0000
commit9f5053a3e43c025c409ef31e33cf0d8b52f4f375 (patch)
tree14e45a970d9941eec50ebf236ee5b0ccb951eb71 /src
parent01c50c18182c1c703032c1e7e1ad31ecf0508123 (diff)
Make Filter::new_msg and finish_msg private; only used by Pipe, which is a friend
Diffstat (limited to 'src')
-rw-r--r--src/filters/filter.h25
1 files changed, 13 insertions, 12 deletions
diff --git a/src/filters/filter.h b/src/filters/filter.h
index b13a36650..b840a69da 100644
--- a/src/filters/filter.h
+++ b/src/filters/filter.h
@@ -29,12 +29,13 @@ class BOTAN_DLL Filter
/**
* Start a new message. Must be closed by end_msg() before another
- * message can be startet.
+ * message can be started.
*/
virtual void start_msg() {}
/**
- * Tell the Filter that the current message shall be ended.
+ * Notify that the current message is finished; flush buffers and
+ * do end-of-message processing (if any).
*/
virtual void end_msg() {}
@@ -44,6 +45,16 @@ class BOTAN_DLL Filter
*/
virtual bool attachable() { return true; }
+ virtual ~Filter() {}
+ protected:
+ void send(const byte[], u32bit);
+ void send(byte input) { send(&input, 1); }
+ void send(const MemoryRegion<byte>& in) { send(in.begin(), in.size()); }
+ Filter();
+ private:
+ Filter(const Filter&) {}
+ Filter& operator=(const Filter&) { return (*this); }
+
/**
* Start a new message in *this and all following filters. Only for
* internal use, not intended for use in client applications.
@@ -56,16 +67,6 @@ class BOTAN_DLL Filter
*/
void finish_msg();
- virtual ~Filter() {}
- protected:
- void send(const byte[], u32bit);
- void send(byte input) { send(&input, 1); }
- void send(const MemoryRegion<byte>& in) { send(in.begin(), in.size()); }
- Filter();
- private:
- Filter(const Filter&) {}
- Filter& operator=(const Filter&) { return (*this); }
-
friend class Pipe;
friend class Fanout_Filter;