1
0
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:
Manuel Pégourié-Gonnard
2015-03-19 16:54:56 +00:00
parent 852a6d3d8f
commit 6e0643762d
5 changed files with 9 additions and 11 deletions

View File

@ -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 );