From e144f9d40d5695b69306bde729d6d8adcd62b1c4 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Mon, 22 Apr 2013 16:30:31 -0700 Subject: [PATCH] crypto_hash_sha(256|512) are the exported functions that have to be exported. _ref are implementations, that shouldn't be exported. --- src/libsodium/include/sodium/crypto_hash_sha256.h | 4 ++-- src/libsodium/include/sodium/crypto_hash_sha512.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/libsodium/include/sodium/crypto_hash_sha256.h b/src/libsodium/include/sodium/crypto_hash_sha256.h index b9742f96..4b12267b 100644 --- a/src/libsodium/include/sodium/crypto_hash_sha256.h +++ b/src/libsodium/include/sodium/crypto_hash_sha256.h @@ -11,12 +11,12 @@ extern "C" { #endif SODIUM_EXPORT -int crypto_hash_sha256_ref(unsigned char *,const unsigned char *,unsigned long long); +int crypto_hash_sha256(unsigned char *,const unsigned char *,unsigned long long); #ifdef __cplusplus } #endif -#define crypto_hash_sha256 crypto_hash_sha256_ref +#define crypto_hash_sha256_ref crypto_hash_sha256 #endif diff --git a/src/libsodium/include/sodium/crypto_hash_sha512.h b/src/libsodium/include/sodium/crypto_hash_sha512.h index a7f0361e..5ea1c702 100644 --- a/src/libsodium/include/sodium/crypto_hash_sha512.h +++ b/src/libsodium/include/sodium/crypto_hash_sha512.h @@ -11,12 +11,12 @@ extern "C" { #endif SODIUM_EXPORT -int crypto_hash_sha512_ref(unsigned char *,const unsigned char *,unsigned long long); +int crypto_hash_sha512(unsigned char *,const unsigned char *,unsigned long long); #ifdef __cplusplus } #endif -#define crypto_hash_sha512 crypto_hash_sha512_ref +#define crypto_hash_sha512_ref crypto_hash_sha512 #endif