mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-29 11:41:15 +03:00
Fix pk_can_do() constness issue
This commit is contained in:
@ -3992,7 +3992,7 @@ int ssl_parse_certificate( ssl_context *ssl )
|
||||
|
||||
#if defined(POLARSSL_SSL_SET_CURVES)
|
||||
{
|
||||
pk_context *pk = &ssl->session_negotiate->peer_cert->pk;
|
||||
const pk_context *pk = &ssl->session_negotiate->peer_cert->pk;
|
||||
|
||||
/* If certificate uses an EC key, make sure the curve is OK */
|
||||
if( pk_can_do( pk, POLARSSL_PK_ECKEY ) &&
|
||||
|
Reference in New Issue
Block a user