Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[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>
  • Loading branch information
mcb30 committed Aug 17, 2019
1 parent fd96acb commit 131635e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/crypto/rsa.c
Expand Up @@ -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 );

0 comments on commit 131635e

Please sign in to comment.