David Howells | 964f3b3 | 2012-09-13 15:17:21 +0100 | [diff] [blame] | 1 | /* Internal definitions for asymmetric key type |
| 2 | * |
| 3 | * Copyright (C) 2012 Red Hat, Inc. All Rights Reserved. |
| 4 | * Written by David Howells (dhowells@redhat.com) |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or |
| 7 | * modify it under the terms of the GNU General Public Licence |
| 8 | * as published by the Free Software Foundation; either version |
| 9 | * 2 of the Licence, or (at your option) any later version. |
| 10 | */ |
| 11 | |
David Howells | 7901c1a | 2014-09-16 17:36:11 +0100 | [diff] [blame] | 12 | extern bool asymmetric_match_key_ids(const struct asymmetric_key_ids *kids, |
| 13 | const struct asymmetric_key_id *match_id); |
| 14 | |
| 15 | extern struct asymmetric_key_id *asymmetric_key_hex_to_key_id(const char *id); |
Dmitry Kasatkin | b342682 | 2014-06-17 11:56:57 +0300 | [diff] [blame] | 16 | |
David Howells | 46963b7 | 2014-09-16 17:36:13 +0100 | [diff] [blame^] | 17 | static inline |
| 18 | const struct asymmetric_key_ids *asymmetric_key_ids(const struct key *key) |
David Howells | 964f3b3 | 2012-09-13 15:17:21 +0100 | [diff] [blame] | 19 | { |
| 20 | return key->type_data.p[1]; |
| 21 | } |