package/openvpn: add mbedtls support
A message that is not in the archive (sent off-list or not yet received): [email protected]
PATCH v2 1/1 package/openvpn: add mbedtls support
Quoted 5 lines
mbedtls (former polarssl) support was dropped with commit
3380da69c5ab490e5c51dca0c4389b0da91743d0Put it back as openvpn supports mbedtls 2.x since version 2.4.0 and
https://github.com/OpenVPN/openvpn/commit/86d8cd6860dfc74cb1a040ff8fe03140ebe7f930
I proposed such a patch in May, but it was not accepted.
http://buildroot-busybox.2317881.n4.nabble.com/PATCH-package-openvpn-add-option-to-use-mbed-TLS-instead-of-OpenSSL-td255807.html
IMO mbedtls could be selected by default.
I tried
select BR2_PACKAGE_MBEDTLS if !BR2_PACKAGE_OPENSSL
but it doesn't work (kconfig fails to resolve dependencies).
PATCH v2 1/1 package/openvpn: add mbedtls support
Le jeu. 29 oct. 2020 ? 23:20, Ed Spiridonov <[email protected]> a ?crit :
Quoted 9 lines
Quoted 6 lines
mbedtls (former polarssl) support was dropped with commit
3380da69c5ab490e5c51dca0c4389b0da91743d0Put it back as openvpn supports mbedtls 2.x since version 2.4.0 and
https://github.com/OpenVPN/openvpn/commit/86d8cd6860dfc74cb1a040ff8fe03140ebe7f930I proposed such a patch in May, but it was not accepted.
http://buildroot-busybox.2317881.n4.nabble.com/PATCH-package-openvpn-add-option-to-use-mbed-TLS-instead-of-OpenSSL-td255807.html
Sorry, I missed your patch, I'll set mine as not applicable and wait for the v2 of your patch to be merged.
Quoted 2 lines
IMO mbedtls could be selected by default.
I don't agree as this will break backward compatibility which should really be avoided.
Moreover, it should also be noted that upstream openvpn uses openssl, and not mbedtls, by default:
https://github.com/OpenVPN/openvpn/blob/master/configure.ac#L267
We could add a Config option to allow the user to select the crypto backend as some buildroot packages have such an option (libcurl, libssh) however most don't (shairport-sync, uacme, ustream-ssl, libnice, efl, lftp ...).
To conclude, I would advise that you send a v2 of your patch.
Quoted 3 lines
I tried
selectBR2_PACKAGE_MBEDTLSif !BR2_PACKAGE_OPENSSL
but it doesn't work (kconfig fails to resolve dependencies).
Best Regards,
Fabrice
PATCH v2 1/1 package/openvpn: add mbedtls support
Quoted 6 lines · Fabrice Fontaine
Quoted 1 line
IMO mbedtls could be selected by default.
I don't agree as this will break backward compatibility which should really be avoided.
Moreover, it should also be noted that upstream openvpn uses openssl, and not mbedtls, by default:
https://github.com/OpenVPN/openvpn/blob/master/configure.ac#L267
AFAIK openvpn for Android and iOS uses mbedtls. So it is a well-tested configuration.
I offered mbedtls as the default option because it is much more compact (the difference in the size of the uncompressed image is about 2 MB).
BTW, I have been using my patch on 100+ devices since May with no issues at all.
Quoted 5 lines
We could add a Config option to allow the user to select the crypto backend as some buildroot packages have such an option (libcurl, libssh) however most don't (shairport-sync, uacme, ustream-ssl, libnice, efl, lftp ...).
To conclude, I would advise that you send a v2 of your patch.
Indeed I would be happy with your patch as well if openssl should remain the default choice.