diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2006-03-22 15:10:03 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2006-03-22 15:10:03 +0000 |
| commit | 26aa28acb3793d3d992625fcaad5e45df336a9a3 (patch) | |
| tree | d2e46f9ad50aa1a11ce8350494458cf8a9372caa /src/AbstractDiskWriter.h | |
| parent | bf336caa83f28f02f0b60697af3d97c2e5156144 (diff) | |
* PeerInteractionCommand.cc: added a call to
TorrentMan::unadvertisePiece in Destructor.
* PeerInteractionCommand.cc: make have message sent immediately
if the size of pending message queue is zero.
* TorrentMan.cc: set the maximum size of peer list to 250.
* TorrentMan.h: changed the container type of Peers and
UsedPieces
to deque.
* Util.cc: fixed rangedFileCopy.
* AbstractDiskWriter.{h,cc}: moved digest context initialization
to Constructor. Also, moved digest cleanup to Destructor.
* MetaFileUtil.cc: fixed memory leak
Diffstat (limited to 'src/AbstractDiskWriter.h')
| -rw-r--r-- | src/AbstractDiskWriter.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/AbstractDiskWriter.h b/src/AbstractDiskWriter.h index b5221170..31c3a282 100644 --- a/src/AbstractDiskWriter.h +++ b/src/AbstractDiskWriter.h @@ -23,11 +23,18 @@ #define _D_ABSTRACT_DISK_WRITER_H_ #include "DiskWriter.h" +#ifdef HAVE_LIBSSL +#include <openssl/evp.h> +#endif // HAVE_LIBSSL class AbstractDiskWriter:public DiskWriter { protected: int fd; +#ifdef HAVE_LIBSSL + EVP_MD_CTX ctx; +#endif // HAVE_LIBSSL + void createFile(string filename, int addFlags = 0); void writeDataInternal(const char* data, int len); |
