mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
* command.c (scd_update_reader_status_file): Write status files.
* app-help.c (app_help_read_length_of_cert): Fixed calculation of R_CERTOFF. * pcsc-wrapper.c: New. * Makefile.am (pkglib_PROGRAMS): Install it here. * apdu.c (writen, readn): New. (open_pcsc_reader, pcsc_send_apdu, close_pcsc_reader): Use the pcsc-wrapper if we are using Pth. (apdu_send_le): Reinitialize RESULTLEN. Handle SW_EOF_REACHED like SW_SUCCESS.
This commit is contained in:
parent
2c9aac608b
commit
78f797d11d
6 changed files with 68 additions and 11 deletions
|
@ -147,8 +147,13 @@ app_help_read_length_of_cert (int slot, int fid, size_t *r_certoff)
|
|||
is the certificate. */
|
||||
*r_certoff += hdrlen + objlen;
|
||||
if (*r_certoff > resultlen)
|
||||
return 0; /* That should never happen. */
|
||||
{
|
||||
*r_certoff = 0;
|
||||
return 0; /* That should never happen. */
|
||||
}
|
||||
}
|
||||
else
|
||||
*r_certoff = 0;
|
||||
}
|
||||
|
||||
return resultlen;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue