diff options
author | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2003-07-04 00:17:37 +0000 |
---|---|---|
committer | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2003-07-04 00:17:37 +0000 |
commit | 572fe07633123ce38abf28c6426356e37aef3a99 (patch) | |
tree | 0536d87e504a82920156c239bc5ae6aa43e70ebc /files.h | |
parent | 3e8c979ddc194e043567c036321e67c89f847362 (diff) | |
download | cryptopp-572fe07633123ce38abf28c6426356e37aef3a99.tar.gz |
create DLL version, fix GetNextIV() bug in CTR and OFB modes
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@87 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'files.h')
-rw-r--r-- | files.h | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -11,7 +11,7 @@ NAMESPACE_BEGIN(CryptoPP) //! . -class FileStore : public Store, private FilterPutSpaceHelper +class CRYPTOPP_DLL FileStore : public Store, private FilterPutSpaceHelper, public NotCopyable { public: class Err : public Exception @@ -38,7 +38,7 @@ public: private: void StoreInitialize(const NameValuePairs ¶meters); - std::ifstream m_file; + member_ptr<std::ifstream> m_file; std::istream *m_stream; byte *m_space; unsigned int m_len; @@ -46,7 +46,7 @@ private: }; //! . -class FileSource : public SourceTemplate<FileStore> +class CRYPTOPP_DLL FileSource : public SourceTemplate<FileStore> { public: typedef FileStore::Err Err; @@ -64,7 +64,7 @@ public: }; //! . -class FileSink : public Sink +class CRYPTOPP_DLL FileSink : public Sink, public NotCopyable { public: class Err : public Exception @@ -88,7 +88,7 @@ public: bool IsolatedFlush(bool hardFlush, bool blocking); private: - std::ofstream m_file; + member_ptr<std::ofstream> m_file; std::ostream *m_stream; }; |