blob: a63c551c65570006ef2281ad2dc3ad6b70622482 [file] [log] [blame]
David Howells964f3b32012-09-13 15:17:21 +01001/* 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
Dmitry Kasatkinb3426822014-06-17 11:56:57 +030012int asymmetric_keyid_match(const char *kid, const char *id);
13
David Howells964f3b32012-09-13 15:17:21 +010014static inline const char *asymmetric_key_id(const struct key *key)
15{
16 return key->type_data.p[1];
17}