]> git.proxmox.com Git - qemu.git/blame - libcacard/cac.h
Merge remote-tracking branch 'spice/spice.v70' into staging
[qemu.git] / libcacard / cac.h
CommitLineData
111a38b0
RR
1/*
2 * defines the entry point for the cac card. Only used by cac.c anc
3 * vcard_emul_type.c
4 *
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"
7a685896
AL
12
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
19
111a38b0
RR
20/*
21 * Initialize the cac card. This is the only public function in this file. All
22 * the rest are connected through function pointers.
23 */
24VCardStatus 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);
28
29/* not yet implemented */
30VCardStatus cac_is_cac_card(VReader *reader);
31#endif