request_context.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /** **************************************************************************
  2. * request_context.h
  3. *
  4. * Copyright 2008 Bryan Ischo <[email protected]>
  5. *
  6. * This file is part of libs3.
  7. *
  8. * libs3 is free software: you can redistribute it and/or modify it under the
  9. * terms of the GNU Lesser General Public License as published by the Free
  10. * Software Foundation, version 3 of the License.
  11. *
  12. * In addition, as a special exception, the copyright holders give
  13. * permission to link the code of this library and its programs with the
  14. * OpenSSL library, and distribute linked combinations including the two.
  15. *
  16. * libs3 is distributed in the hope that it will be useful, but WITHOUT ANY
  17. * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  18. * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
  19. * details.
  20. *
  21. * You should have received a copy of the GNU Lesser General Public License
  22. * version 3 along with libs3, in a file named COPYING. If not, see
  23. * <https://www.gnu.org/licenses/>.
  24. *
  25. ************************************************************************** **/
  26. #ifndef REQUEST_CONTEXT_H
  27. #define REQUEST_CONTEXT_H
  28. #include "libs3.h"
  29. struct S3RequestContext
  30. {
  31. #ifdef WINSCP
  32. S3SessionCallback *sessionCallback;
  33. void *sessionCallbackData;
  34. S3SslCallback *sslCallback;
  35. void *sslCallbackData;
  36. S3ResponseDataCallback *responseDataCallback;
  37. void *responseDataCallbackData;
  38. #else
  39. CURLM *curlm;
  40. int verifyPeerSet;
  41. long verifyPeer;
  42. struct Request *requests;
  43. #endif
  44. };
  45. #endif /* REQUEST_CONTEXT_H */