18 lines
580 B
C
18 lines
580 B
C
/* Internal definitions for asymmetric key type
|
|
*
|
|
* Copyright (C) 2012 Red Hat, Inc. All Rights Reserved.
|
|
* Written by David Howells (dhowells@redhat.com)
|
|
*
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public Licence
|
|
* as published by the Free Software Foundation; either version
|
|
* 2 of the Licence, or (at your option) any later version.
|
|
*/
|
|
|
|
int asymmetric_keyid_match(const char *kid, const char *id);
|
|
|
|
static inline const char *asymmetric_key_id(const struct key *key)
|
|
{
|
|
return key->type_data.p[1];
|
|
}
|