diff --git a/wolfssl/wolfcrypt/asn_public.h b/wolfssl/wolfcrypt/asn_public.h index 03596c317..1a38aa01d 100644 --- a/wolfssl/wolfcrypt/asn_public.h +++ b/wolfssl/wolfcrypt/asn_public.h @@ -217,12 +217,6 @@ WOLFSSL_API int wc_SetSubjectKeyIdFromNtruPublicKey(Cert *cert, byte *ntruKey, */ WOLFSSL_API int wc_SetKeyUsage(Cert *cert, const char *value); -/* encode Certificate Policies, return total bytes written - * each input value must be ITU-T X.690 formatted : a.b.c... - * input must be an array of values with a NULL terminated for the latest - * RFC5280 : non-critical */ -WOLFSSL_API int wc_SetCertificatePolicies(Cert *cert, const char **input); - #endif /* WOLFSSL_CERT_EXT */ #ifdef HAVE_NTRU diff --git a/wolfssl/wolfcrypt/hash.h b/wolfssl/wolfcrypt/hash.h index e9021514b..37125cdcc 100644 --- a/wolfssl/wolfcrypt/hash.h +++ b/wolfssl/wolfcrypt/hash.h @@ -106,18 +106,11 @@ WOLFSSL_API int wc_Sha256Hash(const byte*, word32, byte*); #ifdef WOLFSSL_SHA512 #include WOLFSSL_API int wc_Sha512Hash(const byte*, word32, byte*); -#if defined(WOLFSSL_TI_HASH) - WOLFSSL_API void wc_Sha512Free(Sha512*); -#else - #define wc_Sha512Free(d) -#endif +#define wc_Sha512Free(d) + #if defined(WOLFSSL_SHA384) WOLFSSL_API int wc_Sha384Hash(const byte*, word32, byte*); - #if defined(WOLFSSL_TI_HASH) - WOLFSSL_API void wc_Sha384Free(Sha384*); - #else - #define wc_Sha384Free(d) - #endif + #define wc_Sha384Free(d) #endif /* defined(WOLFSSL_SHA384) */ #endif /* WOLFSSL_SHA512 */