logo

oasis

Own branch of Oasis Linux (upstream: <https://git.sr.ht/~mcf/oasis/>) git clone https://anongit.hacktivis.me/git/oasis.git

0003-Prevent-reference-to-undefined-symbol-with-CONFIG_NO.patch (1127B)


  1. From ac2e14a8697e4d3f3fe7237b58e98a387b0c4b9d Mon Sep 17 00:00:00 2001
  2. From: Michael Forney <mforney@mforney.org>
  3. Date: Sun, 11 Aug 2019 04:00:13 +0000
  4. Subject: [PATCH] Prevent reference to undefined symbol with CONFIG_NO_RADIUS
  5. ---
  6. src/radius/radius.h | 3 +++
  7. 1 file changed, 3 insertions(+)
  8. diff --git a/src/radius/radius.h b/src/radius/radius.h
  9. index 05fddbaf2..ec21150f7 100644
  10. --- a/src/radius/radius.h
  11. +++ b/src/radius/radius.h
  12. @@ -330,6 +330,7 @@ char * radius_msg_get_tunnel_password(struct radius_msg *msg, int *keylen,
  13. const u8 *secret, size_t secret_len,
  14. struct radius_msg *sent_msg, size_t n);
  15. +#ifndef CONFIG_NO_RADIUS
  16. static inline int radius_msg_add_attr_int32(struct radius_msg *msg, u8 type,
  17. u32 value)
  18. {
  19. @@ -349,6 +350,8 @@ static inline int radius_msg_get_attr_int32(struct radius_msg *msg, u8 type,
  20. *value = ntohl(val);
  21. return 0;
  22. }
  23. +#endif /* CONFIG_NO_RADIUS */
  24. +
  25. int radius_msg_get_attr_ptr(struct radius_msg *msg, u8 type, u8 **buf,
  26. size_t *len, const u8 *start);
  27. int radius_msg_count_attr(struct radius_msg *msg, u8 type, int min_len);
  28. --
  29. 2.45.2