[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>
pull/94/head
Michael Brown 2019-08-17 01:18:34 +01:00
parent fd96acb7de
commit 131635eac0
1 changed files with 6 additions and 0 deletions

View 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 );