Browse Source

fixed windows build error

pull/5/head
orignal 7 years ago
parent
commit
6e3d5aa530
  1. 6
      src/Gost.cpp

6
src/Gost.cpp

@ -3,9 +3,6 @@ @@ -3,9 +3,6 @@
#include <array>
#include <openssl/sha.h>
#include <openssl/evp.h>
#ifdef WIN32
#include <winsock2.h> // for htoll
#endif
#include "Gost.h"
namespace i2p
@ -360,7 +357,8 @@ namespace crypto @@ -360,7 +357,8 @@ namespace crypto
}
}
#ifdef WIN32
ll[i] = htoll (c);
for (int k = 0; k < 8; k++)
buf[k] = ((uint8_t *)&c)[7-k];
#else
ll[i] = htobe64 (c); // TODO:
#endif

Loading…
Cancel
Save