summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Brown2019-08-17 02:18:34 +0200
committerMichael Brown2019-08-17 02:18:34 +0200
commit131635eac0479b5b283f01107a8e07a61a610261 (patch)
tree0be031475b306fc08bec027318792db64c1d61d5
parent[tls] Add missing call to tls_tx_resume() when restarting negotiation (diff)
downloadipxe-131635eac0479b5b283f01107a8e07a61a610261.tar.gz
ipxe-131635eac0479b5b283f01107a8e07a61a610261.tar.xz
ipxe-131635eac0479b5b283f01107a8e07a61a610261.zip
[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 7ac0bca5..2c5cf67d 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 );