mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-12-23 06:15:37 +00:00
Fix threshold checks for MBEDTLS_X509_MAX_INTERMEDIATE_CA
This commit is contained in:
parent
bba1c29554
commit
9e24b5184c
|
@ -2106,7 +2106,7 @@ run_test "Authentication: client no cert, ssl3" \
|
|||
# The "max_int chain" tests assume that MAX_INTERMEDIATE_CA is set to its
|
||||
# default value (8)
|
||||
|
||||
: ${MAX_IM_CA:='20'}
|
||||
: ${MAX_IM_CA:='19'}
|
||||
MAX_IM_CA_CONFIG=$( ../scripts/config.pl get MBEDTLS_X509_MAX_INTERMEDIATE_CA)
|
||||
|
||||
if [ -n "$MAX_IM_CA_CONFIG" ] && [ "$MAX_IM_CA_CONFIG" -gt "$MAX_IM_CA" ]; then
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
#include "mbedtls/oid.h"
|
||||
#include "mbedtls/base64.h"
|
||||
|
||||
#if MBEDTLS_X509_MAX_INTERMEDIATE_CA >= 19
|
||||
#if MBEDTLS_X509_MAX_INTERMEDIATE_CA > 19
|
||||
#error "The value of MBEDTLS_X509_MAX_INTERMEDIATE_C is larger \
|
||||
than the current threshold 19. To test larger values, please \
|
||||
adapt the script tests/data_files/dir-max/long.sh."
|
||||
|
|
Loading…
Reference in a new issue