Fix integration problem with DNIe
card-dnie.c:1481:2: error: too few arguments to function `sc_pkcs1_strip_01_padding' The prototype of sc_pkcs1_strip_01_padding() changed between the patch submission and its integration.
This commit is contained in:
parent
02727a1406
commit
3afe644c0d
|
@ -1478,7 +1478,7 @@ static int dnie_compute_signature(struct sc_card *card,
|
|||
/* try to strip pkcs1 padding */
|
||||
sbuflen = sizeof(sbuf);
|
||||
memset(sbuf, 0, sbuflen);
|
||||
result = sc_pkcs1_strip_01_padding(data, datalen, sbuf, &sbuflen);
|
||||
result = sc_pkcs1_strip_01_padding(card->ctx, data, datalen, sbuf, &sbuflen);
|
||||
if (result != SC_SUCCESS) {
|
||||
sc_log(card->ctx, "Provided data is not pkcs#1 padded");
|
||||
/* TODO: study what to do on plain data */
|
||||
|
|
Loading…
Reference in New Issue