2
0

tls_hooks_init.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /*
  2. * Copyright (C) 2007 iptelorg GmbH
  3. *
  4. * Permission to use, copy, modify, and distribute this software for any
  5. * purpose with or without fee is hereby granted, provided that the above
  6. * copyright notice and this permission notice appear in all copies.
  7. *
  8. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  9. * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  10. * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
  11. * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  12. * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  13. * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  14. * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  15. */
  16. /**
  17. * @file
  18. * @brief Kamailio TLS support :: TLS hooks init
  19. * @ingroup tls
  20. * Module: @ref tls
  21. */
  22. #ifndef _tls_hooks_init_h
  23. #define _tls_hooks_init_h
  24. #ifdef TLS_HOOKS
  25. #include "ip_addr.h" /* socket_info */
  26. #ifndef USE_TLS
  27. #error "USE_TLS required and not defined (please compile with make \
  28. TLS_HOOKS=1)"
  29. #endif
  30. #ifdef CORE_TLS
  31. #error "Conflict: CORE_TLS and TLS_HOOKS cannot be defined in the same time"
  32. #endif
  33. int tls_loaded(void);
  34. int tls_has_init_si(void); /*returns true if a handle for tls_init is registered*/
  35. int tls_init(struct socket_info* si);
  36. int init_tls(void);
  37. void destroy_tls(void);
  38. int pre_init_tls(void);
  39. #endif /* TLS_HOOKS */
  40. #endif