mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 10:47:28 +02:00
Merge pull request #7539 from bandi13/fixConversionPart2
Fix conversion part2
This commit is contained in:
16
configure.ac
16
configure.ac
@ -100,6 +100,9 @@ else
|
|||||||
REPRODUCIBLE_BUILD_DEFAULT=no
|
REPRODUCIBLE_BUILD_DEFAULT=no
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Fail when an option is passed that is not recognized
|
||||||
|
m4_divert_once([DEFAULTS], [enable_option_checking=fatal])
|
||||||
|
|
||||||
# Allow experimental settings
|
# Allow experimental settings
|
||||||
AC_ARG_ENABLE([experimental],
|
AC_ARG_ENABLE([experimental],
|
||||||
[AS_HELP_STRING([--enable-experimental],[Allow experimental settings in the configuration (default: disabled)])],
|
[AS_HELP_STRING([--enable-experimental],[Allow experimental settings in the configuration (default: disabled)])],
|
||||||
@ -3757,13 +3760,13 @@ then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# ECC Minimum Key Size
|
# ECC Minimum Key Size
|
||||||
ENABLED_ECCMINSZ=224
|
|
||||||
AC_ARG_WITH([eccminsz],
|
AC_ARG_WITH([eccminsz],
|
||||||
[AS_HELP_STRING([--with-eccminsz=BITS],[Sets the ECC minimum key size (default: 224 bits)])],
|
[AS_HELP_STRING([--with-eccminsz=BITS],[Sets the ECC minimum key size (default: 224 bits)])],
|
||||||
[
|
[
|
||||||
ENABLED_ECCMINSZ=$withval
|
ENABLED_ECCMINSZ=$withval
|
||||||
AM_CFLAGS="$AM_CFLAGS -DECC_MIN_KEY_SZ=$withval"
|
AM_CFLAGS="$AM_CFLAGS -DECC_MIN_KEY_SZ=$withval"
|
||||||
]
|
],
|
||||||
|
[ ENABLED_ECCMINSZ=224 ]
|
||||||
)
|
)
|
||||||
|
|
||||||
# Compressed Key
|
# Compressed Key
|
||||||
@ -8324,7 +8327,7 @@ fi
|
|||||||
AC_ARG_WITH([max-ecc-bits],
|
AC_ARG_WITH([max-ecc-bits],
|
||||||
[AS_HELP_STRING([--with-max-ecc-bits=number],[number of bits to support for ECC algorithms])],
|
[AS_HELP_STRING([--with-max-ecc-bits=number],[number of bits to support for ECC algorithms])],
|
||||||
[WITH_MAX_ECC_BITS=$withval],
|
[WITH_MAX_ECC_BITS=$withval],
|
||||||
[WITH_MAX_ECC_BITS="$DEFAULT_MAX_ECC_BITS"])
|
)
|
||||||
|
|
||||||
if test -n "$WITH_MAX_ECC_BITS"; then
|
if test -n "$WITH_MAX_ECC_BITS"; then
|
||||||
if test "$WITH_MAX_ECC_BITS" -lt 112 -o "$WITH_MAX_ECC_BITS" -gt 1024; then
|
if test "$WITH_MAX_ECC_BITS" -lt 112 -o "$WITH_MAX_ECC_BITS" -gt 1024; then
|
||||||
@ -10044,3 +10047,10 @@ if test "$MINGW_LIB_WARNING" = "yes"
|
|||||||
then
|
then
|
||||||
AC_MSG_WARN([Building with shared and static library at the same time on this system may cause export/import problems when using non contemporary GNU tools.])
|
AC_MSG_WARN([Building with shared and static library at the same time on this system may cause export/import problems when using non contemporary GNU tools.])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if test -n "$WITH_MAX_ECC_BITS"; then
|
||||||
|
if test "$WITH_MAX_ECC_BITS" -lt "$ENABLED_ECCMINSZ"; then
|
||||||
|
AC_MSG_ERROR([--with-max-ecc-bits argument ($WITH_MAX_ECC_BITS) must be greater than --with-eccminsz argument ($ENABLED_ECCMINSZ)])
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
@ -571,7 +571,7 @@ int wc_PRF_TLS(byte* digest, word32 digLen, const byte* secret, word32 secLen,
|
|||||||
(void)heap;
|
(void)heap;
|
||||||
/* okmLen (2) + protocol|label len (1) + info len(1) + protocollen +
|
/* okmLen (2) + protocol|label len (1) + info len(1) + protocollen +
|
||||||
* labellen + infolen */
|
* labellen + infolen */
|
||||||
len = (size_t)4 + protocolLen + labelLen + infoLen;
|
len = 4U + protocolLen + labelLen + infoLen;
|
||||||
|
|
||||||
data = (byte*)XMALLOC(len, heap, DYNAMIC_TYPE_TMP_BUFFER);
|
data = (byte*)XMALLOC(len, heap, DYNAMIC_TYPE_TMP_BUFFER);
|
||||||
if (data == NULL)
|
if (data == NULL)
|
||||||
|
Reference in New Issue
Block a user