Skip to contentSkip to conversation

wolfssl: new package

PATCH New Sergio Prado 4 participants 14 messages Dec 12, 2017 – Dec 18, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 wolfssl: new package

The wolfSSL embedded SSL library is a lightweight and portable SSL/TLS library.

Tested on Beaglebone Black.

Build-tested with test-pkg script.

---
 DEVELOPERS                   |  1 +
 package/Config.in            |  1 +
 package/wolfssl/Config.in    |  9 +++++++++
 package/wolfssl/wolfssl.hash |  6 ++++++
 package/wolfssl/wolfssl.mk   | 44 ++++++++++++++++++++++++++++++++++++++++++++
 5 files changed, 61 insertions(+)
 create mode 100644 package/wolfssl/Config.in
 create mode 100644 package/wolfssl/wolfssl.hash
 create mode 100644 package/wolfssl/wolfssl.mk
DEVELOPERS +1 -0
index 77e3344fa4dc..54ba8ceb2a64 100644
@@ -1541,6 +1541,7 @@ F:	package/mongodb/
 F:	package/stella/
 F:	package/tunctl/
 F:	package/ubus/
+F:	package/wolfssl/
 
 N:	Simon Dawson <[email protected]>
 F:	boot/at91bootstrap3/
package/Config.in +1 -0
index cb2141b8f3c8..1455ca6ddc1a 100644
@@ -1046,6 +1046,7 @@ menu "Crypto"
 	source "package/tinydtls/Config.in"
 	source "package/trousers/Config.in"
 	source "package/ustream-ssl/Config.in"
+	source "package/wolfssl/Config.in"
 endmenu
 
 menu "Database"
package/wolfssl/Config.in new file +9 -0
new file mode 100644
index 000000000000..3c62db13c57b
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_WOLFSSL
+	bool "wolfssl"
+	help
+	  The wolfSSL embedded SSL library (formerly CyaSSL) is a
+	  lightweight, portable, C-language-based SSL/TLS library
+	  targeted at IoT, embedded, and RTOS environments primarily
+	  because of its size, speed, and feature set.
+
+	  https://www.wolfssl.com/
package/wolfssl/wolfssl.hash new file +6 -0
new file mode 100644
index 000000000000..26534038f62d
@@ -0,0 +1,6 @@
+# Locally computed:
+sha256 0e0750705ceb0b42d83e609a1c35c3203734af50a92b15e2706bc06a6e50a439  v3.12.2-stable.tar.gz
+
+# Hash for license files:
+sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643  COPYING
+sha256 74adaaef40b96c71378b6daa3feb8ccd4a1bfd9b76debf3f3f29cf3a0e86c9a0  LICENSING
package/wolfssl/wolfssl.mk new file +44 -0

44 lines not on this page · raw message

Signature · 1 line
1.9.1
#1 lore raw

PATCH 1/1 wolfssl: new package

Hi Sergio,

Quoted 4 lines · Sergio Prado

The wolfSSL embedded SSL library is a lightweight and portable SSL/TLS library.

Tested on Beaglebone Black.

How have you tested this library?

Quoted 77 lines

Build-tested with test-pkg script.

---
 DEVELOPERS                   |  1 +
 package/Config.in            |  1 +
 package/wolfssl/Config.in    |  9 +++++++++
 package/wolfssl/wolfssl.hash |  6 ++++++
 package/wolfssl/wolfssl.mk   | 44 ++++++++++++++++++++++++++++++++++++++++++++
 5 files changed, 61 insertions(+)
 create mode 100644 package/wolfssl/Config.in
 create mode 100644 package/wolfssl/wolfssl.hash
 create mode 100644 package/wolfssl/wolfssl.mk
DEVELOPERS +1 -0
index 77e3344fa4dc..54ba8ceb2a64 100644
@@ -1541,6 +1541,7 @@ F:	package/mongodb/
 F:	package/stella/
 F:	package/tunctl/
 F:	package/ubus/
+F:	package/wolfssl/
 
 N:	Simon Dawson <[email protected]>
 F:	boot/at91bootstrap3/
package/Config.in +1 -0
index cb2141b8f3c8..1455ca6ddc1a 100644
@@ -1046,6 +1046,7 @@ menu "Crypto"
 	source "package/tinydtls/Config.in"
 	source "package/trousers/Config.in"
 	source "package/ustream-ssl/Config.in"
+	source "package/wolfssl/Config.in"
 endmenu
 
 menu "Database"
package/wolfssl/Config.in new file +9 -0
new file mode 100644
index 000000000000..3c62db13c57b
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_WOLFSSL
+	bool "wolfssl"
+	help
+	  The wolfSSL embedded SSL library (formerly CyaSSL) is a
+	  lightweight, portable, C-language-based SSL/TLS library
+	  targeted at IoT, embedded, and RTOS environments primarily
+	  because of its size, speed, and feature set.
+
+	  https://www.wolfssl.com/
package/wolfssl/wolfssl.hash new file +6 -0
new file mode 100644
index 000000000000..26534038f62d
@@ -0,0 +1,6 @@
+# Locally computed:
+sha256 0e0750705ceb0b42d83e609a1c35c3203734af50a92b15e2706bc06a6e50a439  v3.12.2-stable.tar.gz
+
+# Hash for license files:
+sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643  COPYING
+sha256 74adaaef40b96c71378b6daa3feb8ccd4a1bfd9b76debf3f3f29cf3a0e86c9a0  LICENSING
package/wolfssl/wolfssl.mk new file +6 -0
new file mode 100644
index 000000000000..9f3362bf6a42
@@ -0,0 +1,44 @@
+################################################################################
+#
+# wolfssl
+#
+################################################################################
+

package/wolfssl/wolfssl.mk line 16

Quoted 10 lines
package/wolfssl/wolfssl.mk new file +10 -0
+WOLFSSL_VERSION = 3.12.2
+WOLFSSL_SITE = https://github.com/wolfSSL/wolfssl/archive
+WOLFSSL_SOURCE = v$(WOLFSSL_VERSION)-stable.tar.gz
+
+WOLFSSL_LICENSE = GPL-2.0
+WOLFSSL_LICENSE_FILES = COPYING LICENSING
+
+WOLFSSL_DEPENDENCIES = host-pkgconf
+
+WOLFSSL_AUTORECONF = YES

Please add a comment explaining with autoreconf is needed.

Quoted 9 lines
package/wolfssl/wolfssl.mk new file +9 -0
+WOLFSSL_CONF_OPTS += --disable-examples
+
+ifeq ($(BR2_PACKAGE_NGINX),y)
+WOLFSSL_CONF_OPTS += --enable-nginx
+else
+WOLFSSL_CONF_OPTS += --disable-nginx
+endif
+
+ifeq ($(BR2_PACKAGE_LIGHTTPD),y)

package/wolfssl/wolfssl.mk line 36

Quoted 10 lines
package/wolfssl/wolfssl.mk new file +10 -0
+WOLFSSL_CONF_OPTS += --enable-lighty
+else
+WOLFSSL_CONF_OPTS += --disable-lighty
+endif
+
+ifeq ($(BR2_PACKAGE_WPA_SUPPLICANT),y)
+WOLFSSL_CONF_OPTS += --enable-wpas --enable-sha512
+else
+WOLFSSL_CONF_OPTS += --disable-wpas
+endif

This is strange. Usually a package using SSL/TLS library needs to be aware of the library, not the other way around. Can you explain what is the effect of these configure options?

baruch

Quoted 7 lines
package/wolfssl/wolfssl.mk new file +7 -0
+ifeq ($(BR2_ARM_CPU_ARMV8A),y)
+WOLFSSL_CONF_OPTS += --enable-armasm
+else
+WOLFSSL_CONF_OPTS += --disable-armasm
+endif
+
+$(eval $(autotools-package))
Signature · 3 lines
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -
#2 lore raw

PATCH 1/1 wolfssl: new package

Hi Baruch,

Quoted 7 lines · Sergio Prado
Quoted 4 lines

The wolfSSL embedded SSL library is a lightweight and portable SSL/TLS library.

Tested on Beaglebone Black.

How have you tested this library?

I have used a tool called testsuite that comes with wolfssl source code inside the testsuite/ directory. To build it, you have to
pass --enable-examples in the configure, and then manually copy the binary to the rootfs. Also, to use this tool, you will probably need to copy the certs/* directory to the rootfs.

Quoted 3 lines
Quoted 1 line

+WOLFSSL_AUTORECONF = YES

Please add a comment explaining with autoreconf is needed.

OK, I will.

Quoted 13 lines
Quoted 13 lines
package/wolfssl/wolfssl.mk new file +13 -0
+WOLFSSL_CONF_OPTS += --disable-examples
+
+ifeq ($(BR2_PACKAGE_NGINX),y)
+WOLFSSL_CONF_OPTS += --enable-nginx
+else
+WOLFSSL_CONF_OPTS += --disable-nginx
+endif
+
+ifeq ($(BR2_PACKAGE_LIGHTTPD),y)
+WOLFSSL_CONF_OPTS += --enable-lighty
+else
+WOLFSSL_CONF_OPTS += --disable-lighty
+endif
Quoted 8 lines

package/wolfssl/wolfssl.mk line 36

Quoted 6 lines
package/wolfssl/wolfssl.mk new file +6 -0
+
+ifeq ($(BR2_PACKAGE_WPA_SUPPLICANT),y)
+WOLFSSL_CONF_OPTS += --enable-wpas --enable-sha512
+else
+WOLFSSL_CONF_OPTS += --disable-wpas
+endif

This is strange. Usually a package using SSL/TLS library needs to be

aware of

Quoted 1 line

the library, not the other way around. Can you explain what is the effect

of

Quoted 1 line

these configure options?

It depends on the option, but in general enables some extra library features that could be used by the specific application.

For example, if you pass --enable-nginx, it will define OPENSSL_EXTRA that will enable the wolfSSL OpenSSL compatibility layer to ease porting wolfSSL into existing applications which had been designed to work with OpenSSL.

Best regards,

Sergio Prado
Embedded Labworks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20171212/898aaffc/attachment.html>

#3 lore raw

PATCH 1/1 wolfssl: new package

Hi Sergio,

Quoted 6 lines · Sergio Prado
Quoted 6 lines · Sergio Prado
Quoted 4 lines

The wolfSSL embedded SSL library is a lightweight and portable SSL/TLS library.

Tested on Beaglebone Black.

Quoted 7 lines
Quoted 1 line

How have you tested this library?

I have used a tool called testsuite that comes with wolfssl source code inside the testsuite/ directory. To build it, you have to
pass --enable-examples in the configure, and then manually copy the binary to the rootfs. Also, to use this tool, you will probably need to copy the certs/* directory to the rootfs.

Having this information in the commit log would be useful.

Quoted 30 lines
Quoted 3 lines
Quoted 1 line

+WOLFSSL_AUTORECONF = YES

Please add a comment explaining with autoreconf is needed.

OK, I will.

Quoted 15 lines
Quoted 15 lines
package/wolfssl/wolfssl.mk new file +15 -0
+WOLFSSL_CONF_OPTS += --disable-examples
+
+ifeq ($(BR2_PACKAGE_NGINX),y)
+WOLFSSL_CONF_OPTS += --enable-nginx
+else
+WOLFSSL_CONF_OPTS += --disable-nginx
+endif
+
+ifeq ($(BR2_PACKAGE_LIGHTTPD),y)
+WOLFSSL_CONF_OPTS += --enable-lighty
+else
+WOLFSSL_CONF_OPTS += --disable-lighty
+endif
+
+ifeq ($(BR2_PACKAGE_WPA_SUPPLICANT),y)
Quoted 8 lines

package/wolfssl/wolfssl.mk line 36

Quoted 4 lines
package/wolfssl/wolfssl.mk new file +4 -0
+WOLFSSL_CONF_OPTS += --enable-wpas --enable-sha512
+else
+WOLFSSL_CONF_OPTS += --disable-wpas
+endif

This is strange. Usually a package using SSL/TLS library needs to be aware of the library, not the other way around. Can you explain what is the effect of these configure options?

Quoted 6 lines

It depends on the option, but in general enables some extra library features that could be used by the specific application.

For example, if you pass --enable-nginx, it will define OPENSSL_EXTRA that will enable the wolfSSL OpenSSL compatibility layer to ease porting wolfSSL into existing applications which had been designed to work with OpenSSL.

So --enable-nginx is not nginx specific. It would probably make sense to enable it for other packages as well. What about the --enable-lighty and --enable-wpas options? How large is the target size increase of these options?

In any case we need a comment that explains all that.

baruch

Signature · 3 lines
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
#4 lore raw

PATCH 1/1 wolfssl: new package

Hello,

Quoted 7 lines · Baruch Siach
Quoted 6 lines

It depends on the option, but in general enables some extra library features that could be used by the specific application.

For example, if you pass --enable-nginx, it will define OPENSSL_EXTRA that will enable the wolfSSL OpenSSL compatibility layer to ease porting wolfSSL into existing applications which had been designed to work with OpenSSL.

Quoted 5 lines

So --enable-nginx is not nginx specific. It would probably make sense to enable it for other packages as well. What about the --enable-lighty and --enable-wpas options? How large is the target size increase of these options?

In any case we need a comment that explains all that.

I also agree that the way it's done in the current proposal is very confusing. I looked at the patch before looking at Baruch answer and was about to make the exact same comment.

In addition, enabling those features currently doesn't make much sense, because none of lighttpd, wpa_supplicant or nginx have an optional dependency on wolfssl.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
#5 lore raw

PATCH 1/1 wolfssl: new package

In reply to Baruch Siach

Hi Baruch,

Quoted 5 lines
Quoted 5 lines
Quoted 1 line

How have you tested this library?

I have used a tool called testsuite that comes with wolfssl source code inside the testsuite/ directory. To build it, you have to pass --enable-examples in the configure, and then manually copy the

binary

Quoted 1 line
Quoted 1 line

to the rootfs. Also, to use this tool, you will probably need to copy

the

Quoted 3 lines
Quoted 1 line

certs/* directory to the rootfs.

Having this information in the commit log would be useful.

Sure. I'll add it in V2.

Quoted 3 lines

So --enable-nginx is not nginx specific. It would probably make sense to enable it for other packages as well. What about the --enable-lighty and --enable-wpas options? How large is the target size increase of these

options?

Quoted 2 lines

In any case we need a comment that explains all that.

To be more precise, if you pass --enable-nginx it will define the following macros during the build process (if I'm not missing any):

-DOPENSSL_EXTRA
-DSESSION_CERTS
-DHAVE_ECC
-DHAVE_OCSP
-DHAVE_TLS_EXTENSIONS
-DHAVE_CERTIFICATE_STATUS_REQUESTENABLED_CRL
-DHAVE_TLS_EXTENSIONS
-DHAVE_SESSION_TICKET
-DHAVE_TLS_EXTENSIONS
-DHAVE_SNI
-DHAVE_MAX_FRAGMENT
-DHAVE_TRUNCATED_HMAC
-DHAVE_ALPN
-DWOLFSSL_NGINX
-DWOLFSSL_ALWAYS_VERIFY_CB
-DWOLFSSL_ALWAYS_KEEP_SNI
-DKEEP_OUR_CERT -DKEEP_PEER_CERT
-DHAVE_EXT_CACHE -DHAVE_EX_DATA

If you pass --enable-lighty:

-DOPENSSL_EXTRA
-DHAVE_LIGHTY
-DHAVE_WOLFSSL_SSL_H=1

If you pass --enable-wpas:

-DHAVE_SECRET_CALLBACK
-DWOLFSSL_STATIC_RSA
-DWOLFSSL_PUBLIC_MP
-DWOLFSSL_PUBLIC_ECC_ADD_DBL
-DATOMIC_USER
-DHAVE_EX_DATA
-DWOLFSSL_KEEP_PEER_CERT
-DHAVE_EXT_CACHE
-DWOLFSSL_ALWAYS_VERIFY_CB
-DOPENSSL_EXTRA
-DWOLFSSL_AES_DIRECT
-DWOLFSSL_DER_LOAD
-DWOLFSSL_SHA512
-DWOLFSSL_SHA384
-DWOLFSSL_KEY_GEN
-DWOLFSSL_WPAS
-DHAVE_COMP_KEY
-DHAVE_ANON
-DWOLFSSL_CMAC
-DWOLFSSL_AES_DIRECT
-DHAVE_TLS_EXTENSIONS
-DHAVE_SESSION_TICKET

I'm not a crypto or wolfssl expert, but as far as I understood, passing these options will enable the inclusion or change the behaviour of some crypto algorithms. And that would make nginx, lighttpd and wpa_supplicant work with wolfssl. I know that this is strange, normally an application depends on a library, and not the other way around.

I also discovered looking at wolfssl forums that they keep patches to be applied in these applications, so they would work with wolfssl. And these patches are not public [1].

So, from that point of view, it does not make sense to keep these options in the package's makefile, since it is not useful with the upstream version of nginx, lighttpd and wpa_supplicant. What do you think?

[1] https://www.wolfssl.com/forums/topic1015-nginx-wolfssl.html

Best regards,

Sergio Prado
Embedded Labworks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20171213/c17e2002/attachment.html>

#6 lore raw

PATCH 1/1 wolfssl: new package

Hello,

Quoted 9 lines · Sergio Prado

I also discovered looking at wolfssl forums that they keep patches to be applied in these applications, so they would work with wolfssl. And these patches are not public [1].

So, from that point of view, it does not make sense to keep these options in the package's makefile, since it is not useful with the upstream version of nginx, lighttpd and wpa_supplicant. What do you think?

[1] https://www.wolfssl.com/forums/topic1015-nginx-wolfssl.html

Indeed, of you can't build wolfssl against nginx without out of tree patches that are not even public, I don't see the point of enabling "nginx support" in wolfssl.

Best regards,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
#7 lore raw

PATCH 1/1 wolfssl: new package

Hi Thomas, Sergio,

Quoted 10 lines · Thomas Petazzoni
Quoted 8 lines · Sergio Prado

I also discovered looking at wolfssl forums that they keep patches to be applied in these applications, so they would work with wolfssl. And these patches are not public [1].

So, from that point of view, it does not make sense to keep these options in the package's makefile, since it is not useful with the upstream version of nginx, lighttpd and wpa_supplicant. What do you think?

Quoted 5 lines
Quoted 1 line

[1] https://www.wolfssl.com/forums/topic1015-nginx-wolfssl.html

Indeed, of you can't build wolfssl against nginx without out of tree patches that are not even public, I don't see the point of enabling "nginx support" in wolfssl.

While I agree with Thomas, I think that if there is a convenient way to control the wolfssl configuration then we should expose it somehow. The list of HAVE_* options indicates that many, maybe even most, users will need more than the default minimal configuration.

baruch

Signature · 3 lines
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
#8 lore raw

PATCH 1/1 wolfssl: new package

Hi Thomas, Baruch,

2017-12-14 4:43 GMT-02:00 Baruch Siach <[email protected]>:

Quoted 7 lines

Hi Thomas, Sergio,

Quoted 3 lines · Thomas Petazzoni
Quoted 1 line · Sergio Prado

I also discovered looking at wolfssl forums that they keep patches to

be

Quoted 1 line
Quoted 1 line
Quoted 1 line

applied in these applications, so they would work with wolfssl. And

these

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

patches are not public [1].

So, from that point of view, it does not make sense to keep these

options

Quoted 1 line
Quoted 1 line
Quoted 1 line

in the package's makefile, since it is not useful with the upstream

version

Quoted 10 lines
Quoted 7 lines
Quoted 3 lines

of nginx, lighttpd and wpa_supplicant. What do you think?

[1] https://www.wolfssl.com/forums/topic1015-nginx-wolfssl.html

Indeed, of you can't build wolfssl against nginx without out of tree patches that are not even public, I don't see the point of enabling "nginx support" in wolfssl.

While I agree with Thomas, I think that if there is a convenient way to control the wolfssl configuration then we should expose it somehow. The

list

Quoted 1 line

of HAVE_* options indicates that many, maybe even most, users will need

more

Quoted 1 line

than the default minimal configuration.

So I see two possible options:

1. Completely remove these options.
2. Keep these options, documenting that to be useful, it needs out of tree patches that are not public and should be requested via wolfssl website contact page.

I'm okay with both options, but I think option 2 is better because it will give Buildroot users the possibility to use wolfssl with nginx/lighttpd/wpa_supplicant in a way the wolfssl project intended. What do you think?

Best regards,

Sergio Prado
Embedded Labworks
https://e-labworks.com/en
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20171214/bb6580c6/attachment.html>

#9 lore raw

PATCH 1/1 wolfssl: new package

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Sergio" == Sergio Prado <[email protected]> writes:

Hi,

Quoted 11 lines

So I see two possible options:

1. Completely remove these options.
2. Keep these options, documenting that to be useful, it needs out of tree patches that are not public and should be requested via wolfssl website contact page.

I'm okay with both options, but I think option 2 is better because it will give Buildroot users the possibility to use wolfssl with nginx/lighttpd/wpa_supplicant in a way the wolfssl project intended. What do you think?

If these options cannot be tested in upstream Buildroot then they imho shouldn't be there, so +1 for option 1.

Signature · 1 line
Bye, Peter Korsgaard
#10 lore raw

PATCH 1/1 wolfssl: new package

Hello,

Quoted 7 lines · Peter Korsgaard
Quoted 4 lines

I'm okay with both options, but I think option 2 is better because it will give Buildroot users the possibility to use wolfssl with nginx/lighttpd/wpa_supplicant in a way the wolfssl project intended. What do you think?

If these options cannot be tested in upstream Buildroot then they imho shouldn't be there, so +1 for option 1.

Agreed.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
#11 lore raw

PATCH 1/1 wolfssl: new package

In reply to Peter Korsgaard

Hi Peter, Sergio,

Quoted 8 lines · Peter Korsgaard
Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Sergio" == Sergio Prado <[email protected]> writes:

So I see two possible options:

1. Completely remove these options.
2. Keep these options, documenting that to be useful, it needs out of tree patches that are not public and should be requested via wolfssl website contact page.

Quoted 7 lines
Quoted 4 lines

I'm okay with both options, but I think option 2 is better because it will give Buildroot users the possibility to use wolfssl with nginx/lighttpd/wpa_supplicant in a way the wolfssl project intended. What do you think?

If these options cannot be tested in upstream Buildroot then they imho shouldn't be there, so +1 for option 1.

I agree that these package specific options are not useful for Buildroot. But judging from the list of HAVE_* defines and configure options in wolfssl build documentation chapter[1] it looks like the default build will not be useful to many users without customization. Is there a way to expose some of this flexibility to Buildroot users without forcing them to manually edit the .mk file?

baruch

[1] https://www.wolfssl.com/docs/wolfssl-manual/ch2/

Signature · 3 lines
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -
#12 lore raw

PATCH 1/1 wolfssl: new package

Hi Peter, Thomas, Baruch,

2017-12-15 6:24 GMT-02:00 Baruch Siach <[email protected]>:

Quoted 9 lines

Hi Peter, Sergio,

Quoted 5 lines · Peter Korsgaard
Quoted 5 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Sergio" == Sergio Prado <[email protected]> writes:

So I see two possible options:

1. Completely remove these options.
2. Keep these options, documenting that to be useful, it needs out

of tree

Quoted 1 line
Quoted 1 line
Quoted 1 line

patches that are not public and should be requested via wolfssl

website

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

contact page.

I'm okay with both options, but I think option 2 is better because

it will

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

give Buildroot users the possibility to use wolfssl with nginx/lighttpd/wpa_supplicant in a way the wolfssl project intended.

What

Quoted 6 lines
Quoted 4 lines
Quoted 1 line

do you think?

If these options cannot be tested in upstream Buildroot then they imho shouldn't be there, so +1 for option 1.

I agree that these package specific options are not useful for Buildroot.

But

Quoted 1 line

judging from the list of HAVE_* defines and configure options in wolfssl

build

Quoted 1 line

documentation chapter[1] it looks like the default build will not be

useful to

Quoted 2 lines

many users without customization. Is there a way to expose some of this flexibility to Buildroot users without forcing them to manually edit the

.mk

Quoted 1 line

file?

Most features that are enabled when we pass --enabled-nginx can be individually selected in the configure script with other options like --enable-sessioncerts and --enable-opensslextra.

We could create additional menu options in Buildroot so the user could enable these features without changing the .mk file. The wolfssl configure script supports more then 150 individual --enable-* options, so we would have to selected the most common ones.

What do you think about this approach?

Best regards,

Sergio Prado
Embedded Labworks
https://e-labworks.com/en

Quoted 8 lines

baruch

[1] https://www.wolfssl.com/docs/wolfssl-manual/ch2/

--
http://baruch.siach.name/blog/ ~. .~ Tk Open

Systems

Quoted 1 line

=}------------------------------------------------ooO--U--Ooo------------{=

Quoted 1 line

- baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20171215/18562b03/attachment.html>

#13 lore raw

PATCH 1/1 wolfssl: new package

Hi Sergio,

Quoted 37 lines · Sergio Prado

2017-12-15 6:24 GMT-02:00 Baruch Siach <[email protected]>:

Quoted 6 lines · Peter Korsgaard
Quoted 5 lines
Quoted 5 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Sergio" == Sergio Prado <[email protected]> writes:

So I see two possible options:

1. Completely remove these options.
2. Keep these options, documenting that to be useful, it needs out

of tree

Quoted 1 line
Quoted 1 line
Quoted 1 line

patches that are not public and should be requested via wolfssl

website

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

contact page.

I'm okay with both options, but I think option 2 is better because

it will

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

give Buildroot users the possibility to use wolfssl with nginx/lighttpd/wpa_supplicant in a way the wolfssl project intended.

What

Quoted 6 lines
Quoted 4 lines
Quoted 1 line

do you think?

If these options cannot be tested in upstream Buildroot then they imho shouldn't be there, so +1 for option 1.

I agree that these package specific options are not useful for Buildroot.

But

Quoted 1 line

judging from the list of HAVE_* defines and configure options in wolfssl

build

Quoted 1 line

documentation chapter[1] it looks like the default build will not be

useful to

Quoted 2 lines

many users without customization. Is there a way to expose some of this flexibility to Buildroot users without forcing them to manually edit the

.mk

Quoted 1 line

file?

Most features that are enabled when we pass --enabled-nginx can be individually selected in the configure script with other options like --enable-sessioncerts and --enable-opensslextra.

Quoted 6 lines

We could create additional menu options in Buildroot so the user could enable these features without changing the .mk file. The wolfssl configure script supports more then 150 individual --enable-* options, so we would have to selected the most common ones.

What do you think about this approach?

That is the best we can do at the moment I guess. We can have like two or three build profiles that cover what most users would need.

baruch

Signature · 3 lines
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -