allow examples build if no-sha but psk is on
This commit is contained in:
parent
27faf15678
commit
9ba62a2c52
@ -1695,7 +1695,7 @@ AC_ARG_ENABLE([examples],
|
|||||||
AS_IF([test "x$ENABLED_FILESYSTEM" = "xno"], [ENABLED_EXAMPLES="no"])
|
AS_IF([test "x$ENABLED_FILESYSTEM" = "xno"], [ENABLED_EXAMPLES="no"])
|
||||||
AS_IF([test "x$ENABLED_INLINE" = "xno"], [ENABLED_EXAMPLES="no"])
|
AS_IF([test "x$ENABLED_INLINE" = "xno"], [ENABLED_EXAMPLES="no"])
|
||||||
# certs still have sha signatures for now
|
# certs still have sha signatures for now
|
||||||
AS_IF([test "x$ENABLED_SHA" = "xno"], [ENABLED_EXAMPLES="no"])
|
AS_IF([test "x$ENABLED_SHA" = "xno" && test"x$ENABLED_PSK" = "xno"], [ENABLED_EXAMPLES="no"])
|
||||||
AM_CONDITIONAL([BUILD_EXAMPLES], [test "x$ENABLED_EXAMPLES" = "xyes"])
|
AM_CONDITIONAL([BUILD_EXAMPLES], [test "x$ENABLED_EXAMPLES" = "xyes"])
|
||||||
|
|
||||||
|
|
||||||
|
@ -127,10 +127,12 @@ int HashTest(void)
|
|||||||
printf( " HMAC-MD5 test passed!\n");
|
printf( " HMAC-MD5 test passed!\n");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef NO_SHA
|
||||||
if ( (ret = hmac_sha_test()) )
|
if ( (ret = hmac_sha_test()) )
|
||||||
printf( " HMAC-SHA test failed!\n");
|
printf( " HMAC-SHA test failed!\n");
|
||||||
else
|
else
|
||||||
printf( " HMAC-SHA test passed!\n");
|
printf( " HMAC-SHA test passed!\n");
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef NO_SHA256
|
#ifndef NO_SHA256
|
||||||
if ( (ret = hmac_sha256_test()) )
|
if ( (ret = hmac_sha256_test()) )
|
||||||
@ -631,7 +633,7 @@ int hmac_md5_test(void)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef NO_HMAC
|
#if !defined(NO_HMAC) && !defined(NO_SHA)
|
||||||
int hmac_sha_test(void)
|
int hmac_sha_test(void)
|
||||||
{
|
{
|
||||||
Hmac hmac;
|
Hmac hmac;
|
||||||
|
Loading…
Reference in New Issue
Block a user