diff options
author | David Howells <dhowells@redhat.com> | 2013-08-30 19:15:30 +0400 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2013-09-25 20:17:00 +0400 |
commit | 3d167d68e3805ee45ed2e8412fc03ed919c54c24 (patch) | |
tree | baa5b411cb71f72ee855883d5a3fefbaf142f23b /crypto/asymmetric_keys/x509_public_key.c | |
parent | 67f7d60b3a08a3e3ec51c29c25767a9d9d0bd2b1 (diff) | |
download | linux-3d167d68e3805ee45ed2e8412fc03ed919c54c24.tar.xz |
KEYS: Split public_key_verify_signature() and make available
Modify public_key_verify_signature() so that it now takes a public_key struct
rather than a key struct and supply a wrapper that takes a key struct. The
wrapper is then used by the asymmetric key subtype and the modified function is
used by X.509 self-signature checking and can be used by other things also.
Signed-off-by: David Howells <dhowells@redhat.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Josh Boyer <jwboyer@redhat.com>
Diffstat (limited to 'crypto/asymmetric_keys/x509_public_key.c')
-rw-r--r-- | crypto/asymmetric_keys/x509_public_key.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/asymmetric_keys/x509_public_key.c b/crypto/asymmetric_keys/x509_public_key.c index fac574c457b3..8cb2f7075479 100644 --- a/crypto/asymmetric_keys/x509_public_key.c +++ b/crypto/asymmetric_keys/x509_public_key.c @@ -76,7 +76,7 @@ static int x509_check_signature(const struct public_key *pub, if (ret < 0) goto error_mpi; - ret = pub->algo->verify_signature(pub, sig); + ret = public_key_verify_signature(pub, sig); pr_debug("Cert Verification: %d\n", ret); |