From: Dmitry Kasatkin Date: Tue, 17 Jun 2014 08:56:57 +0000 (+0300) Subject: KEYS: make partial key id matching as a dedicated function X-Git-Tag: omap-for-v3.17/fixes-against-rc2~151^2~12^2~1^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b3426827c848d252ed4ca5f4d3085551be083e12;p=pandora-kernel.git 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 Signed-off-by: Mimi Zohar --- Reading git-diff-tree failed