mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-28 00:21:48 +03:00
Merge remote-tracking branch 'origin/pr/2781' into development
* origin/pr/2781: Documentation fixes according to review Remove unused label in ssl_client2/ssl_server2 Add missing word in documentation of mbedtls_ssl_check_record() cli/srv ex: Add dbg msg if record checking gives inconsistent result Fix minor issues in documentation of mbedtls_ssl_check_record() State that record checking is DTLS only and doesn't check content type Update version_features.c Pass dgrams to mbedtls_ssl_check_record in ssl_client2/server2 Add IO wrappers to ssl_server2 as interm's between NET and SSL layer Add IO wrappers to ssl_client2 as interm's between NET and SSL layer Introduce configuration option and API for SSL record checking
This commit is contained in:
@ -108,6 +108,18 @@ static void ssl_update_out_pointers( mbedtls_ssl_context *ssl,
|
||||
mbedtls_ssl_transform *transform );
|
||||
static void ssl_update_in_pointers( mbedtls_ssl_context *ssl );
|
||||
|
||||
#if defined(MBEDTLS_SSL_RECORD_CHECKING)
|
||||
int mbedtls_ssl_check_record( mbedtls_ssl_context const *ssl,
|
||||
unsigned char *buf,
|
||||
size_t buflen )
|
||||
{
|
||||
((void) ssl);
|
||||
((void) buf);
|
||||
((void) buflen);
|
||||
return( MBEDTLS_ERR_SSL_FEATURE_UNAVAILABLE );
|
||||
}
|
||||
#endif /* MBEDTLS_SSL_RECORD_CHECKING */
|
||||
|
||||
#define SSL_DONT_FORCE_FLUSH 0
|
||||
#define SSL_FORCE_FLUSH 1
|
||||
|
||||
|
Reference in New Issue
Block a user