diff options
author | Dmitry Kasatkin <d.kasatkin@samsung.com> | 2014-06-17 11:56:57 +0300 |
---|---|---|
committer | Mimi Zohar <zohar@linux.vnet.ibm.com> | 2014-07-17 09:35:16 -0400 |
commit | 07d3855eb6eae4ab725b37598808b7ab9001ae25 (patch) | |
tree | fdfb1ba5f3d9762128b0466a9b46ce2d9207b7f1 /crypto/lzo.c | |
parent | be807708895f8ae1f3dc38785582b3f3c7b5d5e3 (diff) | |
download | linux-crypto-07d3855eb6eae4ab725b37598808b7ab9001ae25.tar.gz linux-crypto-07d3855eb6eae4ab725b37598808b7ab9001ae25.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 'crypto/lzo.c')
0 files changed, 0 insertions, 0 deletions