Skip to content

Commit

Permalink
fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
deemru committed Mar 23, 2024
1 parent fa1d5f4 commit 78bab51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gostssl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -818,7 +818,7 @@ static BOOL CertHasUsage( PCCERT_CONTEXT pcert, const char * oid )
if( CertGetEnhancedKeyUsage( pcert, 0, ekuList, &ekuLength ) )
{
if( ekuList->cUsageIdentifier == 0 )
return GetLastError() == CRYPT_E_NOT_FOUND ? TRUE : FALSE;
return GetLastError() == (DWORD)CRYPT_E_NOT_FOUND ? TRUE : FALSE;
for( DWORD i = 0; i < ekuList->cUsageIdentifier; i++ )
if( 0 == strcmp( ekuList->rgpszUsageIdentifier[i], oid ) )
return TRUE;
Expand Down

0 comments on commit 78bab51

Please sign in to comment.