Browse Source

[core] avoid multiple definition of SHA512_CTX

avoid multiple definition of SHA512_CTX when using Nettle
master
Glenn Strauss 4 months ago
parent
commit
073f57e51a
  1. 6
      src/sys-crypto-md.h

6
src/sys-crypto-md.h

@ -104,7 +104,9 @@ SHA256_Update(SHA256_CTX *ctx, const void *data, size_t length)
}
#define USE_LIB_CRYPTO_SHA512_256
typedef struct sha512_256_ctx SHA512_CTX; /*(yes, SHA512_CTX)*/
/*(nettle/sha2.h: #define sha512_256_ctx sha512_ctx)*/
/*typedef struct sha512_256_ctx SHA512_CTX;*/ /*(yes, SHA512_CTX)*/
typedef struct sha512_ctx SHA512_CTX;
static inline int
SHA512_256_Init(SHA512_CTX *ctx)
{
@ -125,7 +127,7 @@ SHA512_256_Update(SHA512_CTX *ctx, const void *data, size_t length)
}
#define USE_LIB_CRYPTO_SHA512
typedef struct sha512_ctx SHA512_CTX;
/*typedef struct sha512_ctx SHA512_CTX;*//*(defined above)*/
static inline int
SHA512_Init(SHA512_CTX *ctx)
{

Loading…
Cancel
Save