mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-29 11:41:15 +03:00
Reverse meaning of OID_CMP
This commit is contained in:
@ -269,7 +269,7 @@ int x509_get_rsassa_pss_params( const x509_buf *params,
|
||||
return( ret );
|
||||
|
||||
/* Only MFG1 is recognised for now */
|
||||
if( ! OID_CMP( OID_MGF1, &alg_id ) )
|
||||
if( OID_CMP( OID_MGF1, &alg_id ) != 0 )
|
||||
return( POLARSSL_ERR_X509_FEATURE_UNAVAILABLE +
|
||||
POLARSSL_ERR_OID_NOT_FOUND );
|
||||
|
||||
|
Reference in New Issue
Block a user