File:  [Qemu by Fabrice Bellard] / qemu / libcacard / vcard_emul_type.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 19:03:08 2018 UTC (3 years, 4 months ago) by root
Branches: qemu, MAIN
CVS tags: qemu1101, qemu1001, qemu1000, qemu0151, HEAD
qemu 0.15.1

    1: /*
    2:  *  This header file abstracts the different card types. The goal is new card
    3:  *  types can easily be added by simply changing this file and
    4:  *  vcard_emul_type.c. It is currently not a requirement to dynamically add new
    5:  *  card types.
    6:  *
    7:  * This work is licensed under the terms of the GNU LGPL, version 2.1 or later.
    8:  * See the COPYING.LIB file in the top-level directory.
    9:  */
   10: 
   11: #ifndef VCARD_EMUL_TYPE_H
   12: #define VCARD_EMUL_TYPE_H 1
   13: #include "vcardt.h"
   14: #include "vreadert.h"
   15: 
   16: /*
   17:  * types
   18:  */
   19: typedef enum {
   20:      VCARD_EMUL_NONE = 0,
   21:      VCARD_EMUL_CAC,
   22:      VCARD_EMUL_PASSTHRU
   23: } VCardEmulType;
   24: 
   25: /* functions used by the rest of the emulator */
   26: VCardStatus vcard_init(VReader *vreader, VCard *vcard, VCardEmulType type,
   27:                        const char *params, unsigned char * const *cert,
   28:                        int cert_len[], VCardKey *key[], int cert_count);
   29: VCardEmulType vcard_emul_type_select(VReader *vreader);
   30: VCardEmulType vcard_emul_type_from_string(const char *type_string);
   31: 
   32: #endif

unix.superglobalmegacorp.com