]> git.karo-electronics.de Git - karo-tx-linux.git/commit
X.509: Embed public_key_signature struct and create filler function
authorDavid Howells <dhowells@redhat.com>
Tue, 15 Jan 2013 15:33:36 +0000 (15:33 +0000)
committerDavid Howells <dhowells@redhat.com>
Sat, 19 Jan 2013 01:05:18 +0000 (01:05 +0000)
commit88ac8b7af72486163f85abdba97dc4fabac1f9ff
tree69818f474fa8e8e37830736ed48e869fb7eb5d9f
parenta4a6150ba5e359d35752b5131183f0d02746f1db
X.509: Embed public_key_signature struct and create filler function

Embed a public_key_signature struct in struct x509_certificate, eliminating
now unnecessary fields, and split x509_check_signature() to create a filler
function for it that attaches a digest of the signed data and an MPI that
represents the signature data.  x509_free_certificate() is then modified to
deal with these.

Whilst we're at it, export both x509_check_signature() and the new
x509_get_sig_params().

Signed-off-by: David Howells <dhowells@redhat.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Josh Boyer <jwboyer@redhat.com>
crypto/asymmetric_keys/x509_cert_parser.c
crypto/asymmetric_keys/x509_parser.h
crypto/asymmetric_keys/x509_public_key.c