Dmitry Kasatkin b3426827c8 KEYS: make partial key id matching as a dedicated function
To avoid code duplication this patch refactors asymmetric_key_match(),
making partial ID string match a separate function.

This patch also implicitly fixes a bug in the code.  asymmetric_key_match()
allows to match the key by its subtype. But subtype matching could be
undone if asymmetric_key_id(key) would return NULL. This patch first
checks for matching spec and then for its value.

Signed-off-by: Dmitry Kasatkin <d.kasatkin@samsung.com>
Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
2014-07-17 09:35:16 -04:00
..
2014-04-18 14:20:48 +02:00
2013-04-25 21:01:47 +08:00
2013-02-04 21:16:53 +08:00
2013-07-09 10:33:30 -07:00
2013-07-09 10:33:30 -07:00
2013-02-04 21:16:53 +08:00