You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
601 B

  1. --- a/keys.c
  2. +++ b/keys.c
  3. @@ -20,8 +20,10 @@
  4. #include <openssl/bn.h>
  5. #include <openssl/rsa.h>
  6. #include <openssl/dsa.h>
  7. -#include <openssl/engine.h>
  8. #include <openssl/ui.h>
  9. +#ifndef OPENSSL_NO_ENGINE
  10. +#include <openssl/engine.h>
  11. +#endif
  12. #endif /* HAVE_SSL */
  13. ldns_lookup_table ldns_signing_algorithms[] = {
  14. @@ -103,7 +105,7 @@ ldns_key_new_frm_fp(ldns_key **k, FILE *fp)
  15. return ldns_key_new_frm_fp_l(k, fp, NULL);
  16. }
  17. -#ifdef HAVE_SSL
  18. +#if defined(HAVE_SSL) && !defined(OPENSSL_NO_ENGINE)
  19. ldns_status
  20. ldns_key_new_frm_engine(ldns_key **key, ENGINE *e, char *key_id, ldns_algorithm alg)
  21. {