Skip to content

Commit

Permalink
Add required cast
Browse files Browse the repository at this point in the history
Newer versions of gcc fail on this pointer mismatch, so accomodate for
that
  • Loading branch information
yoe committed May 2, 2024
1 parent 0b29b36 commit 503b3b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins_tools/eid-viewer/p11.c
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ static int eid_vwr_p11_do_challenge_real(struct eid_vwr_challenge_responsedata *
//initialize the signature operation
check_rv(C_SignInit(session, &mechanism, hKey));

check_rv(C_Sign(session, p->challenge, (CK_ULONG)p->challengelen, p->response, &(p->responselen)));
check_rv(C_Sign(session, p->challenge, (CK_ULONG)p->challengelen, p->response, &((CK_ULONG)(p->responselen))));

p->result = EID_VWR_RES_SUCCESS;
}
Expand Down

0 comments on commit 503b3b8

Please sign in to comment.