summaryrefslogtreecommitdiff
path: root/crypto/asymmetric_keys/x509_parser.h
diff options
context:
space:
mode:
authorDmitry Kasatkin <d.kasatkin@samsung.com>2014-06-17 11:56:57 +0300
committerMimi Zohar <zohar@linux.vnet.ibm.com>2014-07-17 09:35:16 -0400
commit07d3855eb6eae4ab725b37598808b7ab9001ae25 (patch)
treefdfb1ba5f3d9762128b0466a9b46ce2d9207b7f1 /crypto/asymmetric_keys/x509_parser.h
parentbe807708895f8ae1f3dc38785582b3f3c7b5d5e3 (diff)
downloadlinux-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/asymmetric_keys/x509_parser.h')
0 files changed, 0 insertions, 0 deletions