summaryrefslogtreecommitdiffstats
path: root/fs/qnx6
diff options
context:
space:
mode:
authorDmitry Kasatkin <d.kasatkin@samsung.com>2014-06-17 10:56:57 +0200
committerMimi Zohar <zohar@linux.vnet.ibm.com>2014-07-17 15:35:16 +0200
commitb3426827c848d252ed4ca5f4d3085551be083e12 (patch)
tree4e8c66fb9c77bd4faaa2cb639455dd693532051a /fs/qnx6
parentKEYS: verify a certificate is signed by a 'trusted' key (diff)
downloadlinux-b3426827c848d252ed4ca5f4d3085551be083e12.tar.xz
linux-b3426827c848d252ed4ca5f4d3085551be083e12.zip
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>
Diffstat (limited to 'fs/qnx6')
0 files changed, 0 insertions, 0 deletions