ssl_tls.c: Return in error if default config fails
Signed-off-by: Ronald Cron <ronald.cron@arm.com>
This commit is contained in:
parent
a77fc2756e
commit
1fa4f6863b
@ -4246,6 +4246,7 @@ int mbedtls_ssl_config_defaults( mbedtls_ssl_config *conf,
|
|||||||
conf->max_major_ver = 0;
|
conf->max_major_ver = 0;
|
||||||
conf->min_minor_ver = 0;
|
conf->min_minor_ver = 0;
|
||||||
conf->max_minor_ver = 0;
|
conf->max_minor_ver = 0;
|
||||||
|
return( MBEDTLS_ERR_SSL_FEATURE_UNAVAILABLE );
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
else
|
else
|
||||||
@ -4297,6 +4298,7 @@ int mbedtls_ssl_config_defaults( mbedtls_ssl_config *conf,
|
|||||||
conf->max_major_ver = 0;
|
conf->max_major_ver = 0;
|
||||||
conf->min_minor_ver = 0;
|
conf->min_minor_ver = 0;
|
||||||
conf->max_minor_ver = 0;
|
conf->max_minor_ver = 0;
|
||||||
|
return( MBEDTLS_ERR_SSL_FEATURE_UNAVAILABLE );
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user