Skip to content

Commit

Permalink
Fix comments from review
Browse files Browse the repository at this point in the history
  • Loading branch information
ya-isakov authored and Jakuje committed Dec 4, 2021
1 parent ede2347 commit 2cc7b10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pkcs11/mechanism.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ sc_pkcs11_register_mechanism(struct sc_pkcs11_card *p11card,
_update_mech_info(&existing_mt->mech_info, &mt->mech_info);
/* XXX Should be changed to loop over mt->key_types, if
* we allow to register mechanism with multiple key types
* in one operation */
* in one operation */
existing_mt->key_types[i] = mt->key_types[0];
if (i + 1 < MAX_KEY_TYPES) {
existing_mt->key_types[i + 1] = -1;
Expand All @@ -129,7 +129,7 @@ sc_pkcs11_register_mechanism(struct sc_pkcs11_card *p11card,
return CKR_OK;
}
}
sc_log(p11card->card->ctx, "Too much key types in mechanism 0x%lx, more than %d", mt->mech, MAX_KEY_TYPES);
sc_log(p11card->card->ctx, "Too many key types in mechanism 0x%lx, more than %d", mt->mech, MAX_KEY_TYPES);
free(mt);
return CKR_BUFFER_TOO_SMALL;
}
Expand Down

0 comments on commit 2cc7b10

Please sign in to comment.