aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2019-08-17 01:18:34 +0100
committerMichael Brown <mcb30@ipxe.org>2019-08-17 01:18:34 +0100
commit131635eac0479b5b283f01107a8e07a61a610261 (patch)
tree0be031475b306fc08bec027318792db64c1d61d5
parentfd96acb7de27241892d38efd55dffd26ef79cf2a (diff)
downloadipxe-131635eac0479b5b283f01107a8e07a61a610261.tar.gz
[crypto] Drag in configured digestInfo prefixes for any use of RSA
Ensure that the configured RSA digestInfo prefixes are included in any build that includes rsa.o (rather than relying on x509.o or tls.o also being present in the final binary). This allows the RSA self-tests to be run in isolation. Signed-off-by: Michael Brown <mcb30@ipxe.org>
-rw-r--r--src/crypto/rsa.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/crypto/rsa.c b/src/crypto/rsa.c
index 7ac0bca59..2c5cf67dd 100644
--- a/src/crypto/rsa.c
+++ b/src/crypto/rsa.c
@@ -635,3 +635,9 @@ struct pubkey_algorithm rsa_algorithm = {
.final = rsa_final,
.match = rsa_match,
};
+
+/* Drag in objects via rsa_algorithm */
+REQUIRING_SYMBOL ( rsa_algorithm );
+
+/* Drag in crypto configuration */
+REQUIRE_OBJECT ( config_crypto );