KEYS: use swapped SKID for performing partial matching
authorDmitry Kasatkin <d.kasatkin@samsung.com>
Mon, 6 Oct 2014 15:52:12 +0000 (16:52 +0100)
committerDavid Howells <dhowells@redhat.com>
Mon, 6 Oct 2014 15:56:08 +0000 (16:56 +0100)
commit8dd609805b87923a700a2fad646390a58013cdb9
treec6f4d35bfbcf6a905054e3448bf54bd3e5f92189
parentf1b731dbc2530cab93fcfc5fcb18c9f3a100feeb
KEYS: use swapped SKID for performing partial matching

Earlier KEYS code used pure subject key identifiers (fingerprint)
for searching keys. Latest merged code removed that and broke
compatibility with integrity subsytem signatures and original
format of module signatures.

This patch returns back partial matching on SKID.

Reported-by: Dmitry Kasatkin <d.kasatkin@samsung.com>
Signed-off-by: Dmitry Kasatkin <d.kasatkin@samsung.com>
Signed-off-by: David Howells <dhowells@redhat.com>
crypto/asymmetric_keys/x509_cert_parser.c
crypto/asymmetric_keys/x509_parser.h