summaryrefslogtreecommitdiffstats
path: root/include/crypto/public_key.h
diff options
context:
space:
mode:
authorDavid Howells2013-08-30 17:15:18 +0200
committerDavid Howells2013-09-25 16:51:07 +0200
commit206ce59a109f3b4bb352845bcd04f3cf504ae592 (patch)
tree5afe846814b64a64cb5bc6f27a9125eec435575a /include/crypto/public_key.h
parentKEYS: Rename public key parameter name arrays (diff)
downloadkernel-qcow2-linux-206ce59a109f3b4bb352845bcd04f3cf504ae592.tar.gz
kernel-qcow2-linux-206ce59a109f3b4bb352845bcd04f3cf504ae592.tar.xz
kernel-qcow2-linux-206ce59a109f3b4bb352845bcd04f3cf504ae592.zip
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>
Diffstat (limited to 'include/crypto/public_key.h')
-rw-r--r--include/crypto/public_key.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/crypto/public_key.h b/include/crypto/public_key.h
index 619d5706d837..46bde250bfae 100644
--- a/include/crypto/public_key.h
+++ b/include/crypto/public_key.h
@@ -23,6 +23,7 @@ enum pkey_algo {
};
extern const char *const pkey_algo_name[PKEY_ALGO__LAST];
+extern const struct public_key_algorithm *pkey_algo[PKEY_ALGO__LAST];
enum pkey_hash_algo {
PKEY_HASH_MD4,