mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-26 01:55:15 +00:00
libtorrent fix
This commit is contained in:
parent
21b9e10aed
commit
595c16d858
@ -40,25 +40,10 @@ POSSIBILITY OF SUCH DAMAGE.
|
|||||||
#include "libtorrent/config.hpp"
|
#include "libtorrent/config.hpp"
|
||||||
#include "zlib.h"
|
#include "zlib.h"
|
||||||
|
|
||||||
#ifdef TORRENT_USE_OPENSSL
|
|
||||||
extern "C"
|
extern "C"
|
||||||
{
|
{
|
||||||
#include <openssl/sha.h>
|
#include <openssl/sha.h>
|
||||||
}
|
}
|
||||||
#else
|
|
||||||
// from sha1.cpp
|
|
||||||
struct TORRENT_EXPORT SHA_CTX
|
|
||||||
{
|
|
||||||
boost::uint32_t state[5];
|
|
||||||
boost::uint32_t count[2];
|
|
||||||
boost::uint8_t buffer[64];
|
|
||||||
};
|
|
||||||
|
|
||||||
TORRENT_EXPORT void SHA1_Init(SHA_CTX* context);
|
|
||||||
TORRENT_EXPORT void SHA1_Update(SHA_CTX* context, boost::uint8_t const* data, boost::uint32_t len);
|
|
||||||
TORRENT_EXPORT void SHA1_Final(boost::uint8_t* digest, SHA_CTX* context);
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
namespace libtorrent
|
namespace libtorrent
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user