ntp-4.2.8_p10-libressl.patch 1.6 KB

123456789101112131415161718192021222324252627282930313233343536
  1. diff -ur a/include/libssl_compat.h ntp-4.2.8p10/include/libssl_compat.h
  2. --- ntp-4.2.8p10.orig/include/libssl_compat.h 2017-03-21 06:04:20.000000000 -0700
  3. +++ ntp-4.2.8p10/include/libssl_compat.h 2017-03-30 16:34:03.892173084 -0700
  4. @@ -37,7 +37,7 @@
  5. #endif
  6. /* ----------------------------------------------------------------- */
  7. -#if OPENSSL_VERSION_NUMBER < 0x10100000L
  8. +#if (OPENSSL_VERSION_NUMBER < 0x10100000L || defined LIBRESSL_VERSION_NUMBER)
  9. /* ----------------------------------------------------------------- */
  10. # include <openssl/objects.h>
  11. diff -ur ntp-4.2.8p10.orig/libntp/a_md5encrypt.c ntp-4.2.8p10/libntp/a_md5encrypt.c
  12. --- ntp-4.2.8p10.orig/libntp/a_md5encrypt.c 2017-02-01 01:47:13.000000000 -0800
  13. +++ ntp-4.2.8p10/libntp/a_md5encrypt.c 2017-03-30 16:55:49.830229507 -0700
  14. @@ -11,6 +11,7 @@
  15. #include "ntp.h"
  16. #include "ntp_md5.h" /* provides OpenSSL digest API */
  17. #include "isc/string.h"
  18. +#include "libssl_compat.h"
  19. /*
  20. * MD5authencrypt - generate message digest
  21. *
  22. diff -ur ntp-4.2.8p10.orig/libntp/libssl_compat.c ntp-4.2.8p10/libntp/libssl_compat.c
  23. --- ntp-4.2.8p10.orig/libntp/libssl_compat.c 2017-02-01 01:47:13.000000000 -0800
  24. +++ ntp-4.2.8p10/libntp/libssl_compat.c 2017-03-30 16:52:17.287543795 -0700
  25. @@ -26,7 +26,7 @@
  26. /* ----------------------------------------------------------------- */
  27. /* ----------------------------------------------------------------- */
  28. -#if defined(OPENSSL) && OPENSSL_VERSION_NUMBER < 0x10100000L
  29. +#if defined(OPENSSL) && (OPENSSL_VERSION_NUMBER < 0x10100000L || defined LIBRESSL_VERSION_NUMBER)
  30. /* ----------------------------------------------------------------- */
  31. #include "libssl_compat.h"