| 1 | /* key-lookup.c - Lookup keys for localdb authentication |
| 2 | Copyright (C) 2004, 2005, 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 | #ifndef KEY_LOOKUP_H |
| 21 | #define KEY_LOOKUP_H |
| 22 | |
| 23 | #include <gpg-error.h> |
| 24 | #include <gcrypt.h> |
| 25 | |
| 26 | #include <auth-support/ctx.h> |
| 27 | |
| 28 | /* Lookup the key belonging the card specified by SERIALNO. Returns a |
| 29 | proper error code. */ |
| 30 | gpg_error_t key_lookup_by_serialno (poldi_ctx_t ctx, |
| 31 | const char *serialno, gcry_sexp_t *key); |
| 32 | |
| 33 | #endif |