Audio plugin host https://kx.studio/carla
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

64 lines
1.6KB

  1. //
  2. // ssl/verify_mode.hpp
  3. // ~~~~~~~~~~~~~~~~~~~
  4. //
  5. // Copyright (c) 2003-2019 Christopher M. Kohlhoff (chris at kohlhoff dot com)
  6. //
  7. // Distributed under the Boost Software License, Version 1.0. (See accompanying
  8. // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  9. //
  10. #ifndef ASIO_SSL_VERIFY_MODE_HPP
  11. #define ASIO_SSL_VERIFY_MODE_HPP
  12. #if defined(_MSC_VER) && (_MSC_VER >= 1200)
  13. # pragma once
  14. #endif // defined(_MSC_VER) && (_MSC_VER >= 1200)
  15. #include "asio/detail/config.hpp"
  16. #include "asio/ssl/detail/openssl_types.hpp"
  17. #include "asio/detail/push_options.hpp"
  18. namespace asio {
  19. namespace ssl {
  20. /// Bitmask type for peer verification.
  21. /**
  22. * Possible values are:
  23. *
  24. * @li @ref verify_none
  25. * @li @ref verify_peer
  26. * @li @ref verify_fail_if_no_peer_cert
  27. * @li @ref verify_client_once
  28. */
  29. typedef int verify_mode;
  30. #if defined(GENERATING_DOCUMENTATION)
  31. /// No verification.
  32. const int verify_none = implementation_defined;
  33. /// Verify the peer.
  34. const int verify_peer = implementation_defined;
  35. /// Fail verification if the peer has no certificate. Ignored unless
  36. /// @ref verify_peer is set.
  37. const int verify_fail_if_no_peer_cert = implementation_defined;
  38. /// Do not request client certificate on renegotiation. Ignored unless
  39. /// @ref verify_peer is set.
  40. const int verify_client_once = implementation_defined;
  41. #else
  42. const int verify_none = SSL_VERIFY_NONE;
  43. const int verify_peer = SSL_VERIFY_PEER;
  44. const int verify_fail_if_no_peer_cert = SSL_VERIFY_FAIL_IF_NO_PEER_CERT;
  45. const int verify_client_once = SSL_VERIFY_CLIENT_ONCE;
  46. #endif
  47. } // namespace ssl
  48. } // namespace asio
  49. #include "asio/detail/pop_options.hpp"
  50. #endif // ASIO_SSL_VERIFY_MODE_HPP