ndilieto / uacme

ACMEv2 client written in plain C with minimal dependencies
GNU General Public License v3.0
432 stars 37 forks source link

ualpn.c: fix build with mbedtls 2.x #61

Closed ffontaine closed 2 years ago

ffontaine commented 2 years ago

Fix the following build failure with mbedtls 2.x (e.g. 2.28.1) raised since version 1.7.2 and https://github.com/ndilieto/uacme/commit/e580344f5906e10dfb690e92228b1f22b3f5aeba:

ualpn.c: In function 'cert_select':
ualpn.c:2283:20: error: 'MBEDTLS_ERR_SSL_HANDSHAKE_FAILURE' undeclared (first use in this function); did you mean 'MBEDTLS_SSL_ALERT_MSG_HANDSHAKE_FAILURE'?
 2283 |             return MBEDTLS_ERR_SSL_HANDSHAKE_FAILURE;
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                    MBEDTLS_SSL_ALERT_MSG_HANDSHAKE_FAILURE

Fixes:

Signed-off-by: Fabrice Fontaine fontaine.fabrice@gmail.com

ndilieto commented 2 years ago

Thanks for spotting this. Fixed in 1.7.3