blob: d24a2a846a3cb93c976c63be60987a8cd77cc13d [file] [log] [blame]
Robert Relyea111a38b2010-11-28 16:36:38 +02001/*
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"
Alon Levy7a685892013-03-05 15:32:19 +020012
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
Robert Relyea111a38b2010-11-28 16:36:38 +020020/*
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