Update version for v2.2.0-rc2 release
[qemu-kvm.git] / libcacard / cac.h
blobd24a2a846a3cb93c976c63be60987a8cd77cc13d
1 /*
2 * defines the entry point for the cac card. Only used by cac.c anc
3 * vcard_emul_type.c
5 * This work is licensed under the terms of the GNU LGPL, version 2.1 or later.
6 * See the COPYING.LIB file in the top-level directory.
7 */
8 #ifndef CAC_H
9 #define CAC_H 1
10 #include "vcard.h"
11 #include "vreader.h"
13 #define CAC_GET_PROPERTIES 0x56
14 #define CAC_GET_ACR 0x4c
15 #define CAC_READ_BUFFER 0x52
16 #define CAC_UPDATE_BUFFER 0x58
17 #define CAC_SIGN_DECRYPT 0x42
18 #define CAC_GET_CERTIFICATE 0x36
21 * Initialize the cac card. This is the only public function in this file. All
22 * the rest are connected through function pointers.
24 VCardStatus cac_card_init(VReader *reader, VCard *card, const char *params,
25 unsigned char * const *cert, int cert_len[],
26 VCardKey *key[] /* adopt the keys*/,
27 int cert_count);
29 /* not yet implemented */
30 VCardStatus cac_is_cac_card(VReader *reader);
31 #endif