Fix “#error old TLS requires MD5 and SHA” to only occur if !WOLFCRYPT_ONLY.

This commit is contained in:
David Garske 2017-03-20 10:42:08 -07:00
parent 6cc42dcacb
commit 15e442637d

View File

@ -1493,7 +1493,8 @@ static char *fgets(char *buff, int sz, FILE *fp)
#endif
#endif
#if !defined(NO_OLD_TLS) && (defined(NO_SHA) || defined(NO_MD5))
#if !defined(WOLFCRYPT_ONLY) && !defined(NO_OLD_TLS) && \
(defined(NO_SHA) || defined(NO_MD5))
#error old TLS requires MD5 and SHA
#endif