- 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;
|
unsigned int count;
|
||||||
|
|
||||||
count = p15card->card->algorithm_count;
|
count = p15card->card->algorithm_count;
|
||||||
info = p15card->card->algorithms;
|
for (info = p15card->card->algorithms; count--; info++) {
|
||||||
while (count--) {
|
|
||||||
/* XXX: check for equality, or <= ? */
|
/* XXX: check for equality, or <= ? */
|
||||||
if (info->algorithm != key->algorithm
|
if (info->algorithm != key->algorithm
|
||||||
|| info->key_length != key_length)
|
|| info->key_length != key_length)
|
||||||
|
|
Loading…
Reference in New Issue