mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-03-11 16:13:50 +00:00
Skip ssl_server in config-suite-b
When building with `configs/config-suite-b.h`, the SSL I/O buffer size is 1024 bytes. Experimentally, this isn't quite enough for the test certificate that we use: the server aborts the handshake with `MBEDTLS_ERR_SSL_BUFFER_TOO_SMALL` raised from `mbedtls_ssl_write_certificate()`. State an ad hoc minimum output buffer size to skip testing `ssl_server` in `config-suite-b`. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
parent
e13ff09aff
commit
f9ad8303f1
@ -509,6 +509,11 @@ detect_required_features() {
|
||||
requires_config_enabled MBEDTLS_PEM_PARSE_C
|
||||
requires_config_enabled MBEDTLS_SSL_SRV_C
|
||||
requires_certificate_authentication
|
||||
# The actual minimum depends on the configuration since it's
|
||||
# mostly about the certificate size.
|
||||
# In config-suite-b.h, for the test certificates (server5.crt),
|
||||
# 1024 is not enough.
|
||||
requires_config_value_at_least MBEDTLS_SSL_OUT_CONTENT_LEN 2000
|
||||
;;
|
||||
esac
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user