summaryrefslogtreecommitdiff
path: root/src/cac-aca.h
blob: 34dde2d60137931e8fca4cf53c9d4c44d19fd085 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*
 * implement the ACA applet for the CAC card.
 *
 * Adaptation to GSC-IS 2.1:
 * https://nvlpubs.nist.gov/nistpubs/Legacy/IR/nistir6887e2003.pdf
 *
 * Copyright 2018 Red Hat, Inc.
 *
 * Author: Jakub Jelen <jjelen@redhat.com>
 *
 * This code is licensed under the GNU LGPL, version 2.1 or later.
 * See the COPYING file in the top-level directory.
 */

#include "glib-compat.h"
#include "card_7816t.h"
#include "cac.h"

#include <string.h>

VCardResponse *
cac_aca_get_acr_response(VCard *card, int Le, unsigned char *acrid, int format);

VCardResponse *
cac_aca_get_applet_acr_response(VCard *card, int Le, unsigned int pki_applets,
                                unsigned char *aid, unsigned int aid_len,
                                unsigned char *coid, int format);
VCardResponse *
cac_aca_get_amp_response(VCard *card, int Le, int format);

VCardResponse *
cac_aca_get_service_response(VCard *card, int Le, unsigned int pki_applets,
                             int format);