Skip to content

Commit

Permalink
meson: Add option to override system WolfSSL with embedded WolfSSL
Browse files Browse the repository at this point in the history
  • Loading branch information
dgsga committed Jul 1, 2024
1 parent 63f2445 commit b6620f6
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
12 changes: 9 additions & 3 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,7 @@ message('BDB version: ', bdb_version)
#

have_embedded_ssl = get_option('with-embedded-ssl')
force_embedded_ssl = get_option('with-ssl-override')

ssl_deps = []
ssl_link_args = []
Expand Down Expand Up @@ -596,9 +597,14 @@ if have_wolfssl or have_embedded_ssl or crypto.found()
endif

if have_wolfssl
ssl_deps += wolfssl
ssl_provider += 'WolfSSL'
cdata.set('WOLFSSL_DHX', 1)
if force_embedded_ssl
ssl_provider += 'built-in'
cdata.set('EMBEDDED_SSL', 1)
else
ssl_deps += wolfssl
ssl_provider += 'WolfSSL'
cdata.set('WOLFSSL_DHX', 1)
endif
elif have_embedded_ssl
ssl_provider += 'built-in'
cdata.set('EMBEDDED_SSL', 1)
Expand Down
6 changes: 6 additions & 0 deletions meson_options.txt
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,12 @@ option(
value: true,
description: 'Enable SLP (srvloc) support',
)
option(
'with-ssl-override',
type: 'boolean',
value: false,
description: 'Force built-in WolfSSL as SSL provider',
)
option(
'with-tcp-wrappers',
type: 'boolean',
Expand Down

0 comments on commit b6620f6

Please sign in to comment.