Skip to content

Commit

Permalink
pkcs11-tool.c - use strcmp with oid value
Browse files Browse the repository at this point in the history
 On branch X25519-improvements-2
 Changes to be committed:
	modified:   src/tools/pkcs11-tool.c

 On branch X25519-improvements-2
 Changes to be committed:
	modified:   src/tools/pkcs11-tool.c
  • Loading branch information
dengert committed Nov 26, 2024
1 parent 54ca694 commit 8a144f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tools/pkcs11-tool.c
Original file line number Diff line number Diff line change
Expand Up @@ -3185,7 +3185,7 @@ static int gen_keypair(CK_SLOT_ID slot, CK_SESSION_HANDLE session,
for (ii=0; ec_curve_infos[ii].name; ii++) {
if (!strcasecmp(ec_curve_infos[ii].name, type + 3))
break;
if (!strcasecmp(ec_curve_infos[ii].oid, type + 3))
if (!strcmp(ec_curve_infos[ii].oid, type + 3))
break;
}
if (!ec_curve_infos[ii].name) {
Expand Down

0 comments on commit 8a144f8

Please sign in to comment.