tls_config.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*
  2. * TLS module
  3. *
  4. * Copyright (C) 2005,2006 iptelorg GmbH
  5. *
  6. * Permission to use, copy, modify, and distribute this software for any
  7. * purpose with or without fee is hereby granted, provided that the above
  8. * copyright notice and this permission notice appear in all copies.
  9. *
  10. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  11. * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  12. * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
  13. * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  14. * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  15. * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  16. * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  17. */
  18. /*!
  19. * \file
  20. * \brief Kamailio TLS support :: Configuration file parser
  21. * \ingroup tls
  22. * Module: \ref tls
  23. */
  24. #ifndef _TLS_CONFIG_H
  25. #define _TLS_CONFIG_H
  26. #include "../../str.h"
  27. #include "tls_domain.h"
  28. #include <openssl/ssl.h>
  29. #ifndef OPENSSL_NO_TLSEXT
  30. #ifndef SSL_CTRL_SET_TLSEXT_HOSTNAME
  31. #define OPENSSL_NO_TLSEXT
  32. #endif
  33. #endif
  34. tls_domains_cfg_t* tls_load_config(str* filename);
  35. /*
  36. * Convert TLS method string to integer
  37. */
  38. int tls_parse_method(str* method);
  39. #endif /* _TLS_CONFIG_H */