aboutsummaryrefslogtreecommitdiff
path: root/sand-leek.c
diff options
context:
space:
mode:
Diffstat (limited to 'sand-leek.c')
-rw-r--r--sand-leek.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sand-leek.c b/sand-leek.c
index 7c5ea29..97b9b1d 100644
--- a/sand-leek.c
+++ b/sand-leek.c
@@ -6,12 +6,12 @@
#include <semaphore.h>
#include <errno.h>
#include <string.h>
-#include <endian.h>
#include <openssl/rsa.h>
#include <openssl/sha.h>
#include <openssl/pem.h>
#include <openssl/err.h>
+#include "endian.h"
#include "onion_base32.h"
#include "key_update.h"
@@ -91,7 +91,7 @@ work(void *arg) {
while (e < EXPONENT_MAX) {
memcpy(&working_sha_c, &sha_c, sizeof(SHA_CTX));
- e_big_endian = htobe32(e);
+ e_big_endian = sl_htobe32(e);
SHA1_Update(&working_sha_c, &e_big_endian, EXPONENT_SIZE_BYTES);
SHA1_Final((unsigned char*)&sha, &working_sha_c);