packer.h 922 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. This file is part of Telegram Desktop,
  3. the official desktop application for the Telegram messaging service.
  4. For license and copyright information please follow this link:
  5. https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
  6. */
  7. #pragma once
  8. #include <QtCore/QCoreApplication>
  9. #include <QtCore/QFileInfo>
  10. #include <QtCore/QFile>
  11. #include <QtCore/QDir>
  12. #include <QtCore/QStringList>
  13. #include <QtCore/QBuffer>
  14. #include <QtCore/QDataStream>
  15. #include <zlib.h>
  16. extern "C" {
  17. #include <openssl/bn.h>
  18. #include <openssl/rsa.h>
  19. #include <openssl/pem.h>
  20. #include <openssl/bio.h>
  21. #include <openssl/err.h>
  22. #include <openssl/aes.h>
  23. #include <openssl/evp.h>
  24. } // extern "C"
  25. #if defined Q_OS_WIN && !defined TDESKTOP_USE_PACKAGED // use Lzma SDK for win
  26. #include <LzmaLib.h>
  27. #else
  28. #include <lzma.h>
  29. #endif
  30. #include <string>
  31. #include <iostream>
  32. #include <exception>
  33. using std::string;
  34. using std::wstring;
  35. using std::cout;