KEYS: Move the algorithm pointer array from x509 to public_key.c
authorDavid Howells <dhowells@redhat.com>
Fri, 30 Aug 2013 15:15:18 +0000 (16:15 +0100)
committerDavid Howells <dhowells@redhat.com>
Wed, 25 Sep 2013 14:51:07 +0000 (15:51 +0100)
commit206ce59a109f3b4bb352845bcd04f3cf504ae592
tree5afe846814b64a64cb5bc6f27a9125eec435575a
parent9abc4e66eb839c28516916543768be08c814a3c8
KEYS: Move the algorithm pointer array from x509 to public_key.c

Move the public-key algorithm pointer array from x509_public_key.c to
public_key.c as it isn't X.509 specific.

Note that to make this configure correctly, the public key part must be
dependent on the RSA module rather than the other way round.  This needs a
further patch to make use of the crypto module loading stuff rather than using
a fixed table.

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/Kconfig
crypto/asymmetric_keys/public_key.c
crypto/asymmetric_keys/x509_public_key.c
include/crypto/public_key.h