mirror of
git://git.gnupg.org/gnupg.git
synced 2025-03-28 22:49:59 +01:00
scd: Clean up.
* apdu.h (apdu_send_simple_kp): Remove. * apdu.c (apdu_send_simple_kp): Remove.
This commit is contained in:
parent
c3070705a4
commit
4a2f1e5133
18
scd/apdu.c
18
scd/apdu.c
@ -3795,24 +3795,6 @@ apdu_send_simple (int slot, int extended_mode,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Same as apdu_send_simple but uses the keypad of the reader. */
|
|
||||||
int
|
|
||||||
apdu_send_simple_kp (int slot, int class, int ins, int p0, int p1,
|
|
||||||
int lc, const char *data,
|
|
||||||
int pin_mode,
|
|
||||||
int pinlen_min, int pinlen_max, int pin_padlen)
|
|
||||||
{
|
|
||||||
struct pininfo_s pininfo;
|
|
||||||
|
|
||||||
pininfo.mode = pin_mode;
|
|
||||||
pininfo.minlen = pinlen_min;
|
|
||||||
pininfo.maxlen = pinlen_max;
|
|
||||||
pininfo.padlen = pin_padlen;
|
|
||||||
return send_le (slot, class, ins, p0, p1, lc, data, -1,
|
|
||||||
NULL, NULL, &pininfo, 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/* This is a more generic version of the apdu sending routine. It
|
/* This is a more generic version of the apdu sending routine. It
|
||||||
takes an already formatted APDU in APDUDATA or length APDUDATALEN
|
takes an already formatted APDU in APDUDATA or length APDUDATALEN
|
||||||
and returns with an APDU including the status word. With
|
and returns with an APDU including the status word. With
|
||||||
|
@ -120,10 +120,6 @@ int apdu_keypad_modify (int slot, int class, int ins, int p0, int p1,
|
|||||||
int apdu_send_simple (int slot, int extended_mode,
|
int apdu_send_simple (int slot, int extended_mode,
|
||||||
int class, int ins, int p0, int p1,
|
int class, int ins, int p0, int p1,
|
||||||
int lc, const char *data);
|
int lc, const char *data);
|
||||||
int apdu_send_simple_kp (int slot, int class, int ins, int p0, int p1,
|
|
||||||
int lc, const char *data,
|
|
||||||
int pin_mode,
|
|
||||||
int pinlen_min, int pinlen_max, int pin_padlen);
|
|
||||||
int apdu_send (int slot, int extended_mode,
|
int apdu_send (int slot, int extended_mode,
|
||||||
int class, int ins, int p0, int p1, int lc, const char *data,
|
int class, int ins, int p0, int p1, int lc, const char *data,
|
||||||
unsigned char **retbuf, size_t *retbuflen);
|
unsigned char **retbuf, size_t *retbuflen);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user