Removed unnecessary spaces from framework-pkc15.c as requested.

pkcs15: added explicit comparison when checking return value of sc_compare_oid() to make the logic more obvious.
This commit is contained in:
Hannu Honkanen 2018-11-14 09:39:03 +02:00 committed by Frank Morgner
parent 7f91b6e07f
commit aa8f666f46
2 changed files with 8 additions and 8 deletions

View File

@ -2587,7 +2587,7 @@ sc_pkcs15_get_specific_supported_algo(struct sc_pkcs15_card *p15card, unsigned o
for (ii=0;ii<SC_MAX_SUPPORTED_ALGORITHMS && p15card->tokeninfo->supported_algos[ii].reference; ii++)
if ((p15card->tokeninfo->supported_algos[ii].operations & operation)
&& (p15card->tokeninfo->supported_algos[ii].mechanism == mechanism)
&& sc_compare_oid(algo_oid, &p15card->tokeninfo->supported_algos[ii].algo_id))
&& sc_compare_oid(algo_oid, &p15card->tokeninfo->supported_algos[ii].algo_id) == 1)
break;
if (ii < SC_MAX_SUPPORTED_ALGORITHMS && p15card->tokeninfo->supported_algos[ii].reference) {