#include <ccid.h>
#include <list.h>
#include <emv.h>
#include <ber.h>
#include "emv-internal.h"
Go to the source code of this file.
Functions | |
static int | bop_ptc (const uint8_t *ptr, size_t len, void *priv) |
static int | ptc (struct _emv *e) |
int | emv_pin_try_counter (struct _emv *e) |
int | emv_cvm_pin (emv_t e, const char *pin) |
static int bop_ptc | ( | const uint8_t * | ptr, | |
size_t | len, | |||
void * | priv | |||
) | [static] |
int emv_cvm_pin | ( | emv_t | e, | |
const char * | pin | |||
) |
Definition at line 47 of file emv_cvm.c.
References _emv_error(), _emv_pin2pb(), _emv_sw1(), _emv_verify(), EMV_ERR_BAD_PIN, EMV_ERR_BAD_PIN_FORMAT, and ptc().
Referenced by cp_cvm_pin(), and do_emv_stuff().
int emv_pin_try_counter | ( | struct _emv * | e | ) |
Definition at line 42 of file emv_cvm.c.
References ptc().
Referenced by cp_pin_try_counter().
static int ptc | ( | struct _emv * | e | ) | [static] |
Definition at line 21 of file emv_cvm.c.
References _emv_error(), _emv_get_data(), ber_decode(), bop_ptc(), _emv::e_xfr, EMV_ERR_DATA_ELEMENT_NOT_FOUND, ber_tag::tag, and xfr_rx_data().
Referenced by emv_cvm_pin(), and emv_pin_try_counter().