1964f3b3bSDavid Howells /* Internal definitions for asymmetric key type 2964f3b3bSDavid Howells * 3964f3b3bSDavid Howells * Copyright (C) 2012 Red Hat, Inc. All Rights Reserved. 4964f3b3bSDavid Howells * Written by David Howells (dhowells@redhat.com) 5964f3b3bSDavid Howells * 6964f3b3bSDavid Howells * This program is free software; you can redistribute it and/or 7964f3b3bSDavid Howells * modify it under the terms of the GNU General Public Licence 8964f3b3bSDavid Howells * as published by the Free Software Foundation; either version 9964f3b3bSDavid Howells * 2 of the Licence, or (at your option) any later version. 10964f3b3bSDavid Howells */ 11964f3b3bSDavid Howells 12*b3426827SDmitry Kasatkin int asymmetric_keyid_match(const char *kid, const char *id); 13*b3426827SDmitry Kasatkin 14964f3b3bSDavid Howells static inline const char *asymmetric_key_id(const struct key *key) 15964f3b3bSDavid Howells { 16964f3b3bSDavid Howells return key->type_data.p[1]; 17964f3b3bSDavid Howells } 18