0001-package-libest-fix-error-implicit-declaration-of-fun.patch 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. From 28c65fd9dff2f30438b98f0b71f387468259a2c3 Mon Sep 17 00:00:00 2001
  2. From: Aleksandr Makarov <aleksandr.o.makarov@gmail.com>
  3. Date: Fri, 12 Jul 2024 21:07:10 +0300
  4. Subject: [PATCH] =?UTF-8?q?package/libest:=20fix=20error:=20implicit?=
  5. =?UTF-8?q?=20declaration=20of=20function=20=E2=80=98ERR=5Ferror=5Fstring?=
  6. =?UTF-8?q?=E2=80=99?=
  7. MIME-Version: 1.0
  8. Content-Type: text/plain; charset=UTF-8
  9. Content-Transfer-Encoding: 8bit
  10. Added necessary header includes to fix 'implicit declaration' errors which occur when
  11. using -Wimplicit-function-declaration flag.
  12. Upstream: https://github.com/cisco/libest/pull/132
  13. Signed-off-by: Aleksandr Makarov <aleksandr.o.makarov@gmail.com>
  14. ---
  15. src/est/est.c | 4 +++-
  16. src/est/est_client.c | 1 +
  17. src/est/est_server_http.c | 2 ++
  18. 3 files changed, 6 insertions(+), 1 deletion(-)
  19. diff --git a/src/est/est.c b/src/est/est.c
  20. index 8a65f87..24474c0 100644
  21. --- a/src/est/est.c
  22. +++ b/src/est/est.c
  23. @@ -42,7 +42,9 @@
  24. #include <DbgHelp.h>
  25. #endif /* DISABLE_BACKTRACE*/
  26. #endif /* WIN32*/
  27. -
  28. +#include <openssl/err.h>
  29. +#include <openssl/ssl.h>
  30. +#include <openssl/rand.h>
  31. #ifndef ENABLE_CLIENT_ONLY
  32. static char hex_chpw[] = {0x06, 0x09, 0x2A, 0x86, 0x48, 0x86,
  33. 0xF7, 0x0D, 0x01, 0x09, 0x07};
  34. diff --git a/src/est/est_client.c b/src/est/est_client.c
  35. index 8dff9d9..5c25d4f 100644
  36. --- a/src/est/est_client.c
  37. +++ b/src/est/est_client.c
  38. @@ -40,6 +40,7 @@
  39. #include <openssl/ssl.h>
  40. #include <openssl/cms.h>
  41. #include <openssl/rand.h>
  42. +#include <openssl/crypto.h>
  43. #include "est.h"
  44. #include "est_locl.h"
  45. #include "est_ossl_util.h"
  46. diff --git a/src/est/est_server_http.c b/src/est/est_server_http.c
  47. index 2bd08d5..ce1cece 100644
  48. --- a/src/est/est_server_http.c
  49. +++ b/src/est/est_server_http.c
  50. @@ -42,6 +42,8 @@
  51. #include <openssl/err.h>
  52. #include <openssl/ssl.h>
  53. #include <openssl/x509v3.h>
  54. +#include <openssl/crypto.h>
  55. +#include <openssl/rand.h>
  56. #if defined(_WIN32)
  57. #define _CRT_SECURE_NO_WARNINGS // Disable deprecation warning in VS2005
  58. #else
  59. --
  60. 2.40.1