]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[crypto] Drag in configured digestInfo prefixes for any use of RSA
authorMichael Brown <mcb30@ipxe.org>
Sat, 17 Aug 2019 00:18:34 +0000 (01:18 +0100)
committerMichael Brown <mcb30@ipxe.org>
Sat, 17 Aug 2019 00:18:34 +0000 (01:18 +0100)
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>
src/crypto/rsa.c

index 7ac0bca593f88d7bd7d9ccba4c499a81cd4963a3..2c5cf67ddfe1fbb2fb5e07ab26282f0e1adbe4da 100644 (file)
@@ -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 );