mirror of https://github.com/wolfSSL/wolfssl.git
commit
7366a9edbd
19
configure.ac
19
configure.ac
|
@ -7434,13 +7434,6 @@ esac
|
|||
# Update ENABLE_* variables #
|
||||
################################################################################
|
||||
|
||||
if test "x$ENABLED_LEANPSK" = "xyes" || test "x$ENABLED_CERTS" = "xno" || \
|
||||
test "x$ENABLED_ASN" = "xno"
|
||||
then
|
||||
ENABLED_CERTS=no
|
||||
ENABLED_ASN=no
|
||||
fi
|
||||
|
||||
if test "x$ENABLED_SYS_CA_CERTS" = "xyes"
|
||||
then
|
||||
if test "x$ENABLED_FILESYSTEM" = "xno"
|
||||
|
@ -7555,6 +7548,11 @@ then
|
|||
ENABLED_CERTS=yes
|
||||
fi
|
||||
|
||||
if test "$ENABLED_ED25519" != "no" || test "$ENABLED_ED448" != "no"
|
||||
then
|
||||
ENABLED_CERTS=yes
|
||||
fi
|
||||
|
||||
if test "$ENABLED_MD5" = "yes"
|
||||
then
|
||||
# turn off MD5 if leanpsk or leantls on
|
||||
|
@ -7564,6 +7562,13 @@ then
|
|||
fi
|
||||
fi
|
||||
|
||||
if test "x$ENABLED_LEANPSK" = "xyes" || test "x$ENABLED_CERTS" = "xno" || \
|
||||
test "x$ENABLED_ASN" = "xno"
|
||||
then
|
||||
ENABLED_CERTS=no
|
||||
ENABLED_ASN=no
|
||||
fi
|
||||
|
||||
################################################################################
|
||||
# Check for build-type conflicts #
|
||||
################################################################################
|
||||
|
|
|
@ -1350,7 +1350,8 @@ static int test_wolfSSL_CTX_load_system_CA_certs(void)
|
|||
{
|
||||
int ret = 0;
|
||||
|
||||
#if defined(WOLFSSL_SYS_CA_CERTS) && !defined(NO_WOLFSSL_CLIENT)
|
||||
#if defined(WOLFSSL_SYS_CA_CERTS) && !defined(NO_WOLFSSL_CLIENT) && \
|
||||
(!defined(NO_RSA) || defined(HAVE_ECC))
|
||||
WOLFSSL_CTX* ctx;
|
||||
byte dirValid = 0;
|
||||
|
||||
|
|
|
@ -8326,8 +8326,9 @@ static void print_alg(const char* str, int* line)
|
|||
/* Display the usage options of the benchmark program. */
|
||||
static void Usage(void)
|
||||
{
|
||||
int e = 0;
|
||||
#ifndef WOLFSSL_BENCHMARK_ALL
|
||||
int i, e = 0;
|
||||
int i;
|
||||
int line;
|
||||
#endif
|
||||
|
||||
|
|
|
@ -214,6 +214,8 @@ extern int wc_InitRsaHw(RsaKey* key);
|
|||
|
||||
|
||||
/* Calculates the minimum number of bytes required to encode the value.
|
||||
*
|
||||
* Only support up to 2^24-1.
|
||||
*
|
||||
* @param [in] value Value to be encoded.
|
||||
* @return Number of bytes to encode value.
|
||||
|
@ -221,7 +223,7 @@ extern int wc_InitRsaHw(RsaKey* key);
|
|||
static word32 BytePrecision(word32 value)
|
||||
{
|
||||
word32 i;
|
||||
for (i = (word32)sizeof(value); i; --i)
|
||||
for (i = (word32)sizeof(value) - 1; i; --i)
|
||||
if (value >> ((i - 1) * WOLFSSL_BIT_SIZE))
|
||||
break;
|
||||
|
||||
|
|
Loading…
Reference in New Issue