1 /* $Id: sc.h,v 1.6 2002/08/15 16:15:12 rees Exp $ */
2 
3 /*
4  * Smartcard commander.
5  * Written by Jim Rees and others at University of Michigan.
6  */
7 
8 /*
9 copyright 2001
10 the regents of the university of michigan
11 all rights reserved
12 
13 permission is granted to use, copy, create derivative works
14 and redistribute this software and such derivative works
15 for any purpose, so long as the name of the university of
16 michigan is not used in any advertising or publicity
17 pertaining to the use or distribution of this software
18 without specific, written prior authorization.  if the
19 above copyright notice or any other identification of the
20 university of michigan is included in any copy of any
21 portion of this software, then the disclaimer below must
22 also be included.
23 
24 this software is provided as is, without representation
25 from the university of michigan as to its fitness for any
26 purpose, and without warranty by the university of
27 michigan of any kind, either express or implied, including
28 without limitation the implied warranties of
29 merchantability and fitness for a particular purpose. the
30 regents of the university of michigan shall not be liable
31 for any damages, including special, indirect, incidental, or
32 consequential damages, with respect to any claim arising
33 out of or in connection with the use of the software, even
34 if it has been or is hereafter advised of the possibility of
35 such damages.
36 */
37 
38 extern int port, fd, cla, aut0_vfyd;
39 extern FILE *cmdf;
40 
41 extern struct dispatchtable {
42     char *cmd, *help;
43     int (*action) (int ac, char *av[]);
44 } dispatch_table[];
45 
46 int dispatch(int ac, char *av[]);
47 int help(int ac, char *av[]);
48 void dump_plain(unsigned char *buf, int n);
49 int reset(int ac, char *av[]);
50 int dclose(int ac, char *av[]);
51 int quit(int ac, char *av[]);
52 int apdu(int ac, char *av[]);
53 int selfid(int ac, char *av[]);
54 int isearch(int ac, char *av[]);
55 int csearch(int ac, char *av[]);
56 int class(int ac, char *av[]);
57 int dread(int ac, char *av[]);
58 int dwrite(int ac, char *av[]);
59 int challenge(int ac, char *av[]);
60 int vfypin(int ac, char *av[]);
61 int chpin(int ac, char *av[]);
62 int ls(int ac, char *av[]);
63 int lsk(int ac, char *av[]);
64 int acl(int ac, char *av[]);
65 int jcreate(int ac, char *av[]);
66 int jdelete(int ac, char *av[]);
67 int jdefault(int ac, char *av[]);
68 int jatr(int ac, char *av[]);
69 int jdata(int ac, char *av[]);
70 int jlogin(int ac, char *av[]);
71 int jaut(int ac, char *av[]);
72 int jload(int ac, char *av[]);
73 int junload(int ac, char *av[]);
74 int jsetpass(int ac, char *av[]);
75