Statistics
| Branch: | Revision:

root / libcacard / cac.h @ c2162a8b

History | View | Annotate | Download (741 Bytes)

1 111a38b0 Robert Relyea
/*
2 111a38b0 Robert Relyea
 * defines the entry point for the cac card. Only used by cac.c anc
3 111a38b0 Robert Relyea
 * vcard_emul_type.c
4 111a38b0 Robert Relyea
 *
5 111a38b0 Robert Relyea
 * This work is licensed under the terms of the GNU LGPL, version 2.1 or later.
6 111a38b0 Robert Relyea
 * See the COPYING.LIB file in the top-level directory.
7 111a38b0 Robert Relyea
 */
8 111a38b0 Robert Relyea
#ifndef CAC_H
9 111a38b0 Robert Relyea
#define CAC_H 1
10 111a38b0 Robert Relyea
#include "vcard.h"
11 111a38b0 Robert Relyea
#include "vreader.h"
12 111a38b0 Robert Relyea
/*
13 111a38b0 Robert Relyea
 * Initialize the cac card. This is the only public function in this file. All
14 111a38b0 Robert Relyea
 * the rest are connected through function pointers.
15 111a38b0 Robert Relyea
 */
16 111a38b0 Robert Relyea
VCardStatus cac_card_init(VReader *reader, VCard *card, const char *params,
17 111a38b0 Robert Relyea
              unsigned char * const *cert, int cert_len[],
18 111a38b0 Robert Relyea
              VCardKey *key[] /* adopt the keys*/,
19 111a38b0 Robert Relyea
              int cert_count);
20 111a38b0 Robert Relyea
21 111a38b0 Robert Relyea
/* not yet implemented */
22 111a38b0 Robert Relyea
VCardStatus cac_is_cac_card(VReader *reader);
23 111a38b0 Robert Relyea
#endif