1 /* pinentry-curses.c - A secure curses dialog for PIN entry.
2 Copyright (C) 2002 g10 Code GmbH
3
4 This file is part of PINENTRY.
5
6 PINENTRY is free software; you can redistribute it and/or modify it
7 under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
10
11 PINENTRY is distributed in the hope that it will be useful, but
12 WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
19 02111-1307, USA */
20
21 #ifdef HAVE_CONFIG_H
22 #include <config.h>
23 #endif
24
25 #include <stdio.h>
26 #include <stdlib.h>
27
28 #include "pinentry.h"
29 #include "pinentry-curses.h"
30
31 pinentry_cmd_handler_t pinentry_cmd_handler = curses_cmd_handler;
32
33
34 int
main(int argc,char * argv[])35 main (int argc, char *argv[])
36 {
37 pinentry_init ("pinentry-curses");
38
39 pinentry_parse_opts (argc, argv);
40
41 if (pinentry_loop ())
42 return 1;
43
44 return 0;
45 }
46