Loading...
Searching...
No Matches
class_tables.h
Go to the documentation of this file.
/*
* (C) 2016 by Harald Welte <laforge@gnumonks.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2, or
* any later version as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
#pragma once
#include <stdint.h>
struct osim_cla_ins_case {
uint8_t cla;
uint8_t cla_mask;
int (*helper)(const struct osim_cla_ins_case *cic, const uint8_t *hdr);
const uint8_t *ins_tbl;
};
struct osim_cla_ins_card_profile {
const char *name;
const char *description;
const struct osim_cla_ins_case *cic_arr;
unsigned int cic_arr_size;
};
extern const struct osim_cla_ins_card_profile osim_iso7816_cic_profile;
extern const struct osim_cla_ins_card_profile osim_uicc_cic_profile;
extern const struct osim_cla_ins_card_profile osim_uicc_sim_cic_profile;
int osim_determine_apdu_case(const struct osim_cla_ins_card_profile *prof,
const uint8_t *hdr);
osim_determine_apdu_case
int osim_determine_apdu_case(const struct osim_cla_ins_card_profile *prof, const uint8_t *hdr)
Definition class_tables.c:396
osim_uicc_cic_profile
const struct osim_cla_ins_card_profile osim_uicc_cic_profile
Definition class_tables.c:308
osim_iso7816_cic_profile
const struct osim_cla_ins_card_profile osim_iso7816_cic_profile
Definition class_tables.c:69
osim_uicc_sim_cic_profile
const struct osim_cla_ins_card_profile osim_uicc_sim_cic_profile
Definition class_tables.c:377
osim_cla_ins_card_profile
Definition class_tables.h:27
osim_cla_ins_card_profile::cic_arr
const struct osim_cla_ins_case * cic_arr
Definition class_tables.h:30
osim_cla_ins_card_profile::description
const char * description
Definition class_tables.h:29
osim_cla_ins_card_profile::name
const char * name
Definition class_tables.h:28
osim_cla_ins_card_profile::cic_arr_size
unsigned int cic_arr_size
Definition class_tables.h:31
osim_cla_ins_case
Definition class_tables.h:20
osim_cla_ins_case::cla_mask
uint8_t cla_mask
Definition class_tables.h:22
osim_cla_ins_case::cla
uint8_t cla
Definition class_tables.h:21
osim_cla_ins_case::helper
int(* helper)(const struct osim_cla_ins_case *cic, const uint8_t *hdr)
Definition class_tables.h:23
osim_cla_ins_case::ins_tbl
const uint8_t * ins_tbl
Definition class_tables.h:24