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.

78 lines
1.7 KiB

  1. --- a/dnssec.c
  2. +++ b/dnssec.c
  3. @@ -23,6 +23,9 @@
  4. #include <openssl/rand.h>
  5. #include <openssl/err.h>
  6. #include <openssl/md5.h>
  7. +#include <openssl/bn.h>
  8. +#include <openssl/rsa.h>
  9. +#include <openssl/dsa.h>
  10. #endif
  11. ldns_rr *
  12. --- a/dnssec_sign.c
  13. +++ b/dnssec_sign.c
  14. @@ -17,6 +17,9 @@
  15. #include <openssl/rand.h>
  16. #include <openssl/err.h>
  17. #include <openssl/md5.h>
  18. +#include <openssl/bn.h>
  19. +#include <openssl/rsa.h>
  20. +#include <openssl/dsa.h>
  21. #endif /* HAVE_SSL */
  22. ldns_rr *
  23. --- a/dnssec_verify.c
  24. +++ b/dnssec_verify.c
  25. @@ -594,7 +594,9 @@ ldns_dnssec_trust_tree_print_sm_fmt(FILE
  26. if (tree->parent_status[i]
  27. == LDNS_STATUS_SSL_ERR) {
  28. printf("; SSL Error: ");
  29. +#if OPENSSL_VERSION_NUMBER < 0x10100000L
  30. ERR_load_crypto_strings();
  31. +#endif
  32. ERR_print_errors_fp(stdout);
  33. printf("\n");
  34. }
  35. --- a/drill/drill.c
  36. +++ b/drill/drill.c
  37. @@ -1013,7 +1013,7 @@ main(int argc, char *argv[])
  38. xfree(tsig_data);
  39. xfree(tsig_algorithm);
  40. -#ifdef HAVE_SSL
  41. +#if OPENSSL_VERSION_NUMBER < 0x10100000L
  42. CRYPTO_cleanup_all_ex_data();
  43. ERR_free_strings();
  44. EVP_cleanup();
  45. --- a/host2str.c
  46. +++ b/host2str.c
  47. @@ -28,6 +28,12 @@
  48. #include <time.h>
  49. #include <sys/time.h>
  50. +#ifdef HAVE_SSL
  51. +#include <openssl/bn.h>
  52. +#include <openssl/rsa.h>
  53. +#include <openssl/dsa.h>
  54. +#endif
  55. +
  56. #ifndef INET_ADDRSTRLEN
  57. #define INET_ADDRSTRLEN 16
  58. #endif
  59. --- a/keys.c
  60. +++ b/keys.c
  61. @@ -16,8 +16,12 @@
  62. #ifdef HAVE_SSL
  63. #include <openssl/ssl.h>
  64. -#include <openssl/engine.h>
  65. #include <openssl/rand.h>
  66. +#include <openssl/bn.h>
  67. +#include <openssl/rsa.h>
  68. +#include <openssl/dsa.h>
  69. +#include <openssl/engine.h>
  70. +#include <openssl/ui.h>
  71. #endif /* HAVE_SSL */
  72. ldns_lookup_table ldns_signing_algorithms[] = {