Skip to content

Commit 475ec7b

Browse files
authored
Merge pull request wolfSSL#7550 from bandi13/addEnableProvider
Add enable provider
2 parents 95f4e06 + 5b1e6db commit 475ec7b

1 file changed

Lines changed: 26 additions & 5 deletions

File tree

configure.ac

Lines changed: 26 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,22 @@ AC_ARG_ENABLE([fips],
322322
[ENABLED_FIPS=$enableval],
323323
[ENABLED_FIPS="no"])
324324

325+
# wolfProvider Options
326+
AC_ARG_ENABLE([wolfprovider],
327+
[AS_HELP_STRING([--enable-wolfprovider],[Enable wolfProvider options (default: disabled)])],
328+
[ ENABLED_WOLFPROVIDER=$enableval ],
329+
[ ENABLED_WOLFPROVIDER=no ]
330+
)
331+
if test "x$ENABLED_WOLFPROVIDER" != "xno"
332+
then
333+
test -z "$enable_all_crypto" && enable_all_crypto=yes
334+
test -z "$enable_opensslcoexist" && enable_opensslcoexist=yes
335+
test -z "$enable_sha" && enable_sha=yes
336+
test -z "$enable_eccminsz" && enable_eccminsz=192
337+
test -z "$with_max_ecc_bits" && with_max_ecc_bits=1024
338+
AM_CFLAGS="$AM_CFLAGS -DWC_RSA_NO_PADDING -DWOLFSSL_PUBLIC_MP -DHAVE_PUBLIC_FFDHE -DHAVE_FFDHE_6144 -DHAVE_FFDHE_8192 -DWOLFSSL_PSS_LONG_SALT -DWOLFSSL_PSS_SALT_LEN_DISCOVER"
339+
fi
340+
325341
# wolfEngine Options
326342
AC_ARG_ENABLE([engine],
327343
[AS_HELP_STRING([--enable-engine],[Enable wolfEngine options (default: disabled)])],
@@ -3969,13 +3985,18 @@ fi
39693985

39703986
# ECC Minimum Key Size
39713987
AC_ARG_WITH([eccminsz],
3972-
[AS_HELP_STRING([--with-eccminsz=BITS],[Sets the ECC minimum key size (default: 224 bits)])],
3988+
[AS_HELP_STRING([--with-eccminsz=BITS],[Sets the ECC minimum key size (default: 224 bits non-FIPS / 192 bits with FIPS)])],
3989+
[ ENABLED_ECCMINSZ=$withval ],
39733990
[
3974-
ENABLED_ECCMINSZ=$withval
3975-
AM_CFLAGS="$AM_CFLAGS -DECC_MIN_KEY_SZ=$withval"
3976-
],
3977-
[ ENABLED_ECCMINSZ=224 ]
3991+
if test "x$ENABLED_FIPS" = "xno"
3992+
then
3993+
ENABLED_ECCMINSZ=224
3994+
else
3995+
ENABLED_ECCMINSZ=192
3996+
fi
3997+
]
39783998
)
3999+
AM_CFLAGS="$AM_CFLAGS -DECC_MIN_KEY_SZ=$ENABLED_ECCMINSZ"
39794000

39804001
# Compressed Key
39814002
AC_ARG_ENABLE([compkey],

0 commit comments

Comments
 (0)