libopensc: create and export 'sc_match_atr_block'

This commit is contained in:
Viktor Tarasov 2013-12-04 09:43:32 +01:00
parent 1fe9ba1b2f
commit 7a03f1883b
4 changed files with 10 additions and 3 deletions

View File

@ -1075,6 +1075,11 @@ void sc_print_cache(struct sc_card *card) {
sc_print_path(&card->cache.current_df->path));
}
scconf_block *
sc_match_atr_block(sc_context_t *ctx, struct sc_card_driver *driver, struct sc_atr *atr)
{
return _sc_match_atr_block(ctx, driver, atr);
}
#ifdef ENABLE_SM
static int

View File

@ -280,16 +280,16 @@ struct sc_cardctl_default_key {
* Generic cardctl - initialize token using PKCS#11 style
*/
typedef struct sc_cardctl_pkcs11_init_token {
const char * so_pin;
const unsigned char * so_pin;
size_t so_pin_len;
const char * label;
const char * label;
} sc_cardctl_pkcs11_init_token_t;
/*
* Generic cardctl - set pin using PKCS#11 style
*/
typedef struct sc_cardctl_pkcs11_init_pin {
const char * pin;
const unsigned char * pin;
size_t pin_len;
} sc_cardctl_pkcs11_init_pin_t;

View File

@ -123,6 +123,7 @@ sc_logout
sc_make_cache_dir
sc_mem_clear
sc_mem_reverse
sc_match_atr_block
sc_path_print
sc_path_set
sc_pin_cmd

View File

@ -1283,6 +1283,7 @@ struct sc_algorithm_info * sc_card_find_ec_alg(struct sc_card *card,
struct sc_algorithm_info * sc_card_find_gostr3410_alg(struct sc_card *card,
unsigned int key_length);
scconf_block *sc_match_atr_block(sc_context_t *ctx, struct sc_card_driver *driver, struct sc_atr *atr);
/**
* Get CRC-32 digest
* @param value pointer to data used for CRC calculation