NetSSL.h 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. //
  2. // NetSSL.h
  3. //
  4. // $Id: //poco/Main/NetSSL_OpenSSL/include/Poco/Net/NetSSL.h#7 $
  5. //
  6. // Library: NetSSL_OpenSSL
  7. // Package: SSLCore
  8. // Module: OpenSSL
  9. //
  10. // Basic definitions for the Poco OpenSSL library.
  11. // This file must be the first file included by every other OpenSSL
  12. // header file.
  13. //
  14. // Copyright (c) 2006, Applied Informatics Software Engineering GmbH.
  15. // and Contributors.
  16. //
  17. // Permission is hereby granted, free of charge, to any person or organization
  18. // obtaining a copy of the software and accompanying documentation covered by
  19. // this license (the "Software") to use, reproduce, display, distribute,
  20. // execute, and transmit the Software, and to prepare derivative works of the
  21. // Software, and to permit third-parties to whom the Software is furnished to
  22. // do so, all subject to the following:
  23. //
  24. // The copyright notices in the Software and this entire statement, including
  25. // the above license grant, this restriction and the following disclaimer,
  26. // must be included in all copies of the Software, in whole or in part, and
  27. // all derivative works of the Software, unless such copies or derivative
  28. // works are solely in the form of machine-executable object code generated by
  29. // a source language processor.
  30. //
  31. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  32. // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  33. // FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
  34. // SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
  35. // FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
  36. // ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
  37. // DEALINGS IN THE SOFTWARE.
  38. //
  39. #ifndef NetSSL_NetSSL_INCLUDED
  40. #define NetSSL_NetSSL_INCLUDED
  41. #include "Poco/Net/Net.h"
  42. //
  43. // The following block is the standard way of creating macros which make exporting
  44. // from a DLL simpler. All files within this DLL are compiled with the NetSSL_EXPORTS
  45. // symbol defined on the command line. this symbol should not be defined on any project
  46. // that uses this DLL. This way any other project whose source files include this file see
  47. // NetSSL_API functions as being imported from a DLL, wheras this DLL sees symbols
  48. // defined with this macro as being exported.
  49. //
  50. #if (defined(_WIN32) || defined(__CYGWIN__)) && defined(POCO_DLL)
  51. #if defined(NetSSL_EXPORTS)
  52. #define NetSSL_API __declspec(dllexport)
  53. #else
  54. #define NetSSL_API __declspec(dllimport)
  55. #endif
  56. #endif
  57. #if !defined(NetSSL_API)
  58. #define NetSSL_API
  59. #endif
  60. //
  61. // Automatically link NetSSL library.
  62. //
  63. #if defined(_MSC_VER)
  64. #if !defined(POCO_NO_AUTOMATIC_LIBS) && !defined(NetSSL_EXPORTS)
  65. #if defined(POCO_DLL)
  66. #if defined(_DEBUG)
  67. #pragma comment(lib, "PocoNetSSLd.lib")
  68. #else
  69. #pragma comment(lib, "PocoNetSSL.lib")
  70. #endif
  71. #else
  72. #if defined(_DEBUG)
  73. #pragma comment(lib, "PocoNetSSLmtd.lib")
  74. #else
  75. #pragma comment(lib, "PocoNetSSLmt.lib")
  76. #endif
  77. #endif
  78. #endif
  79. #endif
  80. #endif // NetSSL_NetSSL_INCLUDED