- bug in check_key_compatibility()
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@561 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
parent
94cb1e0219
commit
b08c5ef702
|
@ -777,8 +777,7 @@ check_key_compatibility(struct sc_pkcs15_card *p15card,
|
|||
unsigned int count;
|
||||
|
||||
count = p15card->card->algorithm_count;
|
||||
info = p15card->card->algorithms;
|
||||
while (count--) {
|
||||
for (info = p15card->card->algorithms; count--; info++) {
|
||||
/* XXX: check for equality, or <= ? */
|
||||
if (info->algorithm != key->algorithm
|
||||
|| info->key_length != key_length)
|
||||
|
|
Loading…
Reference in New Issue