diff options
author | David Howells <dhowells@redhat.com> | 2016-04-06 16:14:25 +0100 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2016-04-11 22:41:56 +0100 |
commit | 9eb029893ad5bf9303ed7f145860b312cbe5f889 (patch) | |
tree | d68958292bb88d58bbd653bbbdd5b17debba78b0 /crypto/asymmetric_keys/x509_public_key.c | |
parent | 983023f28bff62b4462fd3575a86a8947ac592d8 (diff) | |
download | op-kernel-dev-9eb029893ad5bf9303ed7f145860b312cbe5f889.zip op-kernel-dev-9eb029893ad5bf9303ed7f145860b312cbe5f889.tar.gz |
KEYS: Generalise x509_request_asymmetric_key()
Generalise x509_request_asymmetric_key(). It doesn't really have any
dependencies on X.509 features as it uses generalised IDs and the
public_key structs that contain data extracted from X.509.
Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'crypto/asymmetric_keys/x509_public_key.c')
-rw-r--r-- | crypto/asymmetric_keys/x509_public_key.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/crypto/asymmetric_keys/x509_public_key.c b/crypto/asymmetric_keys/x509_public_key.c index 2fb5941..9c8483e 100644 --- a/crypto/asymmetric_keys/x509_public_key.c +++ b/crypto/asymmetric_keys/x509_public_key.c @@ -213,9 +213,8 @@ static int x509_validate_trust(struct x509_certificate *cert, if (cert->unsupported_sig) return -ENOPKG; - key = x509_request_asymmetric_key(trust_keyring, - sig->auth_ids[0], sig->auth_ids[1], - false); + key = find_asymmetric_key(trust_keyring, + sig->auth_ids[0], sig->auth_ids[1], false); if (IS_ERR(key)) return PTR_ERR(key); |