mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-19 05:43:14 +03:00
Handle DTLS version encoding and fix some checks
This commit is contained in:
committed by
Paul Bakker
parent
864a81fdc0
commit
abc7e3b4ba
@ -1818,6 +1818,11 @@ int ssl_check_cert_usage( const x509_crt *cert,
|
||||
int cert_endpoint );
|
||||
#endif /* POLARSSL_X509_CRT_PARSE_C */
|
||||
|
||||
void ssl_write_version( int major, int minor, int transport,
|
||||
unsigned char ver[2] );
|
||||
void ssl_read_version( int *major, int *minor, int transport,
|
||||
const unsigned char ver[2] );
|
||||
|
||||
/* constant-time buffer comparison */
|
||||
static inline int safer_memcmp( const void *a, const void *b, size_t n )
|
||||
{
|
||||
|
Reference in New Issue
Block a user