Browse Source

fixed windows build error

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

7
src/Gost.cpp

@ -3,6 +3,9 @@ @@ -3,6 +3,9 @@
#include <array>
#include <openssl/sha.h>
#include <openssl/evp.h>
#ifdef WIN32
#include <winsock2.h> // for htoll
#endif
#include "Gost.h"
namespace i2p
@ -356,7 +359,11 @@ namespace crypto @@ -356,7 +359,11 @@ namespace crypto
bit >>= 1;
}
}
#ifdef WIN32
ll[i] = htoll (c);
#else
ll[i] = htobe64 (c); // TODO:
#endif
}
}

Loading…
Cancel
Save