mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-07 17:08:42 +00:00
libtorrent fix
This commit is contained in:
parent
21b9e10aed
commit
595c16d858
1 changed files with 0 additions and 15 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue