Pārlūkot izejas kodu

[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>
tags/v1.20.1
Michael Brown 5 gadus atpakaļ
vecāks
revīzija
131635eac0
1 mainītis faili ar 6 papildinājumiem un 0 dzēšanām
  1. 6
    0
      src/crypto/rsa.c

+ 6
- 0
src/crypto/rsa.c Parādīt failu

@@ -635,3 +635,9 @@ struct pubkey_algorithm rsa_algorithm = {
635 635
 	.final		= rsa_final,
636 636
 	.match		= rsa_match,
637 637
 };
638
+
639
+/* Drag in objects via rsa_algorithm */
640
+REQUIRING_SYMBOL ( rsa_algorithm );
641
+
642
+/* Drag in crypto configuration */
643
+REQUIRE_OBJECT ( config_crypto );

Notiek ielāde…
Atcelt
Saglabāt