add extern C to hash.h

This commit is contained in:
toddouska
2015-08-18 12:31:34 -07:00
parent 15995d1b2c
commit 3b9ec2c119

View File

@ -24,6 +24,10 @@
#include <wolfssl/wolfcrypt/types.h>
#ifdef __cplusplus
extern "C" {
#endif
#ifndef NO_MD5
#include <wolfssl/wolfcrypt/md5.h>
WOLFSSL_API void wc_Md5GetHash(Md5*, byte*);
@ -63,9 +67,9 @@ WOLFSSL_API int wc_Sha256Hash(const byte*, word32, byte*);
#include <wolfssl/wolfcrypt/sha512.h>
WOLFSSL_API int wc_Sha512Hash(const byte*, word32, byte*);
#if defined(WOLFSSL_TI_HASH)
WOLFSSL_API void wc_Sha512Free(Sha512*);
WOLFSSL_API void wc_Sha512Free(Sha512*);
#else
#define wc_Sha512Free(d)
#define wc_Sha512Free(d)
#endif
#if defined(WOLFSSL_SHA384)
WOLFSSL_API int wc_Sha384Hash(const byte*, word32, byte*);
@ -78,4 +82,8 @@ WOLFSSL_API void wc_Sha512Free(Sha512*);
#endif /* WOLFSSL_SHA512 */
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /* WOLF_CRYPT_HASH_H */