Debian Codegraph @

src/pam/auth-support/getpin-cb.h

raw symbols SCIP
1 /* getpin-cb.h - getpin Assuan Callback (Poldi)
2 Copyright (C) 2007, 2008 g10 Code GmbH
3
4 This file is part of Poldi.
5
6 Poldi 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 3 of the License, or
9 (at your option) any later version.
10
11 Poldi 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, see
18 <http://www.gnu.org/licenses/>. */
19
20 /* This is an assuan callback. It's called when an assuan server
21 (scdaemon) wants to retrieve the PIN from Poldi. This specific
22 implementation of the getpin callback API tries to retrieve the PIN
23 through PAM conversation. */
24
25 #ifndef GETPIN_CB_H
26 #define GETPIN_CB_H
27
28 #include "ctx.h"
29
30 /* Structure for passing data to getpin_cb. */
31 struct getpin_cb_data
32 {
33 poldi_ctx_t poldi_ctx; /* Poldi context; contains the PAM
34 conversation object, etc. */
35 };
36
37 /* This is the Assuan callback, which is to be used for SCDaemon
38 transactions. It takes care of PIN querying through PAM
39 conversation functions. This function is used by authentiation
40 methods. OPAQUE is expected to be a pointer to struct
41 getpin_cb_data. */
42 int getpin_cb (void *opaque, const char *info, char *buf, size_t maxbuf);
43
44 #endif