Browse Source

Fix build with LibreSSL

LibreSSL includes work slightly different, need to  specifically rand.h was not included making build fail where RAND_add is used
miguelfreitas
Bernard Spil 10 years ago
parent
commit
cacca0a56c
  1. 1
      libtorrent/include/libtorrent/pe_crypto.hpp

1
libtorrent/include/libtorrent/pe_crypto.hpp

@ -43,6 +43,7 @@ POSSIBILITY OF SUCH DAMAGE. @@ -43,6 +43,7 @@ POSSIBILITY OF SUCH DAMAGE.
#include <openssl/rc4.h>
#include <openssl/evp.h>
#include <openssl/aes.h>
#include <openssl/rand.h>
#else
// RC4 state from libtomcrypt
struct rc4 {

Loading…
Cancel
Save